Skip to content

Commit

Permalink
Updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jan 29, 2024
1 parent 2d6f51d commit a67e392
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/AdvancedCaptivePortal/AdvancedCaptivePortal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ void setup() {
ESPConnect.setWiFiConnectTimeout(10);

Serial.println("====> Load config from elsewhere...");
config = {"IoT", "", false};
config.wifiSSID = "arduino";
config = {
.wifiSSID = "IoT",
.wifiPassword = "",
.apMode = false};

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

0 comments on commit a67e392

Please sign in to comment.