Added Custom DNS, fix newlines

This commit is contained in:
Deb
2018-03-15 15:29:34 -05:00
committed by Shawn A
parent 278c320e22
commit 81045e6433
3 changed files with 34 additions and 2 deletions
+3
View File
@@ -174,6 +174,8 @@ class WiFiManager
void setAPStaticIPConfig(IPAddress ip, IPAddress gw, IPAddress sn);
//sets config for a static IP
void setSTAStaticIPConfig(IPAddress ip, IPAddress gw, IPAddress sn);
//sets config for a static IP with DNS
void setSTAStaticIPConfig(IPAddress ip, IPAddress gw, IPAddress sn, IPAddress dns);
//called when AP mode and config portal is started
void setAPCallback( void (*func)(WiFiManager*) );
//called when settings have been changed and connection was successful
@@ -246,6 +248,7 @@ class WiFiManager
IPAddress _sta_static_ip;
IPAddress _sta_static_gw;
IPAddress _sta_static_sn;
IPAddress _sta_static_dns;
// defaults
const byte DNS_PORT = 53;