Skip to content

Commit c11d373

Browse files
committed
docs say before softap we need to reset wifi.
1 parent ae10650 commit c11d373

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/configServer.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,10 @@ void updateDisplay(DisplayDevice * const display, String action = "") {
530530
display->showTextOnGrid(0, 3, "Pass:");
531531
display->showTextOnGrid(1, 3, "12345678");
532532
} else {
533+
display->showTextOnGrid(0, 1, "wifi issue");
534+
display->showTextOnGrid(0, 2, WiFi.softAPIP().toString());
535+
display->showTextOnGrid(0, 3, "AP: " + WiFi.softAPSSID());
536+
display->showTextOnGrid(0, 4, "PW: 12345678");
533537
log_w("Unexpected wifi mode %d ", WiFiGenericClass::getMode());
534538
}
535539
} else {
@@ -823,6 +827,8 @@ void startServer(ObsConfig *obsConfig) {
823827
tryWiFiConnect();
824828

825829
if (WiFiClass::status() != WL_CONNECTED) {
830+
WiFi.mode(WIFI_MODE_NULL);
831+
WiFi.setHostname("obs");
826832
CreateWifiSoftAP();
827833
touchConfigServerHttp(); // side effect do not allow track upload via button
828834
MDNS.begin("obs");

0 commit comments

Comments
 (0)