« Back to Product

Documentation

OW_SetPin

 boolean OW_SetPin (int $InstanceID, int $Pin, boolean $Status) 

Parameters

InstanceID

ID of the device to be switched

Pin

0-7

Status

TRUE for on, FALSE for off

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Sets the status of the pin Pin of the device with the ID InstanceID to the value Status

Example

OW_SetPin(12345, 2, true); //Turn on pin 2 of the device
Any questions?