which esp8266 library should i use for this setup? how about ESP8266_Lib.h library?
in thw blynk docs tutorial for webhook said adding this code:
WiFiClient client;
if (client.connect("api.thingspeak.com", 80)) {
client.print("POST /update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("X-THINGSPEAKAPIKEY: " + apiKeyThingspeak1 + "\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);
}
but i realize this "WiFiClient is for ESP8266 standalone. so i dont know how to code to send data to thingspeak using esp8266 as wifi shield ( esp8266 + arduino mega). i use ESP8266_Lib.h but get an error (“WiFiClient does not name a type”) . help me to solve this problem…thanks!