The following topics allow you to send data to a Device or a Variable
To send data, set the unique Device label in the topic path.
The topic structure is as follows. Continue reading the next sections to learn the differences between topic versions:
/v1.6/devices/{DEVICE_LABEL}/v2.0/devices/{DEVICE_LABEL}Where {DEVICE_LABEL} is a string containing the label of the Device that will receive the data.
Ubidots accepts MQTT data in JavaScript Object Notation (JSON) format. JSON is a collection of name/value pairs. In various programming languages, it is treated as an object, record, struct, dictionary, hash table, keyed list, or associative array. It is also human-readable and language-independent. The following is an example of a JSON data body that Ubidots accepts:
{
"temperature": {
"value":10,
"timestamp": 1534881387000,
"context": {
"machine": "1st floor"
}
}
}
timestampandcontextThe
timestampandcontextparameters are optional.
Maximum lengthThe maximum body length is 10 KB.

