« Back to Product

Documentation

PJ_SwitchDuration

 boolean PJ_SwitchDuration (int $InstanceID, boolean $Status, int $Dauer) 

Parameters

InstanceID

ID of the device to be switched

Status

TRUE for On, FALSE for Off

Dauer

On or off times in seconds

Returns

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

Description

Switches the relay from the WDT with ID InstanceID to value Status for Duration seconds.

Warning

The IP Symcon 868 radio system is bidirectional and thus the WDT sends the new status of the relay after the expiration of the timer.

Example

//The following command turns on the relay for 60 seconds:
PJ_SwitchDuration(12345, True, 60);
Any questions?