We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13dc00b commit 0187f09Copy full SHA for 0187f09
EasyDDNS.cpp
@@ -55,8 +55,9 @@ void EasyDDNSClass::update(unsigned long ddns_update_interval){
55
}
56
57
// ######## GET PUBLIC IP ######## //
58
+ WiFiClient client;
59
HTTPClient http;
- http.begin("http://ipv4bot.whatismyipaddress.com/");
60
+ http.begin(client, "http://ipv4bot.whatismyipaddress.com/");
61
int httpCode = http.GET();
62
if(httpCode > 0) {
63
if(httpCode == HTTP_CODE_OK) {
@@ -71,8 +72,9 @@ void EasyDDNSClass::update(unsigned long ddns_update_interval){
71
72
// ######## CHECK & UPDATE ######### //
73
if(old_ip != new_ip){
74
75
76
- http.begin(update_url);
77
+ http.begin(client, update_url);
78
79
80
old_ip = new_ip;
0 commit comments