ESP32-Web / WiFi-Manager_Library

Files required to run ESP32 Web WiFi Manager
18 stars 3 forks source link

Wifi scan error #2

Closed jaksatomovic closed 7 months ago

jaksatomovic commented 8 months ago

I have adafruits feather esp32-s3 nopsram board and when i open local site and press scan for wifi esp32 fauls and restarts itself

FarazFKhan commented 8 months ago

I had this issue happening in the early stages of this library being made. After a few changes this issue had disappeared on my end, but I think my solution was limited to certain conditions. I will revisit that and attempt to patch this bug up once I get the chance to do so. Will post an update once a patch has been committed to Github.

jaksatomovic commented 8 months ago

Also one note. I had to change following code in order for LittleFS to work with S3 chip

     // if (!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED)) {
    if (!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED, "/littlefs", 10, "ffat")) { // this is used on esp32-s3
    Serial.println("LittleFS Mount Failed");
    return;
     }
FarazFKhan commented 8 months ago

I have adafruits feather esp32-s3 nopsram board and when i open local site and press scan for wifi esp32 fauls and restarts itself

Just a quick update: The issue has been fixed. Just need to refactor some code, clean it up. I will commit the changes by the end of week if not sooner. I just hope this fix works on all ESP32 boards as I was only able to test on 2 variants I have right now.

FarazFKhan commented 8 months ago

Also one note. I had to change following code in order for LittleFS to work with S3 chip

     // if (!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED)) {
    if (!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED, "/littlefs", 10, "ffat")) { // this is used on esp32-s3
  Serial.println("LittleFS Mount Failed");
  return;
     }

Interesting, thank you for pointing that out. I will order a ESP32-S3 so I can run tests on that as well.

FarazFKhan commented 8 months ago

I have adafruits feather esp32-s3 nopsram board and when i open local site and press scan for wifi esp32 fauls and restarts itself

Just a quick update: The issue has been fixed. Just need to refactor some code, clean it up. I will commit the changes by the end of week if not sooner. I just hope this fix works on all ESP32 boards as I was only able to test on 2 variants I have right now.

This update has been pushed. You can download the updated files from the ESP32 Web website or from github directly. Licencing requirements have also been removed.

jaksatomovic commented 8 months ago

Thank you 👍

jaksatomovic commented 7 months ago

quick update - it works now!