Sending a String Value

String values can provide additional information to your dots. As a basic example, suppose you’re deploying a weather station that provides the weather status as a string value, such as "cloudy". To receive that string in your Ubidots account, send the weather status in the context of the dot.

To learn more about displaying the context of a dot in the Ubidots Dashboard, check out this guide.

curl -X POST 'https://industrial.api.ubidots.com/api/v1.6/devices/my-new-device' 
-H "X-Auth-Token: BBFF-Rfcgaxns6HlVb155WA0RhSY85xNDmB" 
-H "Content-Type: application/json" 
-d '{"weather":{"value": 1, "context":{"weather-status": "sunny"}}}'