boolean PJ_SwitchMode (int $InstanceID, boolean $Status)
InstanceID | ID of the Relay 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.
PJ_SwitchMode($id_lcd, True); //Turn on Relay