mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #863] Problem to Save on FS #728
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#728
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 @leofuscaldi on GitHub (Apr 2, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/863
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12F,
ESP Core Version: 2.4.0, staging
Description
Cannot save anything on ESP12F. It seems that it fails to mount FS.
Settings in IDE
Module: NodeMcu
Additional libraries:
Sketch is the AutoConnectWithFSParametersAndCustomIP where I`ve changed the IP and gateway.
Debug Messages
mounting FS...
failed to mount FS
*WM: [3] allocating params bytes: 20
*WM: [2] Added Parameter: server
*WM: [2] Added Parameter: port
*WM: [2] Added Parameter: blynk
*WM: [1] AutoConnect
*WM: [2] Connecting as wifi client...
*WM: [1] STA static IP: 192.168.8.88
*WM: [2] Custom static IP/GW/Subnet/DNS
*WM: [2] Custom STA IP/GW/Subnet
*WM: [1] STA IP set: 192.168.8.88
*WM: [3] WIFI station disconnect
*WM: [1] No saved credentials, skipping wifi
*WM: [2] Connection result: WL_NO_SSID_AVAIL
*WM: [3] lastconxresult: WL_NO_SSID_AVAIL
*WM: [1] AutoConnect: FAILED
*WM: [2] AccessPoint set password is VALID
*WM: [1] password
*WM: [3] WIFI station disconnect
*WM: [3] WiFi station enable
*WM: [2] Disabling STA
*WM: [2] Enabling AP
*WM: [1] StartAP with SSID: AutoConnectAP
*WM: [1] AP IP address: 192.168.4.1
*WM: [3] setupConfigPortal
*WM: [1] Starting Web Portal
*WM: [3] dns server started with ip: 192.168.4.1
*WM: [2] HTTP server started
*WM: [2] WiFi Scan ASYNC started
*WM: [2] Config Portal Running, blocking, waiting for clients...
*WM: [2] NUM CLIENTS: 0
*WM: [2] WiFi Scan ASYNC completed in 2203 ms
*WM: [2] WiFi Scan ASYNC found: 2
*WM: [2] <- HTTP Root
*WM: [3] -> 192.168.4.1
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [2] Scan is cached 17023 ms ago
*WM: [3] -> connectivitycheck.gstatic.com
*WM: [2] <- Request redirected to captive portal
*WM: [3] -> clients3.google.com
*WM: [2] <- Request redirected to captive portal
*WM: [3] -> portal.fb.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] <- HTTP Root
*WM: [3] -> 192.168.4.1
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [2] Scan is cached 19344 ms ago
*WM: [3] -> connect.rom.miui.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] <- HTTP Root
*WM: [3] -> 192.168.4.1
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [2] WiFi Scan ASYNC started
*WM: [3] -> 192.168.4.1
*WM: [2] WiFi Scan ASYNC completed in 2205 ms
*WM: [2] WiFi Scan ASYNC found: 4
*WM: [2] <- HTTP Wifi
*WM: [2] Scan is cached 1036 ms ago
*WM: [1] 4 networks found
*WM: [2] DUP AP: OTWLAN
*WM: [2] AP: -66 OTWLAN
*WM: [2] AP: -66 OTpublic
*WM: [2] AP: -95 NET_2G034B04
*WM: [3] _staShowStaticFields
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [3] Sent config page
*WM: [3] -> connect.rom.miui.com
*WM: [2] <- Request redirected to captive portal
*WM: [3] -> connect.rom.miui.com
*WM: [2] <- Request redirected to captive portal
*WM: [3] -> connect.rom.miui.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] NUM CLIENTS: 1
*WM: [3] -> connect.rom.miui.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] <- HTTP WiFi save
*WM: [3] Method: POST
*WM: [2] Parameters
*WM: [2] --------------------
*WM: [2] server: Teste.xxx.com
*WM: [2] port: 1883
*WM: [2] blynk: YOUR_BLYNK_TOKEN
*WM: [2] --------------------
*WM: [3] static ip: 192.168.8.88
*WM: [3] static gateway: 192.168.8.1
*WM: [3] static netmask: 255.255.255.0
*WM: [3] Sent wifi save page
*WM: [2] process connect
*WM: [2] Connecting as wifi client...
*WM: [1] STA static IP: 192.168.8.88
*WM: [2] Custom static IP/GW/Subnet/DNS
*WM: [2] Custom STA IP/GW/Subnet
*WM: [1] STA IP set: 192.168.8.88
*WM: [3] WIFI station disconnect
*WM: [1] Connecting to new AP: $ecreta
*WM: [3] Using Password: $3nh4$3gur4
*WM: [3] WiFi station enable
*WM: [3] enableSTA PERSISTENT ON
*WM: [1] connectTimeout not set, ESP waitForConnectResult...
*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] Connect to new AP [SUCCESS]
*WM: [1] Got IP Address:
*WM: [1] 192.168.8.88
Should save config
*WM: [2] disconnect configportal
*WM: [2] restoring usermode STA
*WM: [2] wifi status: WL_CONNECTED
*WM: [2] wifi mode: STA
*WM: [1] config portal exiting
connected...yeey :)
saving config
failed to open config file for writing
{"mqtt_server":"Teste.xxx.com","mqtt_port":"1883","blynk_token":"YOUR_BLYNK_TOKEN"}local ip
192.168.8.88
*WM: [3] freeing allocated params!
*WM: [3] unloading
@tablatronix commented on GitHub (Apr 2, 2019):
did you do a full flash erase?
@leofuscaldi commented on GitHub (Apr 2, 2019):
I just found the problem... looking for my core version, I found that it was on 2.5.
I've downgraded it to 2.4 and it worked!
@tablatronix commented on GitHub (Apr 2, 2019):
The memory might have changed you may need a full erase when switching versions
@leofuscaldi commented on GitHub (Apr 2, 2019):
I've tried to full erase it, but made no diference. Only when I swiched back to 2.4 it worked.
@Albin76 commented on GitHub (Apr 10, 2019):
Hi. Same problem for me and also solved by downgrading esp8266 core from 2.5.0 to 2.4.0 thanks to @leofuscaldi comment! Thanks a lot @leofuscaldi, made my day! Have been troubleshooting for some time now. :)
@supriyono01 commented on GitHub (May 5, 2019):
Hi, I experienced the same thing. I have downgraded version 8266 from 2.5 to 2.4 but have not been able to solve the problem. Can help me....
After I tried it many times it turned out that it was saved but provided that when I left the portal, it was directly connected to the ap. If it is not directly connected then the parameters that we enter through the portal cannot be saved
@tablatronix commented on GitHub (May 6, 2019):
have you guys tried a basic spiffs example, NOT wm?
@tablatronix commented on GitHub (May 7, 2019):
2.5 release notes say that build flags changed and is a breaking change, are your arduino IDEs up to date, maybe spiffs is now disabled
@supriyono01 commented on GitHub (May 7, 2019):
Ok...thankyou, I will try to update my arduino ide.
Pada tanggal Sel, 7 Mei 2019 20.20, Shawn A notifications@github.com
menulis:
@DanwithArduino commented on GitHub (Jul 30, 2019):
Having issues with this as well. Downgrading to 2.4.x (all versions) breaks my MQTT/pubsub client as well. So, I can either have functioning FS or functioning MQTT... But I can't figure out what the changes are.
ESP12F, core versions 2.4.x and 2.5.2. WifiManager development branch.
@tablatronix commented on GitHub (Jul 30, 2019):
Hmm which default arduino examples have you tried ? i will test them
@DanwithArduino commented on GitHub (Jul 30, 2019):
Might not be WiFiManager's problem. I just tried https://github.com/bblanchon/ArduinoJson/blob/6.x/examples/JsonConfigFile/JsonConfigFile.ino and am still unable to mount the file system.
@tablatronix commented on GitHub (Jul 30, 2019):
That is for SD cards is it not?
@DanwithArduino commented on GitHub (Jul 30, 2019):
Found the solution: In the Arduino IDE (or presumably the board manager in VScode but have not verified - should be same functionality) go to tools\Flash Size\choose one.... So far, I am getting positive results for 4M (1M SPIFFS).
@tablatronix commented on GitHub (Jul 31, 2019):
Yeah that is typically the setting you use for spiffs, unless we are having a memory issue here? Development is surely larger that release, but I made sure it was not that much
@DanwithArduino commented on GitHub (Jul 31, 2019):
I had
4M (No Spiffs)before. Still learnding. Thanks for the replies. I think I'm all good now after a few days of head banging.@carlesgutierrez commented on GitHub (Sep 10, 2019):
Hello,
I'm not able to write or read using SPIFFS.
I've succesfully checked before that SPIFFS works on a regular example without the wifiManager.
How I can check if It FAILS to mount FS?
My configuration:
@tablatronix commented on GitHub (Sep 10, 2019):
do you have spiffs enabled, I think it is now optional not default.
@carlesgutierrez commented on GitHub (Sep 10, 2019):
Hey,
If do you mean by enable: mode to Flash Size to "4M (1M SPIFFS)", yes I did
@tablatronix commented on GitHub (Sep 10, 2019):
if (SPIFFS.begin())should do that.
hmm
Have you tried full erase?
@carlesgutierrez commented on GitHub (Sep 10, 2019):
You are absolutelly right. I had forgotten to setup SPIFFS with SPIFFS.begin()
Thanks!!
@tablatronix commented on GitHub (Sep 10, 2019):
might also want to close spiffs after using it
@carlesgutierrez commented on GitHub (Sep 10, 2019):
Thanks for the advise @tablatronix , I will.
@cunhaeduardo commented on GitHub (Dec 19, 2019):
Hi guys! Today I have the same problem as you and I solved it changing configuration in tool -> flash size -> 4M(1M SPIFFS). Someone posted it but I'm doing it again to be easier to find!
@Zadkiel2 commented on GitHub (Feb 7, 2020):
Hi guys! Please help me with the project I am building now. The project needs codes like this but I had problems dealing with ArduinoJson 6 and I am really new to these kind of things so I really have no idea about it. Hope you guys help me out. Salamat.