Define entities
Use anEntity object when you want a typed reference to an entity key.
Push state
UsepushEntity() for a single value update. This is useful for sensors, relay feedback, or any state that changes over time.
Receive commands
Use entity callbacks to receive commands sent from Firmngin to the device. The command includes an entity key and value, so the firmware can route it to the correct GPIO or component.Request init
CallrequestInit() when the firmware needs the latest device configuration after connection or reconnect.
Typed callbacks
The Arduino library supports typed callback objects for common flows.
Use the typed objects instead of parsing raw payloads unless you specifically need raw metadata.