This repository was archived by the owner on Jun 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,12 @@ void setup() {
107
107
Use this: EasyDDNS.client("domain", "username", "password");
108
108
*/
109
109
EasyDDNS.client("12345.duckdns.org", "token"); // Enter your DDNS Domain & Token
110
+
111
+ // Get Notified when your IP changes
112
+ EasyDDNS.onUpdate([&](const char* oldIP, const char* newIP){
113
+ Serial.print("EasyDDNS - IP Change Detected: ");
114
+ Serial.println(newIP);
115
+ });
110
116
}
111
117
112
118
void loop() {
Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ void setup() {
46
46
Use this: EasyDDNS.client("domain", "username", "password");
47
47
*/
48
48
EasyDDNS.client (" 12345.duckdns.org" , " token" ); // Enter your DDNS Domain & Token
49
+
50
+ // Get Notified when your IP changes
51
+ EasyDDNS.onUpdate ([&](const char * oldIP, const char * newIP){
52
+ Serial.print (" EasyDDNS - IP Change Detected: " );
53
+ Serial.println (newIP);
54
+ });
49
55
}
50
56
51
57
void loop () {
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ void setup() {
51
51
Use this: EasyDDNS.client("domain", "username", "password");
52
52
*/
53
53
EasyDDNS.client (" 12345.duckdns.org" , " token" ); // Enter your DDNS Domain & Token
54
+
55
+ // Get Notified when your IP changes
56
+ EasyDDNS.onUpdate ([&](const char * oldIP, const char * newIP){
57
+ Serial.print (" EasyDDNS - IP Change Detected: " );
58
+ Serial.println (newIP);
59
+ });
54
60
}
55
61
56
62
void loop () {
You can’t perform that action at this time.
0 commit comments