Skip to content

Commit a67e392

Browse files
committed
Updated example
1 parent 2d6f51d commit a67e392

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/AdvancedCaptivePortal/AdvancedCaptivePortal.ino

+5-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ void setup() {
7979
ESPConnect.setWiFiConnectTimeout(10);
8080

8181
Serial.println("====> Load config from elsewhere...");
82-
config = {"IoT", "", false};
82+
config.wifiSSID = "arduino";
83+
config = {
84+
.wifiSSID = "IoT",
85+
.wifiPassword = "",
86+
.apMode = false};
8387

8488
Serial.println("====> Trying to connect to saved WiFi or will start captive portal in the background...");
8589
ESPConnect.begin(&server, "arduino", "Captive Portal SSID", "", config);

0 commit comments

Comments
 (0)