OptionalbatteryReads the battery before each wait, as a charge from 0 to 1 or a charge and whether the panel is charging; a node without one samples at the active cadence.
OptionalonHears a tick that failed. The loop carries on at the same cadence; without one, the
failure ends the loop and run rejects with it.
OptionalonHears each tick, such as to log it or to act on an alert.
OptionalsignalStops the loop; the tick under way finishes first.
OptionalticksHow many ticks to run before returning; the loop runs until stopped unless given.
OptionalwaitWaits between ticks; a timer unless given, which a test replaces to run at once.
How a node runs until it is told to stop.