Talkback Thingsspeak || Get request
Posted: Thu Oct 08, 2015 10:00 am
Hello everyone,
I have been playing with the ESP8266 and it is really cool. Lately I am trying to interface with Thingspeak.com, which was partly successful. As I am not that familiar with http POST and GET requests I am somewhat flying blindly.
I was able to upload data to thingspeak, basically using the example from arduinoesp.com. Now, I am trying to read values from thingspeak via talkbackin order to control my device.
So what I need is to execute a command like this:
or this:
and get the returned value. I tried a couple of things, but could not get it to work. The internet mostly talks about uploading data to thingspeak, however was not able to find an example for the opposite direction.
Any ideas would be really helpful!
Thanks,
Tommi
I have been playing with the ESP8266 and it is really cool. Lately I am trying to interface with Thingspeak.com, which was partly successful. As I am not that familiar with http POST and GET requests I am somewhat flying blindly.
I was able to upload data to thingspeak, basically using the example from arduinoesp.com. Now, I am trying to read values from thingspeak via talkbackin order to control my device.
So what I need is to execute a command like this:
Code: Select all
GET https://api.thingspeak.com/talkbacks/11111/commands/18?api_key=XXXXXX
or this:
Code: Select all
POST https://api.thingspeak.com/talkbacks/11111/commands/execute
api_key=XXXXXXX
and get the returned value. I tried a couple of things, but could not get it to work. The internet mostly talks about uploading data to thingspeak, however was not able to find an example for the opposite direction.
Any ideas would be really helpful!
Thanks,
Tommi