Event driver
An event device periodically fires an expire event. The rate at which each
device fires is configurable in milliseconds.
An event device has an associated state (enabled/disabled) which controls
whether or not the device will fire expire events.
Arguments
- rate
- Repeat rate in milliseconds.
Properties
- state
- A boolean indicating if the device is enabled.
Boolean (true or false).
Events
- expire
- This event fires at the rate specified in the device configuration.
Firing is synchronized to the system clock. This means that an event with
a rate of 6 hours (21600000ms) will fire at 00:00, 06:00, 12:00, and 18:00.
- state
- Fires every time the state property value is changed.
Commands
- enable
-
Enable the device.
- disable
-
Disable the device.
|