The method devicesSaveAll() is called by the server hub to save and create virtual, shadow copies of local devices on this Remote Client.
| Function |
devicesSaveAll |
| Purpose |
Creates virtual shadow devices and connects them the remote hub. |
| Parameters |
None |
| URL Format |
/devices/save |
| HTTP Method |
POST - Incoming |
| HTTP Parameters |
| Name |
Type |
Description |
| deviceclass |
String |
The groupname from the NATIVE_DEVICES driver definition map. (i.e. "switches", etc.)
|
devices
|
List |
List of device objects to save.
| id |
Integer |
The ID of the physical device (from the sharing hub). |
| label |
String |
The friendly name given to the device. |
| attr |
Object |
See systemGetVersions for details. |
|
|
| Return JSON |
| Name |
Type |
Return Values |
| status |
String |
"complete" if the drivers were saved successfully, "error" if they did not.
|
|