|  Developer
Updated on April 19, 2023

MQTT event message structure

Structure of the MQTT response message that can be send from MQTT client to the controller’s firmware service and vice versa. Client sends the event message to the MQTT gateway (using topic), which will route the message to the services subscribed to the group name matching the field. Event message from the service will be forwarded by MQTT gateway to the client subscribed to the MQTT topic specified in the field.

Field Type Required Description
msg_group string + Name of the message group
msg_class string + Message event class is
msg_subclass string + Message subclass
result object + Message information
result.sender string + Event parameters
  “msg_class“: “Event”,
  “msg_subclass“: “hub.services.service.started”,
    “result“: {