A callback type for handling commands received via MQTT.
MQTT command payloads are always strings, so the values of TCommandMap are constrained to string. Components that
receive a JSON-encoded payload on a command topic are responsible for decoding it inside their handler.
Type Parameters
TCommandMapextendsRecord<string,string>
A mapping of command topic names to their (always string) message payloads
A callback type for handling commands received via MQTT.
MQTT command payloads are always strings, so the values of
TCommandMapare constrained tostring. Components that receive a JSON-encoded payload on a command topic are responsible for decoding it inside their handler.