boolean OW_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.
Sets the state of the device with the ID InstanceID to value Status.
Since the module does not support defined settings, the command operates on the principle of reading the input and for the case the state <> input state, to toggle the output of the module. When designing external circuits that should not be overlooked.
OW_SwitchMode(12345, true); //Turn on device