InoDrive / IO / getAnalogInput


InoDrive.IO.getAnalogInput()

Get Raw Analog value from Analog Input.

Returns: Floating Point (Number) Raw Value of Analog Input.

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

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

// Instantiate InoDrive Object
let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true })

// Get Analog Input Value
await Drive.IO.getAnalogInput()