MQTT request message structure
- Structure of the MQTT request message that can be sent from MQTT client to the controller’s firmware service and vice versa. Client sends the request message to the MQTT gateway (using topic), which will route the message to the service specified in field. When the controller’s firmware service sends the request to the client, the message will be forwarded by MQTT gateway to the client using the MQTT topic specified by field.
Edit
Field | Type | Required | Description |
---|---|---|---|
msg_group | string | + | Name of the message group aka message destination |
msg_class | string | + | Message request class is |
msg_subclass | string | + | Message subclass |
result | object | + | Message information |
result.sender | string | + | Service/client name that sended the message. Response will use this field as |
result.uuid | string | + | Message uuid in the format of 24 alphanumeric characters (0123456789abcdef01234567) |
result.requestBody | object | + | Request parameters |
Edit
request:
{
"msg_group": "network",
"msg_class": "request",
"msg_subclass": "RequestCloudStorageToken",
"result": {
"requestBody": {},
"sender": "mqtt.test_client",
"uuid": "63e134860000000174696003"
}
}