Methods
_setFunctions()
Set the available functions
(async) allCapabilities() → {list}
Returns:
all capabilities
- Type
- list
executeCommand(command, args, send)
Parameters:
Name | Type | Description |
---|---|---|
command |
* | |
args |
* | |
send |
* |
handleCapabilityTask(task)
Receives the iot-task message from the dpe and calls the corresponding function if it was registered.
Parameters:
Name | Type | Description |
---|---|---|
task |
array | The taskID and args for the iot-task |
respond(taskID, res)
Send the response back to the native part of the PROCEED dispatcher.
Parameters:
Name | Type | Description |
---|---|---|
taskID |
string | The taskID for the task |
res |
array | The response array [err, ...args] |