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