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 Drive = await InoDriveApi.InoDrive({target:'Name', autoConnect:True}) // Get the Output State await Drive.IO.getOutput(1)