The following topics allow 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 for the difference between topic versions):

/v1.6/devices/{DEVICE_LABEL}
/v2.0/devices/{DEVICE_LABEL}

Where {DEVICE_LABEL} is a string with the label of the Device that data will be sent to.

Ubidots accepts MQTT data JavaScript Object Notation or JSON. JSON is a collection of name/value pairs in various programming languages, this is treated as an object, record, struct, dictionary, hash table, keyed list, or associative array. It is also human readable and language independent. An example of a JSON data body that Ubidots accepts can be referenced below:

{
  "temperature": {
	"value":10, 
  "timestamp": 1534881387000, 
  "context": {
  	"machine": "1st floor"
  	}
	}
}

📘

timestamp and context

The timestamp and context parameters are optional.

🚧

Maximum length

The maximum character length for the body is 10kb