InoDrive / IO / getInputsData


inoDrive.IO.getInputsData()

Get Raw Inputs Data from the Module.

Returns: Inputs Data (Object)

Polarity (Integer): Configured Inputs Polarity State.
Digital (Integer): Voltage State of Inputs.
Analog (Float): Raw Analog Input value.
Safety (Integer): Connection State of Safety Inputs.
Success (Boolean): Successfully retrieved Inputs Data, True or False.

// Import InoDrive API Library
 import { InoDriveApiJS }  from ( "ck-inodrive-api" ) 

// Instatiate the API
let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false })

// Instantiate InoDrive Object
Drive = await InoDriveApi.InoDrive({target:'Name', autoConnect:True})

// Get Inputs Data from the Module
await Drive.IO.getInputsData()