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.
Edit
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 | + | Event parameters |
Edit
broadcasts:
{
"msg_class": "event",
"msg_group": "broadcast_group",
"msg_subclass": "hub.services.service.started",
"result": {
"id": "network"
}
}