mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #162] wifi save crashes again #128
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#128
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 @tablatronix on GitHub (May 5, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/162
Ill have to narrow this down and follow up with esp8266 core ( using 2.2.0 atm )
Exception (3):
epc1=0x401003e9 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4000cbd9 depc=0x00000000
ctx: cont
sp: 3fff03f0 end: 3fff0990 offset: 01a0
using pull request #157
@kentaylor commented on GitHub (May 5, 2016):
I'm not sure how to interpret this data but it looks like the device has crashed as instructed when ESP.reset(); has been called in code. The last line referenced is https://github.com/tzapu/WiFiManager/blob/master/examples/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino#L51
The next line to run is ESP.reset(); at https://github.com/tzapu/WiFiManager/blob/master/examples/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino#L54
Similarly in pull request #157
The last line referenced is https://github.com/kentaylor/WiFiManager/blob/master/examples/ConfigOnSwitch/ConfigOnSwitch.ino#L35
The next line to run is ESP.reset(); at https://github.com/kentaylor/WiFiManager/blob/master/examples/ConfigOnSwitch/ConfigOnSwitch.ino#L39
In the case of ConfigOnSwitch, ESP.reset() is called because the web server can only be started once per boot up. The ESP is restarted to make the web server functional when it is next started. It would be better if the web server could be started more than once per boot up but I'm not sure how to do that.
@tzapu commented on GitHub (May 6, 2016):
the one per boot problem is a bug i think in the cleanup of the webserver, it s worth reporting on the esp core team.
there is also another problem i ve notived with the change of ip on the various interfaces, sta/ap that the webserver doesn t like/behave
i ve managed to restart a webserver without a reboot after the wifimanager webserver goes down, maybe you can use this as inspiration
https://gist.github.com/tzapu/ecc0759829d30d5a6152
sorry, i am still otherwise engaged with daily stuff and can t give this the attention it deserves
@tablatronix commented on GitHub (May 6, 2016):
Yeah this happens when i save and it reboots i think and the. It crashes and in the pr version it gets stuck in loop crashing.
And seems to not connect first says 0 seconds spent.
@tablatronix commented on GitHub (May 7, 2016):
https://github.com/esp8266/Arduino/issues/1997