Ergonomic facade over the generated power binding.
A node on a battery and a panel has to decide how often to do anything at
all. A duty cycle says how the time splits between working and sleeping; a
power plan says how that split should change as the charge falls, so a node
that would otherwise go dark in a cloudy week keeps reporting, less often.
The power mode is re-exported as a runtime PowerMode object, because
the generated enum is types-only.
Ergonomic facade over the generated power binding.
A node on a battery and a panel has to decide how often to do anything at all. A duty cycle says how the time splits between working and sleeping; a power plan says how that split should change as the charge falls, so a node that would otherwise go dark in a cloudy week keeps reporting, less often.
The power mode is re-exported as a runtime PowerMode object, because the generated enum is types-only.