Closed kkeonline closed 3 years ago
After some experimenting I think the issue is that the "http.getString()" command has also changed and it seems to be returning an empty string. I experimented with using 'client.readStringUntil' instead and this does get the response although there are extra characters included. Note: My broadband is supplied by "Three" in the U.K. I did find the esp8266 did not keep resetting when connected via Virgin but can't confirm if it actually worked although I can not imagine why this would make a difference.
Fixed with v1.7.0 release.
By using example code I got this exception error ( Board ESP01s / DDNS dynu )
This because new ESP8266httpClient has changed as lrmoreno007 create a pullrequest sinse 16 Nov 2020
Here is how to modify code.
add between Line 26 and 27
WiFiClient client;
Line 38 from
http.begin("http://ipv4bot.whatismyipaddress.com/");
tohttp.begin(client, "http://ipv4bot.whatismyipaddress.com/");
Line 85 from
http.begin(update_url);
tohttp.begin(client, update_url);