Assembles a node.
the profile, the reading, the link, and the output.
The power mode the last schedule chose, or null before the first.
Ticks, then waits the interval the battery's charge calls for, until stopped.
Optionaloptions: profile.RunOptions
when to stop, how to read the battery, and what to hear.
once the signal aborts or the ticks run out.
Says what power mode the battery's charge puts the node in and how long to wait before the next tick. The node remembers the mode it chose, so a charge hovering at a threshold keeps the slower cadence until it clears the schedule's hysteresis.
the state of charge, from 0 to 1.
Optionalcharging: boolean
whether the panel is delivering charge.
the mode, and the wait in milliseconds.
A profile assembled around the parts that make it run: each tick reads, lets the profile's policy decide, switches the output when the policy calls for it, and publishes the reading to the profile's topic.
runrepeats that at the cadence the profile's power schedule sets for the battery's charge.