mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #771] ESP32 reboot after Wifi is disconnected #644
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#644
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 @bigdolphin on GitHub (Nov 24, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/771
After connected to a wifi, ESP32 reboots automatically if that wifi is disconnected.
The reason at line 2666 in WiFiManager.cpp
DEBUG_WM(DEBUG_VERBOSE,"[EVENT]",event);
Comment that line solves the issue.
@tablatronix commented on GitHub (Nov 24, 2018):
Thanks
@tablatronix commented on GitHub (Nov 24, 2018):
I cannot reproduce
@tablatronix commented on GitHub (Nov 24, 2018):
when was the last time you pulled in development?
@tablatronix commented on GitHub (Nov 24, 2018):
ok got it now different sketch
@tablatronix commented on GitHub (Nov 24, 2018):
event is called after wm is out of scope, must removeevent in deconstructor
WiFi.removeEventI have to add a way to pass the cb since it is a std::bind cb, not sure how to remove it
@tablatronix commented on GitHub (Nov 25, 2018):
for now I am just checking a variable in scope, and bailing if its not true
@CarnageMarkus commented on GitHub (Nov 25, 2018):
Hi, I have the same problem - its rebooting right after finishing
setup. I pulled straight away and checked, but it still reboots right after*WM: [3] unloading@tablatronix commented on GitHub (Nov 25, 2018):
after setup as in saving ?
I did not check that, let me test
I am assuming you pulled the fix in ?
@tablatronix commented on GitHub (Nov 25, 2018):
Can you enable debugging and se what events are being emitted because I am not able to reproduce
Also are you using esp32 staging ?
@bigdolphin commented on GitHub (Nov 25, 2018):
Thank you very much, after testing the new code, the issue is solved
@tablatronix commented on GitHub (Feb 27, 2019):
This broke esp32 async scannetworks, as the event never fires for some reason.
@tablatronix commented on GitHub (Feb 27, 2019):
I never set the darn variable to true!