boolean OW_SetPin (int $InstanceID, int $Pin, boolean $Status)
InstanceID | ID of the device to be switched |
Pin | 0-7 |
Status | TRUE for on, FALSE for off |
If the command succeeds, it returns TRUE, otherwise FALSE.
Sets the status of the pin Pin of the device with the ID InstanceID to the value Status
OW_SetPin(12345, 2, true); //Turn on pin 2 of the device