mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-25 18:01:33 +02:00
Update CaptivePortal.ino (#3628)
Small change to insure wifi starts off and avoid crashing
This commit is contained in:
committed by
Me No Dev
parent
0607d36734
commit
dd78794311
@ -11,7 +11,9 @@ String responseHTML = ""
|
||||
"<h1>Hello World!</h1><p>This is a captive portal example. All requests will "
|
||||
"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.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
|
||||
WiFi.softAP("DNSServer CaptivePortal example");
|
||||
|
Reference in New Issue
Block a user