boolean LCN_SwitchRelay (integer $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 relay with the ID InstanceID to value Status
LCN_SwitchRelay(12345, true); //Turn on relay