An Easy to Use ESP8266 DDNS Update Client Library.
This Library is Created to Update your DDNS Domains with your ESP8266 Or ESP32. The EasyDDNS Library can be Implemented in your Major Projects too as a Sidekick. It is Independent and Does not Interfare with rest of the Working of your Code on ESP8266.
Currently EasyDDNS Library Supports DuckDNS, No-ip, DynDNS, Dynu, ENom.
Find More about DDNS: WiKipedia
Go to Sketch > Include Library > Library Manager > Search for "EasyDDNS" > Install
For Windows: Download the Repository and extract the .zip in Documents>Arduino>Libraries>{Place "EasyDDNS" folder Here}
For Linux: Download the Repository and extract the .zip in Sketchbook>Libraries>{Place "EasyDDNS" folder Here}
Download the Repository, Go to Sketch>Include Library>Add .zip Library> Select the Downloaded .zip File.
This Library is Dependent on ESP8266 Core Library or Arduino core for ESP32 to Function Properly. Make Sure you Install Both EasyDDNS and ESP8266 Core Library (or Arduino core for ESP32) to make this Work.
EasyDDNS Library uses only 3 Lines of Code to run the requested update server on your ESP8266 or ESP32.
For V1.5.0:
- Add
#include<EasyDDNS.h>
in your Code at Top. - Use
EasyDDNS.service("");
in setup() to select your ddns service - "duckdns" / "noip" / "dyndns" / "dynu" / "enom" / "all-inkl" / "selfhost.de".
Now in setup() again, For DuckDNS Use EasyDDNS.client("domain","token");
OR
For DynDNS Use EasyDDNS.client("hostname","username","client-key");
OR
For No-ip / Dynu / all-inkl / selfhost.de, Use EasyDDNS.client("hostname","username","password");
OR
For enom, Use EasyDDNS.client("host","domain","password");
where host
is something like www
, and domain
can be example.com
- Atlast Use
EasyDDNS.update(10000);
in loop() to set Interval to Check for New Public IP.
5 Ready to Use Examples are Provided with Library for DuckDNS, DynDNS, Dynu, No-ip & enom.
Liked this Library? You can Support me by sending me a 🍺 Beer.