jczic / ESP32-MPY-Jama

v1.2 - UI tool for manage Espressif ESP32 microcontrollers with embedded MicroPython for MacOS, Windows and Linux: mini IDE, files manager, REPL, real time dashboards (sys/net), advanced features (gpio/mp3/leds/...)
https://github.com/jczic/ESP32-MPY-Jama
MIT License
424 stars 25 forks source link

Saving of Wi-Fi configuration not working #31

Closed happenpappen closed 1 year ago

happenpappen commented 1 year ago

I tried several ways to safe the Wi-Fi configuration, but all end in errors:

  1. Directly after starting the program and connecting a device click on the "Connect Wi-Fi" button in the left sidebar. After connection to the Wi-Fi is established, change to the "Networks" view and click on the save button. After this action the "System", "Networks" and "Connect Wi-Fi" and "Firmware Tools" buttons in the sidebar and the "Disconnect device" button in the top right don't work anymore - you can click them, but nothing happens.
  2. After starting the program and connecting a device click on "Networks" in the sidebar and then the "config" link. Then proceed as in 1.

I tested this on Linux using the current version from git with a "Seeed Studio XIAO ESP32C3" board.

jczic commented 1 year ago

Hi @happenpappen, hmm, could you try in the REPL to enter "from esp32 import NVS" and see if it works correctly? The configuration backup saves settings in the non-volatile NVS partition via the esp32.NVS module. In addition, it creates a file "_jamaBootCfg.py" in the root of the Flash and creates the file or adds a line in "boot.py" to load it. Do you see this file created in your Flash?

What I'm going to have to figure out is whether this is happening on Linux or whether it's due to the type of ESP32 you have. I assume your micropython is well up to date.


I may have found the problem. What is your directory root path ("/", "flash/", ....)?

I fixed a rootpath problem, tell me if the repo update works :) (https://github.com/jczic/ESP32-MPY-Jama/commit/4d9812879a01a2aade46f97294fede5474784b63)

happenpappen commented 1 year ago

I fetched the current sources this morning and now it's working again - so it looks like the fix is working. And yes, i test with the current 1.19.1 Micropython version.