Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Ubidots IOT help with CR6


mortenx Jul 21, 2018 07:58 AM

can anyone help with ubidots IoT code to CRBasic , how upload data(temp) from CR6 to ubidots with HTTP POST or HTTP GET function.

https://ubidots.com/docs/api/#values

# Request curl -X POST -H "Content-Type: application/json" -d '{"value":11.21, "context":{"lat":1.12, "lng":2.019}, "timestamp":1000199992}' http://things.ubidots.com/api/v1.6/devices/lora-device/temperature/values?token=c74qFmzI7ikTmZ3dFvF3e2hPEmCfu5

How can i put this to CR6 code?

HTTPPost ("URI String",ContentsString,HTTPResponse,"")

what i should enter to "ContentsString", "HTTPResponse" and  "HTTP Header" cell in CRBasic HTTPpost command ?


													
												
											

cdube Jul 19, 2019 02:12 PM

I noticed that your post notification it identifies a lora-device.  Are you using LoRa/LoRaWAN to communicate with the CR6? 

Log in or register to post/reply in the forum.