« Back to Product

Documentation

FS20_SwitchDuration

 boolean FS20_SwitchDuration (int $InstanceID, boolean $Status, int $Duration) 

Parameters

InstanceID

ID of the device to be switched

Status

TRUE for On, FALSE for Off

Duration

On/ Off duration in seconds

Returns

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

Description

Switches the device with ID InstanceID to value Status in Duration seconds.

Warning

Since the FS20 system is unidirectional, can not be determined whether the command was successful. Error messages are only sent when an internal system error occurred (for example, if the FHZ is not connected).

Example

FS20_SwitchDuration(12345, true, 60); //Turn on device for 60 seconds
Any questions?