WaveshareCloud Wiki Help

MQTT Property Upload Format Requirements

MQTT Publishing Format

Users using MQTT clients (such as IoT devices, MQTT testing software, etc.) to connect to the platform should be aware that the platform only accepts message body formats in JSON. When publishing messages from the client, please adhere to the following format for uploading data:

{ "data": { "id1": "xxxx", "id2": 123, "id3": { "id3-1": [ 1, 2, 3 ], "id3-2": true } // More id...... } }

MQTT Subscription Format

When the platform sends messages to the client, the message body format is JSON. Users should follow the JSON parsing format below when implementing parsing logic for received messages on the client side:

{ "data": { "id1": "xxxx", "id2": 123, "id3": { "id3-1": [ 1, 2, 3 ], "id3-2": true } // More id...... } }
Last modified: 12 一月 2024