[GH-ISSUE #605] Not success to store config.json in SPIFFS in example: AutoConnectWithFSParameters #505

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

Originally created by @swortain on GitHub (May 5, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/605

Hi,
When I run example of AutoConnectWithFSParameters. It doesn't create a file named Config.json. I'm not sure if it is because ESP8266 will store the SSID and psd and it will connect to the WiFi. So it has connected to WiFi before WiFiManager begin....
This is shown in the Serial Monitor

SDK:2.2.1(cfd48f3)/Core:2.4.1/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1)

mounting FS...
SPIFFSImpl: allocating 512+240+1400=2152 bytes
SPIFFSImpl: mounting fs @10wifi evt: 2
0000, size=2fb000, block=2000, page=100
SPIFFSImpl: mount rc=0
mounted file system
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
*WM: Added Parameter: server
*WM: Added Parameter: port
*WM: Added Parameter: blynk
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Custom STA IP/GW/Subnet
STUB: dhcp_stop
*WM: STA IP set: 10.0.1.99
st
connected with ASUS, channel 2
ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1
ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1
wifi evt: 0
wifi evt: 3
ate: 5 -> 0 (0)
rm 0
*WM: Connecting to saved AP: ASUS
*WM: connectTimeout not set, ESP waitForConnectResult...
wifi evt: 1
STA disconnect: 8
wifi evt: 8
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt

connected with ASUS, channel 2
ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1
ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1
wifi evt: 0
wifi evt: 3
*WM: Connection result: WL_CONNECTED
*WM: AutoConnect: SUCCESS
*WM: STA IP Address: 10.0.1.99
connected...yeey :)
local ip
10.0.1.99
pm open,type:2 0

Originally created by @swortain on GitHub (May 5, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/605 Hi, When I run example of AutoConnectWithFSParameters. It doesn't create a file named Config.json. I'm not sure if it is because ESP8266 will store the SSID and psd and it will connect to the WiFi. So it has connected to WiFi before WiFiManager begin.... This is shown in the Serial Monitor SDK:2.2.1(cfd48f3)/Core:2.4.1/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1) mounting FS... SPIFFSImpl: allocating 512+240+1400=2152 bytes SPIFFSImpl: mounting fs @10wifi evt: 2 0000, size=2fb000, block=2000, page=100 SPIFFSImpl: mount rc=0 mounted file system scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 2 cnt *WM: Added Parameter: server *WM: Added Parameter: port *WM: Added Parameter: blynk *WM: AutoConnect *WM: Connecting as wifi client... *WM: Custom STA IP/GW/Subnet STUB: dhcp_stop *WM: STA IP set: 10.0.1.99 st connected with ASUS, channel 2 ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1 ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1 wifi evt: 0 wifi evt: 3 ate: 5 -> 0 (0) rm 0 *WM: Connecting to saved AP: ASUS *WM: connectTimeout not set, ESP waitForConnectResult... wifi evt: 1 STA disconnect: 8 wifi evt: 8 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 2 cnt connected with ASUS, channel 2 ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1 ip:10.0.1.99,mask:255.255.255.0,gw:10.0.1.1 wifi evt: 0 wifi evt: 3 *WM: Connection result: WL_CONNECTED *WM: AutoConnect: SUCCESS *WM: STA IP Address: 10.0.1.99 connected...yeey :) local ip 10.0.1.99 pm open,type:2 0
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#505
No description provided.