zephyr.timers
Schedule deferred messages back to the current module. Timers are in-memory and do not survive process restarts. Requires the `timers` permission.
1 function
after
timers
zephyr.timers.after(seconds, topic, payload)After a delay, deliver a bus message to this module.
Parameters
secondsnumberDelay in seconds before delivery.
topicstringBus topic to deliver on (subscribe with zephyr.bus.on).
payloadanyJSON-like payload value.
Returns
nil
Nothing.
Raises an error if
- the
timerspermission is not granted
Example
lua
zephyr.timers.after(60, "finish", { id = "abc" })