This is a convenience function combining [`tobj:register()`](#tobjregister) and [`tobj:start()`](#tobjstart) into a single call.
This is a convenience function combining [`tobj:register()`](#tobjregister) and [`tobj:start()`](#tobjstart) into a single call. This is the reason why this method has the same parameters as `tobj:register()`.
If `tobj:alarm()` is invoked on an already running timer the timer is stopped, new parameters are set and timer is (re)started (similar to call `tobj:start(true)`).
To free up the resources with this timer when done using it, call [`tobj:unregister()`](#tobjunregister) on it. For one-shot timers this is not necessary, unless they were stopped before they expired.
To free up the resources with this timer when done using it, call [`tobj:unregister()`](#tobjunregister) on it. For one-shot timers this is not necessary, unless they were stopped before they expired.
...
@@ -282,7 +283,7 @@ Starts or restarts a previously configured timer. If the timer is running the ti
...
@@ -282,7 +283,7 @@ Starts or restarts a previously configured timer. If the timer is running the ti
-`restart` optional boolean parameter forcing to restart already running timer
-`restart` optional boolean parameter forcing to restart already running timer
#### Returns
#### Returns
`true` if the timer was started, `false` on error
`true` if the timer was (re)started, `false` on error