InoDrive / IO / getOperationalState


InoDrive.IO.getOperationalState()

Get information about the Operational States of the InoDrive Module

Returns: Operational States (Object) This object contains information about the Operational States of the Module including: Module, Network, User Application, Motor, and Regen.

// 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 the Temperature Information
await Drive.IO.getOperationalState()