InoDrive / IO / getOutput
Get Voltage State of one of the three specific digital outputs (0, 1, 2)
Arguments:
• Output (Integer) Which Module’s Output (0 to 2)
Returns: Output Signal (Boolean) 0 or 1
// 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 State of Output 1 await Drive.IO.getOutput(1)