mtongnz / ESP8266_ArtNetNode_v2

ESP8266 based WiFi ArtNet to DMX, RDM and LED Pixels
GNU General Public License v3.0
611 stars 158 forks source link

nodeMCU not saving changes from web GUI. #74

Open potentstudios opened 6 years ago

potentstudios commented 6 years ago

I've tried several times to change the settings and it seems to be finicky on what it saves. I'm using a setup of 10 MCUs and some have no issues while others won't save. Any thoughts?

lampenschakelen commented 6 years ago

Hi potentstudios ,

You can try to erase the esp8266.

This fix the problem for me.

http://www.pratikpanda.com/completely-format-erase-esp8266-flash-memory/

potentstudios commented 6 years ago

Thanks I'll try that!

mtongnz commented 6 years ago

I have experienced the same issue but haven't found the culprit yet

bombcheck commented 6 years ago

Maybe this part of the setup routine?

// Check if SPIFFS formatted
  if (SPIFFS.exists("/formatted.txt")) {
    SPIFFS.format();

    File f = SPIFFS.open("/formatted.txt", "w");
    f.print("Formatted");
    f.close();
  }

It should be more like this right?

// Check if SPIFFS formatted
  if (!SPIFFS.exists("/formatted.txt")) {
    SPIFFS.format();

    File f = SPIFFS.open("/formatted.txt", "w");
    f.print("Formatted");
    f.close();
  }
khastings1066 commented 6 years ago

The solution proposed by bombcheck worked for me with beta5g. Currently SPIFFS is wiped every time the system restarts.

potentstudios commented 6 years ago

Has anyone else tested/confirmed bombcheck's fix?