« Back to Product

Documentation

OW_SetPort

 boolean OW_SetPort (int $InstanceID, int $Bitmaske) 

Parameters

InstanceID

ID of the device to be switched

Bitmaske

0-255 (Bit0 = Pin0 … Bit7 = Pin7)

Returns

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

Description

Sets the state of all eight pins on the value of Bitmask of the device with ID InstanceID

Example

OW_SetPort(12345, 0); //Turn everything off
Any questions?