This resource is used to issue control calls and to check on the status of a previously issued calls.
Issue a control call to a device identified by a set of device attributes.
object (DeviceAttributesWithIndexObject) The device attributes that identify the device on which to initiate the control action. In addition to the usual device attributes, For example, if there are three devices supporting
the | |
method | string The name of the control action to issue on the
device. This may be either a bare method name, such
as |
args | Array of any <json> The list of arguments to pass to the method. This list must have values that are compatible with the arguments expected by the method. |
Control call response.
unauthorized response.
{- "attrs": {
- "mfg": "egauge",
- "model": "prm3",
- "sn": "00000006"
}, - "method": "relay.close_mask",
- "args": [
- 1
]
}
{- "result": {
- "tid": 4294967360
}
}
Get the result of a control call on return an error message, e.g., if the result is not yet available.
Control result response.
Unauthorized response.
{- "error": "EAGAIN: Call is pending."
}