The method remoteModeChange() is called by the server hub to execute a mode change on hub running the Remote Client. If the mode are not supported, this call should return an error.
Function |
remoteModeChange |
Purpose |
Executes a mode change on this hub. |
Parameters |
Name |
Type |
Description |
params |
Map |
(Optional) |
|
URL Format |
/modes/set/:name |
HTTP Method |
GET - Incoming |
HTTP Parameters |
Name |
Type |
Description |
name |
String |
The name of the mode to change to. (i.e. "home", "away", etc.) |
|
Return JSON |
Name |
Type |
Return Values |
status |
String |
"complete" if the mode changed, or "error" on failure. |
|