Class: Capabilities

Capabilities()

Capabilities

All available (IoT-related) capabilities are registered here. You can easily add functionality by implementing a custom module and adding it to the capabilities directory. This module automatically registers all the modules in that directory.

Constructor

new Capabilities()

Source:

Methods

_setFunctions()

Set the available functions

Source:

(async) allCapabilities() → {list}

Source:
Returns:

all capabilities

Type
list

executeCommand(command, args, send)

Parameters:
Name Type Description
command *
args *
send *
Source:

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

Source:

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]

Source: