-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
ESP32 Wifi settings not saving #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you link to the shop and device you're using? Just to check whether you have the right binary. |
Hello @raoulteeuwen! Here is the URL to the device i purchased: https://www.amazon.com/gp/product/B07Q576VWZ/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1 |
Thank you @Boricuatec , sorry for asking, just checking. Seems fine ;-). Do you have 2 ESP's or another controller you can try, to rule out a defective ESP / hardware? |
Hi. I have the same problem. I verified this with two esp32 WROOM32. None of the changed settings are stored after reboot. |
Mmmm, wondering whether the WROOM has some specific problem. Any chance you could try with another ESP, not a WROOM? Like https://nl.aliexpress.com/item/32647690484.html?spm=a2g0s.12269583.0.0.6136735667kiQe ? How are you powering the ESP? While trying to find a possible problem, i found espressif/arduino-esp32#2969 . I also found https://esp32.com/viewtopic.php?f=19&t=4657 , hinting to some problem with (writing/)reading. |
@raoulteeuwen It cannot be ESP-WROOM-32 specific as I have tested on two different ESP-WROOM-32 boards: and both have no issues writing and reading WiFi Setup, LED Preferences, User Interface or Sync Interfaces settings across several reboots. Possibly the implementation of them by the manufacturer. @Boricuatec I would try a different manufacturer of ESP32 and see if your issues persist. Can you try to run the eeprom_class example that should have been installed with the board definition? That is assuming you are using Arduino IDE. |
I had similar experiences once, I had to format the flash chip for it to
start working correctly. Sharing just in case.
Le lun. 21 oct. 2019 2 h 07 p.m., Raoul Teeuwen <[email protected]>
a écrit :
… Mmmm, wondering whether the WROOM has some specific problem. Any chance
you could try with another ESP, not a WROOM? Like
https://nl.aliexpress.com/item/32647690484.html?spm=a2g0s.12269583.0.0.6136735667kiQe
?
How are you powering the ESP? While trying to find a possible problem, i
found espressif/arduino-esp32#2969
<espressif/arduino-esp32#2969> .
I also found https://esp32.com/viewtopic.php?f=19&t=4657 , hinting to
some problem with (writing/)reading.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#271>,
or unsubscribe
<https://github.com./notifications/unsubscribe-auth/AHBFDCRHVMXSQTSHEYP4XS3QPXVVHANCNFSM4JDACP7Q>
.
|
I'm on an ESP8266 and having the same issue. Loaded onto another ESP8266 2 days ago and that worked no problem. Think it's either down to dud flash, or I've got a model ESP8266 that can't handle the memory settings. Effectively I can access WLED via the access point...whenever I try save changes as above (to either the AP or the LED settings), it resets and doesn't save the new settings. Have got around this by changing the AP settings in the WLED00.ino file. It then works, although I cannot adjust the LED count. Issue appears to be that as soon as I use WLED to save the settings, the chip reboots. If I flash the sketch with it, it's fine. Not clever enough to know why that might be the case, although suspect it could be to do with the model ESP8266 I am using. |
Thank you for all the reports! |
@Aircoookie Thanks for looking into this, when do you plan on updating this? I would love to try it out and see if it works. |
@Boricuatec just pushed the new code to master! Might not yet work well though, will release a binary tomorrow! |
ThanksSent from my T-Mobile 4G LTE Device
-------- Original message --------
*Aircoookie removed this for better thread readability*
|
@Aircoookie Okay so it's partially working. I can now set the WIFI and it will connect which is awesome. But it the device gets powered down and restarted it, the wifi credentials are reset to default. Basically it wont reliably keep the settings even in the Wifi settings section. |
@Boricuatec ok, so it seems like there is no issue with WiFi then, but the saving of settings fails, probably due to a somehow invalid flash configuration. Did you try |
@Aircoookie It worked but I still think there is an issue. I used the esptool to erase flash. But I think that the save button in wifi settings is not really committing it to storage. If I get it on wifi then go in to the security and updates then tell it to save it reboot then it will save it. I could be completely wrong but I have flashed this device and another over and over again and it may have been the saving to storage that was the problem the whole time maybe??? They are working now so I am happy, I have to say I am totally loving your damn WLED! Great work! Also I saw your webcast with DRZZZs the other day! Great job!!! |
Tomorrow I will flash the binaries onto brand new ESPs and see if i'll be able to reproduce your findings! |
Was someone able to come up with a solution? I installed the current .bin using ota programmer and having same issue. Can connect to AP but when I save settings for my local network and reboot everything is reset to defaults. Awesome program though! Great job! |
Sorry for taking so long on this! Here is a new binary, please test if it solves the saving issue. I'm a bit tapping in the dark with that one, so this will probably not solve the issue, but here you go: |
Thank you I will try it out tomorrow.
…On Sat, Nov 9, 2019 at 4:46 PM Aircoookie ***@***.***> wrote:
Sorry for taking so long on this!
I couldn't reproduce any issue with the settings not saving yet...
What I reproduced though is another issue: espressif/arduino-esp32#2501
<espressif/arduino-esp32#2501>
Basically, in some cases the wifi only reconnects every second attempt.
The auto reconnect will take care of this though and the ESP will connect
after 5 minutes. Alternatively, power cycling or saving the wifi settings
from AP once again will also work.
Here is a new binary, please test if it solves the saving issue. I'm a bit
tapping in the dark with that one, so this will probably not solve the
issue, but here you go:
https://drive.google.com/open?id=1n1zE7rhBjg5QrfP3Y3VKmudvXFgVnCYz
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#271>,
or unsubscribe
<https://github.com./notifications/unsubscribe-auth/ANWPTNU6AZA2TOGJTZA5MKLQS5DWPANCNFSM4JDACP7Q>
.
|
For info I have the same issue WiFi credentials not saved after a reboot using the latest bin file |
what helped me was i reflashed the module and reloaded the bin file using
an OTA sketch on the board and since then has kept the settings.
…On Sun, Nov 17, 2019 at 1:33 PM Ukhauk ***@***.***> wrote:
For info I have the same issue WiFi credentials not saved after a reboot
using the latest bin file
WLED_0.8.6_1911081_ESP32_ledpin16.bin board type is a wemos d1 r32
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#271>,
or unsubscribe
<https://github.com./notifications/unsubscribe-auth/ANWPTNRFCYZUR4DNYFH63UTQUGTATANCNFSM4JDACP7Q>
.
|
I am trying to erase the ESP32 and re flash can anyone confirm I am doing the basics correctly an I missing anything extra when downloading a pre-compiled bin file ? esptool.py --port /dev/ttyUSB0 --chip esp32 erase_flash esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 ~/Documents/Wled/WLED_0.8.6_ESP32.bin Its worth mentioning I can't get the OTAWebUpdater arduino sketch to connect to my network either so think something is corrupted somewhere. Update!! OTAWebUpdater now works after updating to latest ESP32 in the Arduino board manager. Any help appreciated |
Just an update in case anyone else having the same issues am I doing something wrong ? |
@Ukhauk did you try not setting a memory offset in esptool? Try this command: I'm not sure, but it might help :) |
Hi Aircookie thanks for suggestion I have tried the above clearing the flash and esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x0000 ~/Documents/Wled/WLED_0.8.6_ESP32.bin I managed to get the OTAWebUpdater loaded by updating the ESP32 board manager to the latest revision. If I download WLED_0.8.6_ESP32.bin over the air I still can't save ths Wifi configuration as reported in this issue. I have the same issue with older version WLED_0.8.5_ESP32.bin |
I have the same issue on a wemos d1 mini ESP32 board. I have uploaded by USB and OTA using OTAWebUpdater and connected to WLED_AP but on power cycle/reboot the WiFi credentials have returned to default. I have cleared the flash and re-uploaded with no success. I too have tried with previous versions of WLED none of these seem to work. I tried recompiling in platformio with hard-coded credentials but it was my first time with platformio and I am getting errors I cannot resolve at the moment. |
For the record, I have the same issue with "DOIT Esp32 DevKit v1", both 0.8.5 and 0.8.6 behave the same (only "remembers" settings until reset) |
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. |
SR 0.13.4 release updates, part1
Thanks for making this project! I was able to download the ESP32 binary from https://github.com./Aircoookie/WLED/releases and upload so thats all good! But when I hit the webserver and try to configure my SSID and password it wont connect to it. I also noticed when I change the LED count from 30 to 300, it does not keep that setting. If I restart the ESP32 it always goes back to 30. Is there something special about getting the ESP32 to save those settings? Is there a forum I could access to have others help me?
The text was updated successfully, but these errors were encountered: