« Back to Product

Documentation

DS_SwitchMode

 boolean DS_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

Switches the device with the ID InstanceID to the value Status.

Example

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