InoDrive / UserApp / writeVar


InoDrive.UserApp.writeVar(argv, value)

Write Variable(s) with new value out to User Application, polls User Application Variable List.

Arguments:
Argv Variable Name (String) or ID (Integer)
Value (Boolean, Integer, Floating Point) New Value for single Variable write.
Props This value is

// 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})

// Write New Variable Value
await Drive.UserApp.writeVar("foo", 128)