[GH-ISSUE #689] Problems with custom parameters after restart #575

Open
opened 2026-02-28 01:25:56 +03:00 by kerem · 9 comments
Owner

Originally created by @skywalker1979 on GitHub (Aug 6, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/689

Basic Infos

scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (29)
reconnect
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt

connected with Alice, channel 11
dhcp client start...
ip:192.168.3.197,mask:255.255.255.0,gw:192.168.3.1
*WM: Connection result:
*WM: 3
*WM: IP Address:
*WM: 192.168.3.197
connected...yeey :)
local ip
192.168.3.197
*WM: freeing allocated params!

Latest official relelease, but also tried latest development of WifiManager

Hardware: esp01

Core Version: 2.4.2

Problem description
I flashed the sample "AutoConnectWithFSParameters" and made no changes. (except adding a logging line in loop, that would tell me if the custom parameter has been read.)
Settings are saved as soon as they are entered, but are lost on power off / power on..

Settings in IDE

Inside arduino i tried Generic esp8266.
Nodemcu seems not to be working for me.

Originally created by @skywalker1979 on GitHub (Aug 6, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/689 ### Basic Infos scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 0 (29) reconnect scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 3 cnt connected with Alice, channel 11 dhcp client start... ip:192.168.3.197,mask:255.255.255.0,gw:192.168.3.1 *WM: Connection result: *WM: 3 *WM: IP Address: *WM: 192.168.3.197 connected...yeey :) local ip 192.168.3.197 *WM: freeing allocated params! Latest official relelease, but also tried latest development of WifiManager Hardware: esp01 Core Version: 2.4.2 Problem description I flashed the sample "AutoConnectWithFSParameters" and made no changes. (except adding a logging line in loop, that would tell me if the custom parameter has been read.) Settings are saved as soon as they are entered, but are lost on power off / power on.. ### Settings in IDE Inside arduino i tried Generic esp8266. Nodemcu seems not to be working for me.
Author
Owner

@tablatronix commented on GitHub (Aug 7, 2018):

works for me

mounting FS...
mounted file system
reading config file
opened config file
{"mqtt_server":"MY_SERVER","mqtt_port":"1234","api_token":"Abcdefgh"}
parsed json
*WM: [3] allocating params bytes: 20
*WM: [2] Added Parameter: server
*WM: [2] Added Parameter: port
*WM: [2] Added Parameter: api
*WM: [1] AutoConnect 
*WM: [2] Connecting as wifi client... 

Dont some versions of esp01 not support spiffs?

<!-- gh-comment-id:411153348 --> @tablatronix commented on GitHub (Aug 7, 2018): works for me ``` mounting FS... mounted file system reading config file opened config file {"mqtt_server":"MY_SERVER","mqtt_port":"1234","api_token":"Abcdefgh"} parsed json *WM: [3] allocating params bytes: 20 *WM: [2] Added Parameter: server *WM: [2] Added Parameter: port *WM: [2] Added Parameter: api *WM: [1] AutoConnect *WM: [2] Connecting as wifi client... ``` Dont some versions of esp01 not support spiffs?
Author
Owner

@skywalker1979 commented on GitHub (Aug 18, 2018):

i don't know. How can i know if mine supports spiffs?
i don't see any MOUNTING fs or the rest.

<!-- gh-comment-id:414085004 --> @skywalker1979 commented on GitHub (Aug 18, 2018): i don't know. How can i know if mine supports spiffs? i don't see any MOUNTING fs or the rest.
Author
Owner

@skywalker1979 commented on GitHub (Aug 18, 2018):

In case spiffs is not supported...is there any chance to use eeprom?

<!-- gh-comment-id:414085038 --> @skywalker1979 commented on GitHub (Aug 18, 2018): In case spiffs is not supported...is there any chance to use eeprom?
Author
Owner

@skywalker1979 commented on GitHub (Aug 18, 2018):

maybe it is connected to this?

https://github.com/esp8266/Arduino/issues/4061

<!-- gh-comment-id:414085256 --> @skywalker1979 commented on GitHub (Aug 18, 2018): maybe it is connected to this? https://github.com/esp8266/Arduino/issues/4061
Author
Owner

@tablatronix commented on GitHub (Aug 18, 2018):

Wow that is very interesting.

<!-- gh-comment-id:414086849 --> @tablatronix commented on GitHub (Aug 18, 2018): Wow that is very interesting.
Author
Owner

@skywalker1979 commented on GitHub (Aug 19, 2018):

it is true that my esp01 have the puya chip....so it seems totally connected.

<!-- gh-comment-id:414115581 --> @skywalker1979 commented on GitHub (Aug 19, 2018): it is true that my esp01 have the puya chip....so it seems totally connected.
Author
Owner

@skywalker1979 commented on GitHub (Aug 23, 2018):

i can confirm that the patch indicated in the issue i linked, does work and solves the issue with the puya chip not being able to use spiffs....and consequently WiFiManager
i hope it will be integrated in the main esp release.

<!-- gh-comment-id:415492642 --> @skywalker1979 commented on GitHub (Aug 23, 2018): i can confirm that the patch indicated in the issue i linked, does work and solves the issue with the puya chip not being able to use spiffs....and consequently WiFiManager i hope it will be integrated in the main esp release.
Author
Owner

@tablatronix commented on GitHub (Aug 23, 2018):

refs
https://github.com/esp8266/Arduino/issues/4061#issuecomment-368273656

<!-- gh-comment-id:415493624 --> @tablatronix commented on GitHub (Aug 23, 2018): refs https://github.com/esp8266/Arduino/issues/4061#issuecomment-368273656
Author
Owner

@tablatronix commented on GitHub (Aug 23, 2018):

if anyone wants to find a replacement for spiffs for those examples feel free to PR against development branch

<!-- gh-comment-id:415494202 --> @tablatronix commented on GitHub (Aug 23, 2018): if anyone wants to find a replacement for spiffs for those examples feel free to PR against development branch
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#575
No description provided.