boolean DS_SwitchMode (int $InstanceID, boolean $Status)
InstanceID | ID of the device to be switched |
Status | TRUE for on, FALSE for off |
If the command succeeds, it returns TRUE, otherwise FALSE.
Switches the device with the ID InstanceID to the value Status.
DS_SwitchMode(12345, true); //Turn device on