The method remoteDeviceCommand() is called by the server hub to execute a command on a device that is local to the hub running the Remote Client.
Function |
remoteDeviceCommand |
Purpose |
Executes a command on a device located on this hub. |
Parameters |
Name |
Type |
Description |
params |
Map |
(Optional) |
|
URL Format |
/event/:deviceId/:deviceCommand/:commandParams |
HTTP Method |
GET - Incoming |
HTTP Parameters |
Name |
Type |
Description |
deviceId |
Integer |
The ID of the physical device (from the sharing hub). |
deviceCommand |
String |
Name of the command to execute. (i.e. "on", "off", etc.) |
commandParams |
Map |
Base64 Encoded Map of Command Parameters. (i.e. [hue: 154]) |
|
Return JSON |
Name |
Type |
Return Values |
status |
String |
"success" or "error" on failure. |
|