« Back to Product

Documentation

SetTimerInterval

Require: IP-Symcon >= 4.0

 void 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

No Return

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

version: 4.0

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