I succesfully can upload data to thingspeak using my ESP8266 and AT commands. Now i want to read data from thingspeak.
This is the GET command using the Thingspeak API https://api.thingspeak.com/channels/677109/fields/3/last
(it's public)
this is my code snippet for trying the GET command to read the data.
String getRequest = "GET /channels/677109/fields/3/last";
sendCommand("AT+CIPSTART=4,\"TCP\",\""+ HOST +"\","+ PORT,15,"OK"); // this is working
esp8266.println("AT+CIPSEND=4,34");
delay(1000);
esp8266.println(getRequest);
delay(1000);
if (esp8266.available()) {
Serial.write(esp8266.read());
}
I always get "A" returned instad of the 0 or 1 I want it to return.
Does anyone know what i'm missing?