Help getting/using wifi data through JSON
Posted: Wed Apr 13, 2016 7:33 am
Hey guys, so I'm trying to use an esp8266 (WemosD1 module) in arduino and read data from a thingspeak page and act on the info gathered. I'm using this code here: [ http://pastebin.com/LJndYZTf ]to try and read the results in field 1 and 2 and I'm getting all of this: [ http://pastebin.com/DTHN3RtP] in my serial monitor. Can anyone help me to only get field 1 and 2 and then how to use the values to have the module take action? I feel like there's an easy fix to this but I'm pretty new to arduino/esp8266 still.
If it helps to see the format of the information on the website, it's here: [ http://api.thingspeak.com/channels/103752/feeds/last]
I looked at putting it into JSON but I'm having trouble operating that as well. This is my code trying to integrate JSON : [ http://pastebin.com/VE97HND3] and I keep getting an error of
"call of overloaded 'parseArray(char&)' is ambiguous" at the line
"JsonArray& root = jsonBuffer.parseArray(json);"
The end goal of this is that I could have actions take place depending on the values of field 1 and field 2.
I'm sorry if this is the wrong board to post this question in, I'm new but desperate for an answer for this currently.
If it helps to see the format of the information on the website, it's here: [ http://api.thingspeak.com/channels/103752/feeds/last]
I looked at putting it into JSON but I'm having trouble operating that as well. This is my code trying to integrate JSON : [ http://pastebin.com/VE97HND3] and I keep getting an error of
"call of overloaded 'parseArray(char&)' is ambiguous" at the line
"JsonArray& root = jsonBuffer.parseArray(json);"
The end goal of this is that I could have actions take place depending on the values of field 1 and field 2.
I'm sorry if this is the wrong board to post this question in, I'm new but desperate for an answer for this currently.