mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1801] Page not being rendered on browser #1516
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1516
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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();
}
`