Documentation
OW_SetPin
boolean OW_SetPin (int $InstanceID, int $Pin, boolean $Status)
Parameters
InstanceID | ID of the device to be switched |
Pin | 0-3 (A-D) |
Status | TRUE for On, FALSE for Off |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Sets the state of the pin Pin of the device with the ID InstanceID to value Status
Example
OW_SetPin(12345, 2, true); //Turn on Pin C of the device