Open leofuscaldi opened 5 years ago
did you do a full flash erase?
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!
The memory might have changed you may need a full erase when switching versions
I've tried to full erase it, but made no diference. Only when I swiched back to 2.4 it worked.
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. :)
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
have you guys tried a basic spiffs example, NOT wm?
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
Ok...thankyou, I will try to update my arduino ide.
Pada tanggal Sel, 7 Mei 2019 20.20, Shawn A notifications@github.com menulis:
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
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/863#issuecomment-490076319, or mute the thread https://github.com/notifications/unsubscribe-auth/AJPCV5URQRQ337K7F7KKVQDPUF625ANCNFSM4HDCRQTQ .
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.
Hmm which default arduino examples have you tried ? i will test them
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.
That is for SD cards is it not?
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).
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
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.
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:
do you have spiffs enabled, I think it is now optional not default.
Hey, If do you mean by enable: mode to Flash Size to "4M (1M SPIFFS)", yes I did
if (SPIFFS.begin())
should do that.
hmm Have you tried full erase?
You are absolutelly right. I had forgotten to setup SPIFFS with SPIFFS.begin() Thanks!!
might also want to close spiffs after using it
Thanks for the advise @tablatronix , I will.
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!
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.
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