mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1363] Exception28 after loading stored custom parameters with FS after reset #1169
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#1169
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 @zeile42 on GitHub (Feb 18, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1363
Hello to all,
sorry for my bad englisch...
My problem is, that wenn i use Wifimanger libary and want so set custom parameter after resetting the ESP8266, the parameter which i wrote in the captive portal, can not be loaded.
This is my code:
If i load the code on the esp8266 for the first time, everything is ok and working, but if i reset the esp8266 the stored parameters can not be loaded again and the programm crashes.
The error what i get:
`)⸮
⸮@H⸮LH⸮mounting FS...
mounted file system
reading config file
opened config file
{"10.0.0.43":"10.0.0.43","1883":"1883","Test1":"Test1","mqtt_I":"mqtt_I","mqtt_user":"mqtt_user","mqtt_pass":"mqtt_pass"}
parsed json
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (28):
epc1=0x40222bdc epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
stack>>>
ctx: cont
sp: 3ffffc70 end: 3fffffc0 offset: 0190
3ffffe00: 3ffef55c 3fff1004 3ffef55c 40201aa4
3ffffe10: 3ffe89af 3fff1004 3ffef55c 40202daf
3ffffe20: 3fff1064 3fff105a feefef01 3fff107d
3ffffe30: feef007d 3ffffe88 feefeffe feefeffe
3ffffe40: feefeffe feefeffe feefeffe feefeffe
3ffffe50: feefeffe feefeffe feefeffe feefeffe
3ffffe60: feefeffe feefeffe feefeffe feefeffe
3ffffe70: feefeffe feefeffe 00000000 feefeffe
3ffffe80: feefeffe feefeffe 3fff1084 3fff1084
3ffffe90: 3fff1424 3fff1484 feefef00 feefeffe
3ffffea0: 3fff1474 3fff1424 feefef20 feefeffe
3ffffeb0: 4021d884 00000000 000003e8 4020f358
3ffffec0: 00000000 3fff0fc0 3fff0fb4 4021290c
3ffffed0: 00000000 00000000 3ffef724 feefeffe
3ffffee0: feefeffe feefeffe feefeffe feefeffe
3ffffef0: feefeffe feefeffe feefeffe feefeffe
3fffff00: feefeffe feefeffe feefeffe feefeffe
3fffff10: feefeffe feefeffe feefeffe feefeffe
3fffff20: feefeffe feefeffe feefeffe feefeffe
3fffff30: feefeffe feefeffe feefeffe feefeffe
3fffff40: feefeffe feefeffe feefeffe feefeffe
3fffff50: feefeffe feefeffe feefeffe feefeffe
3fffff60: feefeffe feefeffe feefeffe feefeffe
3fffff70: feefeffe feefeffe feefeffe feefeffe
3fffff80: feefeffe feefeffe feefeffe feefeffe
3fffff90: feefeffe feefeffe feefeffe 3ffef6a0
3fffffa0: 3fffdad0 00000000 3ffef68c 40211728
3fffffb0: feefeffe feefeffe 3ffe85f4 40100d0d
<<<stack<<<`
Can the problem be the Flashe Size?
My setting is: Flash Size: 4MB (FS:2MB OTA: 1019kB)
This is what i get in the consol when i load the scetch to the esp8266 board:
Chip is ESP8266EX Features: WiFi Crystal is 26MHz MAC: c4:5b:be:54:d9:82 Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 4MB Flash params set to 0x0340 Compressed 402144 bytes to 284578...Also i saw, that the parameter which i changed in the captive portal also the names are changed:
{"10.0.0.43":"10.0.0.43","1883":"1883","Test1":"Test1","mqtt_ID":"mqtt_ID","mqtt_user":"mqtt_user","mqtt_pass":"mqtt_pass"}Should it not be like:
{"mqtt_server":"10.0.0.43","mqtt_port":"1883","mqtt_topic":"Test1","mqtt_ID":"mqtt_ID","mqtt_user":"mqtt_user","mqtt_pass":"mqtt_pass"}So that the name mqtt_server is not changed to the value i give it in the captive portal?
Has anybody an idea what the problem is and can help me?
Thanks for the help
mfg
@tablatronix commented on GitHub (Feb 18, 2022):
you mean this ?
#define mqtt_server "mqtt_server"Thats not a variable, thats a definition, so that is why they are all still strings