I am attempting to send lat/lng to Ubidots to display on a map. I’ve tried the sample code but it doesn’t work for me.
I’m running on an ESP8266 using C++
Ubidots is the Community Edition
float value1 = analogRead(A0);
sprintf(context, ““lat”:39.727482, “lng”:-105.077”);
client.add(“position”, 15, context);
If I use the info from the samples provided nothing is posted to my device/dashboard.
Neither the temperature nor the position show up and I don’t get the OK|OK on my serial monitor.
If I replace the lat long with nonsense, i.e. the line commented out above, then the temperature and the integer (15) are posted but their is no map image. I also see OK|OK on my serial monitor indicating a response from Ubidots.
Is there a purpose for the required integer, is is used for anything? If I post the context “nonsense”, the integer shows up on my Ubidot device variable.
Should this work or do I need to build an HTTP statement?
Thanks for your help!