Update CaptivePortal.ino (#3628)
Small change to insure wifi starts off and avoid crashing
This commit is contained in:
parent
0607d36734
commit
dd78794311
1 changed files with 3 additions and 1 deletions
|
|
@ -12,6 +12,8 @@ String responseHTML = ""
|
||||||
"be redirected here.</p></body></html>";
|
"be redirected here.</p></body></html>";
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
WiFi.disconnect(); //added to start with the wifi off, avoid crashing
|
||||||
|
WiFi.mode(WIFI_OFF); //added to start with the wifi off, avoid crashing
|
||||||
WiFi.mode(WIFI_AP);
|
WiFi.mode(WIFI_AP);
|
||||||
WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
|
WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
|
||||||
WiFi.softAP("DNSServer CaptivePortal example");
|
WiFi.softAP("DNSServer CaptivePortal example");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue