« Back to Product

Documentation

SetTimerInterval

Require: IP-Symcon >= 4.0

 boolean SetTimerInterval (string $Name, int $Interval) 

Parameters

Name

The name of the timer whose interval is to be set.

Interval

The interval, at which the timer should be set, in milliseconds.

Returns

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

Description

Sets the interval of the timer Name to the value of Interval.

Warning

As described in RegisterTimer, the timer is stateless and when the IP-Symcon server is restarted, the timer must be set again, otherwise it takes the value of RegisterTimer.

Example

// Sets the interval of the "Update" timer to 5 seconds
$this->SetTimerInterval("Update", 5000);
Any questions?