Documentation
DS_MakeRequest
string DS_MakeRequest (int $InstanceID, string $Request, string $Data)
Parameters
InstanceID | ID of the device to be switched |
Request | Request which should be called |
Data | Parameters for request |
Returns
JSON encoded string
Description
Sends the request Request with the parameter Data to the device with the ID InstanceID.
Further information on the possible queries and the respective required parameters can be found under dSS Json .
Example
// Request for system version
// Sends the "system/version" request to the instance with ID 12345
DS_MakeRequest(12345, "system/version", "");
// Recalls scene 0
// Sends the request "apartment/callScene" with the data "sceneNumber = 0" to the instance with the ID 12345
DS_MakeRequest(12345, "apartment/callScene", "sceneNumber=0");