Ergonomic facade over the generated device-profile binding.
A profile is a named, pre-wired bundle: a control policy, a publish topic,
and a power schedule. Instantiate one rather than choosing algorithms and
tuning constants by hand.
A profile is the manifest, which loads from and saves to JSON so it ships as
a file. A controller is the decision logic that manifest describes: hand it a
reading and it says what the output should do and whether the reading crossed
a threshold worth raising. The presentation a dashboard reads travels inside
the manifest JSON.
The alert and control kinds are re-exported as runtime objects, because the
generated enums are types-only.
Ergonomic facade over the generated device-profile binding.
A profile is a named, pre-wired bundle: a control policy, a publish topic, and a power schedule. Instantiate one rather than choosing algorithms and tuning constants by hand.
A profile is the manifest, which loads from and saves to JSON so it ships as a file. A controller is the decision logic that manifest describes: hand it a reading and it says what the output should do and whether the reading crossed a threshold worth raising. The presentation a dashboard reads travels inside the manifest JSON.
The alert and control kinds are re-exported as runtime objects, because the generated enums are types-only.