What can we improve?

Documentation

(Edit)

OW_SwitchMode

 boolean OW_SwitchMode (int $InstanceID, boolean $Status) 

Parameters

InstanceID

ID of the device to be switched

Status

TRUE for On, FALSE for Off

Returns

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

Description

Sets the state of the device with the ID InstanceID to value Status.

Since the module does not support defined settings, the command operates on the principle of reading the input and for the case the state <> input state, to toggle the output of the module. When designing external circuits that should not be overlooked.

Example

OW_SwitchMode(12345, true); //Turn on device