File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ void EasyDDNSClass::update(unsigned long ddns_update_interval){
55
55
}
56
56
57
57
// ######## GET PUBLIC IP ######## //
58
+ WiFiClient client;
58
59
HTTPClient http;
59
- http.begin (" http://ipv4bot.whatismyipaddress.com/" );
60
+ http.begin (client, " http://ipv4bot.whatismyipaddress.com/" );
60
61
int httpCode = http.GET ();
61
62
if (httpCode > 0 ) {
62
63
if (httpCode == HTTP_CODE_OK) {
@@ -71,8 +72,9 @@ void EasyDDNSClass::update(unsigned long ddns_update_interval){
71
72
// ######## CHECK & UPDATE ######### //
72
73
if (old_ip != new_ip){
73
74
75
+ WiFiClient client;
74
76
HTTPClient http;
75
- http.begin (update_url);
77
+ http.begin (client, update_url);
76
78
int httpCode = http.GET ();
77
79
if (httpCode > 0 ) {
78
80
old_ip = new_ip;
You can’t perform that action at this time.
0 commit comments