int64 AddCmdHex(string, string, string)

Queues up a command to send to device.

Security

Trust Level Required: High Trust

Parameters

Name Description
cmdHex string
The command to send, hex encoded.
callbackName string
A JavaScript function name that you would like KioWare to call with the result.
devName (Optional) string
Target the device via the name from the Config Tool.

Return

On success, an incrementing number; the purpose of which is to match a particular call to a callback response. Upon failure, 0.

Examples


var cmdId = KioInnovaGPIOBoard.AddCmdHex('91 0f 00 00 00', 'OnKioDeviceCmdResult');
    

Requirements

KioWare for Windows version 8.16 or greater.