[GH-ISSUE #1801] Page not being rendered on browser #1516

Open
opened 2026-02-28 01:30:22 +03:00 by kerem · 0 comments
Owner

Originally created by @y-runwal on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1801

I am doing a project where device is connected to WiFi and MQTT server and some bluetooth related activity is going on. I have implemented on demand portal. When i trigger it, root page is being displayed on browser, but when pressed setup, it just doesn't load (stuck on blank page in browser). My setup has parameters for MQTT credentials. What can go wrong? Should I disconnect wifi and mqtt server below starting portal?
Below is my function to start config portal. some part is removed from original function.

`
void mannual_wifi_init() {
xTimerStop(mqttReconnectTimer, 0);

mqttClient.disconnect(true);
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
open_for_AP = false;
wm.setConfigPortalTimeout(100);

if (!wm.startConfigPortal("ER-BLE-Scanner11")) {
Serial.println("failed to connect and hit timeout");
delay(3000);
//reset and try again, or maybe put it to deep sleep
ESP.restart();
delay(5000);
}

//if you get here you have connected to the WiFi
Serial.println("connected...yeey :)");
xTimerStart(mqttReconnectTimer, 0);
AP_config_mode = wm.getConfigPortalActive();
}

`

Originally created by @y-runwal on GitHub (Feb 17, 2025). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1801 I am doing a project where device is connected to WiFi and MQTT server and some bluetooth related activity is going on. I have implemented on demand portal. When i trigger it, root page is being displayed on browser, but when pressed setup, it just doesn't load (stuck on blank page in browser). My setup has parameters for MQTT credentials. What can go wrong? Should I disconnect wifi and mqtt server below starting portal? Below is my function to start config portal. some part is removed from original function. ` void mannual_wifi_init() { xTimerStop(mqttReconnectTimer, 0); mqttClient.disconnect(true); WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP open_for_AP = false; wm.setConfigPortalTimeout(100); if (!wm.startConfigPortal("ER-BLE-Scanner11")) { Serial.println("failed to connect and hit timeout"); delay(3000); //reset and try again, or maybe put it to deep sleep ESP.restart(); delay(5000); } //if you get here you have connected to the WiFi Serial.println("connected...yeey :)"); xTimerStart(mqttReconnectTimer, 0); AP_config_mode = wm.getConfigPortalActive(); } `
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1516
No description provided.