Resource/Data
Topic Data handles the transfer of Data through the different devices via MQTT. It will be able to send (publish) or receive (subscribe) Data. When you publish using MQTT, the Data will be sent, representing the same activity as an HTTP POST request.
PUBLISH user-manual/data/001
{
"data":{
"temperature": 50
},
"status":{
"connected": "True",
"warnings": "False"
}
}
This action triggers the publishing of the Data from device number 132. The Data will be stored in the Thing bucket along with the data sent through HTTP protocols.
Subscription:
SUBSCRIBE user-manual/data/<thing-ULID>
- Message received due to subscription (Data
published):
{ "data":{ "temperature": 50 }, "status":{ "connected": "True", "warnings": "False" } }