ESP 8266 reading values from thingspeak
Posted: Mon Jul 27, 2015 9:54 am
Hi,
So I'm just trying out some AT commands using the esp8266.
Im having trouble retrieving a value from the thingspeak server, specifically from this url
https://api.thingspeak.com/apps/thinghttp/send_request?api_key=BY5YCDL7AX36YM6Q
So these are my commands and the error I'm receiving
AT+CIPSTART="TCP","api.thingspeak.com",80
OK
Linked
AT+CIPSEND=96
>
GET https://api.thingspeak.com/apps/thinght ... L7AX36YM6Q HTTP/1.0\r\n\r\n
busy s...
SEND OK
+IPD,323:HTTP/1.1 400 Bad Request
Server: nginx/1.7.5
Date: Mon, 27 Jul 2015 14:49:22 GMT
Content-Type: text/html
Content-Length: 172
Connection: close
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.7.5</center>
</body>
</html>
OK
OK
Unlink
Any ideas why this is happening and how to correct it? I would just like to retrieve the value in the URL.
I'm an absolute beginner at this and would be very appreciative of any help whatsoever
So I'm just trying out some AT commands using the esp8266.
Im having trouble retrieving a value from the thingspeak server, specifically from this url
https://api.thingspeak.com/apps/thinghttp/send_request?api_key=BY5YCDL7AX36YM6Q
So these are my commands and the error I'm receiving
AT+CIPSTART="TCP","api.thingspeak.com",80
OK
Linked
AT+CIPSEND=96
>
GET https://api.thingspeak.com/apps/thinght ... L7AX36YM6Q HTTP/1.0\r\n\r\n
busy s...
SEND OK
+IPD,323:HTTP/1.1 400 Bad Request
Server: nginx/1.7.5
Date: Mon, 27 Jul 2015 14:49:22 GMT
Content-Type: text/html
Content-Length: 172
Connection: close
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.7.5</center>
</body>
</html>
OK
OK
Unlink
Any ideas why this is happening and how to correct it? I would just like to retrieve the value in the URL.
I'm an absolute beginner at this and would be very appreciative of any help whatsoever