Merge pull request #561 from tzapu/pr560

Added Custom DNS, fix newlines
This commit is contained in:
Shawn A
2018-03-15 15:41:07 -05:00
committed by GitHub
3 changed files with 35 additions and 2 deletions
+3
View File
@@ -182,6 +182,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
@@ -254,6 +256,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;