ayushsharma82 / EasyDDNS

Easy to Use ESP8266 & ESP32 DDNS Update Client Library.
MIT License
197 stars 59 forks source link

Enhancement request: Simpler multiple DDNS support #19

Open anishsane opened 4 years ago

anishsane commented 4 years ago

I might have a need to enable multiple DDNS services together.

Currently, I can achieve it by multiple objects of EasyDDNSClass and initializing all of them separately. However, a lot of the code is common:

  1. Update time expiry
  2. Getting the public IP etc

It will be useful if we could keep the common members (e.g. new_ip; old_ip;) and methods as static to class and update only once, even if there are many services defined.

Also, from a usability point of view, It will be very useful if (in addition to the current single service support), we can init the library via an array or something.

Something like:

String myServices[] = ["noip", "duckdns", "duckdns"];
EasyDDNS.service(myServices);
issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.94. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.