« Back to Product

Documentation

ZW_SwitchMode

 boolean ZW_SwitchMode (int $InstanceID, boolean $Status) 

Parameters

InstanceID

ID of the device

Status

TRUE for on, FALSE for Off

Returns

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

Description

Switches the device with ID InstanceID to value Status

Example

ZW_SwitchMode(12345, true); //Turn on device
Any questions?