InoDrive / IO / getOutputFault


InoDrive.IO.getOutputFault(output)

Get the fault status on one of three specific outputs (0, 1, 2)

Arguments:
Output (Integer) Which output to view fault status

Returns: Output Fault (Boolean) 0 or 1 Whether or not there is a fault on the output

• 0 – Output is Present and Operational.
• 1 – Output has Faulted and is Offline.

// 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 Fault Status of Output 2
await Drive.IO.getOutputFault(2)