[GH-ISSUE #1482] Esp32 s3/c3 softap not working esp v2.0.3+ #1265

Open
opened 2026-02-28 01:29:19 +03:00 by kerem · 50 comments
Owner

Originally created by @tablatronix on GitHub (Aug 26, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1482

There are several open issues that all seem related to wifi being broken on esp32 s3 and c3, seems to work on the latest esp lib. Not sure if its a combination on wifimanager starting and stopping sta mode the ln starting softap making this hard to debug.

Solution: USE 2.0.4

Originally created by @tablatronix on GitHub (Aug 26, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1482 There are several open issues that all seem related to wifi being broken on esp32 s3 and c3, seems to work on the latest esp lib. Not sure if its a combination on wifimanager starting and stopping sta mode the ln starting softap making this hard to debug. Solution: USE 2.0.4
Author
Owner

@MattiaCC93 commented on GitHub (Aug 31, 2022):

Hi @tablatronix , 5 days ago i opened this issue about my esp32-c3 (#1481)
I just (5 minutes ago) tried with the latest version (2.0.11-beta) but the problem persists, that is the Access Point does not "generate" the wifi network.

Thanks

<!-- gh-comment-id:1232901533 --> @MattiaCC93 commented on GitHub (Aug 31, 2022): Hi @tablatronix , 5 days ago i opened this issue about my esp32-c3 (#1481) I just (5 minutes ago) tried with the latest version (**2.0.11-beta**) but the problem persists, that is the Access Point does not "generate" the wifi network. Thanks
Author
Owner

@tablatronix commented on GitHub (Aug 31, 2022):

Thanks yeah I am trying to gather the 3-4 issues into this one, they all seem related and hard to test. I think this is a ESP lib issue, as updating to staging fixes it

<!-- gh-comment-id:1232980089 --> @tablatronix commented on GitHub (Aug 31, 2022): Thanks yeah I am trying to gather the 3-4 issues into this one, they all seem related and hard to test. I think this is a ESP lib issue, as updating to staging fixes it
Author
Owner

@FHanus commented on GitHub (Aug 31, 2022):

Same issue with ESP32-S2. When I flash the ESP32 Wifi AP example it creates an access point, but the "basic" example of the WifiManager does not start an access point.

<!-- gh-comment-id:1233230402 --> @FHanus commented on GitHub (Aug 31, 2022): Same issue with ESP32-S2. When I flash the ESP32 Wifi AP example it creates an access point, but the "basic" example of the WifiManager does not start an access point.
Author
Owner

@FHanus commented on GitHub (Aug 31, 2022):

@tablatronix I know you already know this, but I want to confirm that downgrading to espcore version 2.3 in the board manager solves this.

<!-- gh-comment-id:1233395334 --> @FHanus commented on GitHub (Aug 31, 2022): @tablatronix I know you already know this, but I want to confirm that downgrading to espcore version 2.3 in the board manager solves this.
Author
Owner

@tablatronix commented on GitHub (Aug 31, 2022):

I can only get this to work on 2.0.4 sorry , fixing title typo
for me everything is broken on 2.0.3 and no idea why, There might be a workaround, i have to test and see if I can stop wifi, then start softap and if that solves it, I suspect its something I am doing because noone has complained about this in normal exmaples, so I am assuming this is some kind of switching wifi sate issue

<!-- gh-comment-id:1233449025 --> @tablatronix commented on GitHub (Aug 31, 2022): I can only get this to work on 2.0.4 sorry , fixing title typo for me everything is broken on 2.0.3 and no idea why, There might be a workaround, i have to test and see if I can stop wifi, then start softap and if that solves it, I suspect its something I am doing because noone has complained about this in normal exmaples, so I am assuming this is some kind of switching wifi sate issue
Author
Owner

@FHanus commented on GitHub (Aug 31, 2022):

This is strange because for me the issue was on 2.0.4 and 2.0.3 fixed it

<!-- gh-comment-id:1233457119 --> @FHanus commented on GitHub (Aug 31, 2022): This is strange because for me the issue was on 2.0.4 and 2.0.3 fixed it
Author
Owner

@Ben-Rheinland commented on GitHub (Sep 1, 2022):

Arduino IDE, Adafruit QT Py ESP32-C3, WiFiManager 2.0.12-beta:
Issue is present with Arduino-ESP32 2.0.4
No issues with Arduino-ESP32 2.0.3
Tested with WiFiManager "Basic" example

<!-- gh-comment-id:1233967831 --> @Ben-Rheinland commented on GitHub (Sep 1, 2022): Arduino IDE, Adafruit QT Py ESP32-C3, WiFiManager 2.0.12-beta: Issue is present with Arduino-ESP32 2.0.4 No issues with Arduino-ESP32 2.0.3 Tested with WiFiManager "Basic" example
Author
Owner

@MattiaCC93 commented on GitHub (Sep 1, 2022):

Sorry, I have a perhaps trivial question.

When you write "version 2.0.3" or "version 2.0.4" what are you referring to?

Are you referring to 2.0.3-alpha and v2.0.4-beta?

Thanks.

@Ben-Rheinland @FHanus

<!-- gh-comment-id:1233974438 --> @MattiaCC93 commented on GitHub (Sep 1, 2022): Sorry, I have a perhaps trivial question. When you write "version 2.0.3" or "version 2.0.4" what are you referring to? Are you referring to [ **2.0.3-alpha**](https://github.com/tzapu/WiFiManager/releases/tag/2.0.3-alpha) and [v2.0.4-beta](https://github.com/tzapu/WiFiManager/releases/tag/2.0.4-beta)? Thanks. @Ben-Rheinland @FHanus
Author
Owner

@mazgch commented on GitHub (Sep 1, 2022):

Hi @tablatronix, here is a hint:

Following fix in WiFiManager.cpp:717 will solve the problem on my 2.0.4 version and a ESP32S3, not sure about any side effects this might have.

// HANDLE issues with STA connections, shutdown sta if not connected, or else this will hang channel scanning and softap will not respond
  if(_disableSTA || (!WiFi.isConnected() && _disableSTAConn)){
    // this fixes most ap problems, however, simply doing mode(WIFI_AP) does not work if sta connection is hanging, must `wifi_station_disconnect` 
    WiFi_Disconnect();
    /// WiFi_enableSTA(false); **<<< disable this** 
    #ifdef WM_DEBUG_LEVEL
    DEBUG_WM(DEBUG_VERBOSE,F("Disabling STA"));
    #endif
  }
  else {
    WiFi_enableSTA(true);
  }

Also the WM_NOTEMP only works for the ESP32S3_DEV board any other ESP32S3 board will fail to compile this library. We should find another way of disabling the temperature for all ESP32S3 boards in the market.

<!-- gh-comment-id:1233980432 --> @mazgch commented on GitHub (Sep 1, 2022): Hi @tablatronix, here is a hint: Following fix in WiFiManager.cpp:717 will solve the problem on my 2.0.4 version and a ESP32S3, not sure about any side effects this might have. ``` // HANDLE issues with STA connections, shutdown sta if not connected, or else this will hang channel scanning and softap will not respond if(_disableSTA || (!WiFi.isConnected() && _disableSTAConn)){ // this fixes most ap problems, however, simply doing mode(WIFI_AP) does not work if sta connection is hanging, must `wifi_station_disconnect` WiFi_Disconnect(); /// WiFi_enableSTA(false); **<<< disable this** #ifdef WM_DEBUG_LEVEL DEBUG_WM(DEBUG_VERBOSE,F("Disabling STA")); #endif } else { WiFi_enableSTA(true); } ``` Also the WM_NOTEMP only works for the ESP32S3_DEV board any other ESP32S3 board will fail to compile this library. We should find another way of disabling the temperature for all ESP32S3 boards in the market.
Author
Owner

@Ben-Rheinland commented on GitHub (Sep 1, 2022):

When you write "version 2.0.3" or "version 2.0.4" what are you referring to?

This is referring to the esp32 platform by espressiv, installed in Arduino IDE using the boards manager: Link to tutorial

Are you referring to 2.0.3-alpha and v2.0.4-beta?

No, I have the WiFiManager Library installed on version 2.0.12-beta.

<!-- gh-comment-id:1233984136 --> @Ben-Rheinland commented on GitHub (Sep 1, 2022): > When you write "version 2.0.3" or "version 2.0.4" what are you referring to? This is referring to the esp32 platform by espressiv, installed in Arduino IDE using the boards manager: [Link to tutorial](https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html) > Are you referring to [ **2.0.3-alpha**](https://github.com/tzapu/WiFiManager/releases/tag/2.0.3-alpha) and [v2.0.4-beta](https://github.com/tzapu/WiFiManager/releases/tag/2.0.4-beta)? No, I have the WiFiManager Library installed on version 2.0.12-beta.
Author
Owner

@FHanus commented on GitHub (Sep 1, 2022):

Sorry, I have a perhaps trivial question.

When you write "version 2.0.3" or "version 2.0.4" what are you referring to?

Are you referring to 2.0.3-alpha and v2.0.4-beta?

Thanks.

@Ben-Rheinland @FHanus

Confirming what @Ben-Rheinland said

<!-- gh-comment-id:1234075320 --> @FHanus commented on GitHub (Sep 1, 2022): > Sorry, I have a perhaps trivial question. > > When you write "version 2.0.3" or "version 2.0.4" what are you referring to? > > Are you referring to [ **2.0.3-alpha**](https://github.com/tzapu/WiFiManager/releases/tag/2.0.3-alpha) and [v2.0.4-beta](https://github.com/tzapu/WiFiManager/releases/tag/2.0.4-beta)? > > Thanks. > > @Ben-Rheinland @FHanus Confirming what @Ben-Rheinland said
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

@mazgch thanks, i have disable temp sensor on all for now

201ad2e838

<!-- gh-comment-id:1234241454 --> @tablatronix commented on GitHub (Sep 1, 2022): @mazgch thanks, i have disable temp sensor on all for now 201ad2e838b2fe39295bf3819a46d02c49a37279
Author
Owner

@FHanus commented on GitHub (Sep 1, 2022):

@tablatronix I keep encountering one more issue. When the ESP runs the basic example from the WifiManager, and gets unplugged before the WiFi manager AP turns off by saving credentials (not using the reset button, but by unplugging the cable) it is impossible to connect back to the AP when it turns back on.

<!-- gh-comment-id:1234264658 --> @FHanus commented on GitHub (Sep 1, 2022): @tablatronix I keep encountering one more issue. When the ESP runs the basic example from the WifiManager, and gets unplugged before the WiFi manager AP turns off by saving credentials (not using the reset button, but by unplugging the cable) it is impossible to connect back to the AP when it turns back on.
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

That might be something else, is it crashing?

I cannot even use 2.0.3 for c3 on platformio, it just boot loops

<!-- gh-comment-id:1234354026 --> @tablatronix commented on GitHub (Sep 1, 2022): That might be something else, is it crashing? I cannot even use 2.0.3 for c3 on platformio, it just boot loops
Author
Owner

@FHanus commented on GitHub (Sep 1, 2022):

That might be something else, is it crashing?

I cannot even use 2.0.3 for c3 on platformio, it just boot loops

That's the thing, after this forced reboot it goes to the same old problem of being stuck on the ESP printing out that zero clients are connected.

<!-- gh-comment-id:1234360003 --> @FHanus commented on GitHub (Sep 1, 2022): > That might be something else, is it crashing? > > I cannot even use 2.0.3 for c3 on platformio, it just boot loops That's the thing, after this forced reboot it goes to the same old problem of being stuck on the ESP printing out that zero clients are connected.
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

hmmmmmmm lol

I have a patch to fix a wifi not init issue , let me see if that can help.

<!-- gh-comment-id:1234367849 --> @tablatronix commented on GitHub (Sep 1, 2022): hmmmmmmm lol I have a patch to fix a wifi not init issue , let me see if that can help.
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

ok so 2.0.3 esp c3 does not work afaik, and there is no patch until 2.0.4 I could be wrong.

https://github.com/espressif/arduino-esp32/issues/6862#issuecomment-1175926313

So if you are running 2.0.3 the bootloader is all fucked

<!-- gh-comment-id:1234375623 --> @tablatronix commented on GitHub (Sep 1, 2022): ok so 2.0.3 esp c3 does not work afaik, and there is no patch until 2.0.4 I could be wrong. https://github.com/espressif/arduino-esp32/issues/6862#issuecomment-1175926313 So if you are running 2.0.3 the bootloader is all fucked
Author
Owner

@mazgch commented on GitHub (Sep 1, 2022):

@mazgch thanks, i have disable temp sensor on all for now

201ad2e

Were you able to confirm that commenting line WiFiManager.cpp:717 solved the startup issue, is my proposal a safe patch or do you see major side effects?

<!-- gh-comment-id:1234519373 --> @mazgch commented on GitHub (Sep 1, 2022): > @mazgch thanks, i have disable temp sensor on all for now > > [201ad2e](https://github.com/tzapu/WiFiManager/commit/201ad2e838b2fe39295bf3819a46d02c49a37279) Were you able to confirm that commenting line WiFiManager.cpp:717 solved the startup issue, is my proposal a safe patch or do you see major side effects?
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

Yeah same change, its not needed for anything, and i have no idea how to cleanly detect board

<!-- gh-comment-id:1234561842 --> @tablatronix commented on GitHub (Sep 1, 2022): Yeah same change, its not needed for anything, and i have no idea how to cleanly detect board
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

I give up for now, I cannot get a damn thing to work on this c3...
Really pissing me off now

ELF file SHA256: 0000000000000000

Rebooting...
ESP-ROM:esp32c3-20200918
Build:Sep 18 2020
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40381976
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
SHA-256 comparison failed:
Calculated: 080c5cb68a075ced55f248b97bca965e3e5bd5da80a64e34e6a1638f89d6f64e
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403ce000
*wm:[1] AutoConnect 
Guru Meditation Error: Core  0 panic'ed (Illegal instruction). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x40001be4  RA      : 0x42071f60  SP      : 0x3fca3e00  GP      : 0x3fc8ea00  
TP      : 0x3fc863f4  T0      : 0x40057fa6  T1      : 0x40383628  T2      : 0xffffffff  
S0/FP   : 0x3fc95a98  S1      : 0x40383b00  A0      : 0x3fc8fc34  A1      : 0x40383a02  
A2      : 0x40385288  A3      : 0x40383744  A4      : 0x4038377c  A5      : 0x3fcdf4f8  
A6      : 0x40383812  A7      : 0x403837e6  S2      : 0x3c0abc1c  S3      : 0x00000000  
<!-- gh-comment-id:1234562378 --> @tablatronix commented on GitHub (Sep 1, 2022): I give up for now, I cannot get a damn thing to work on this c3... Really pissing me off now ```php ELF file SHA256: 0000000000000000 Rebooting... ESP-ROM:esp32c3-20200918 Build:Sep 18 2020 rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT) Saved PC:0x40381976 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd6100,len:0x438 load:0x403ce000,len:0x918 load:0x403d0000,len:0x24e4 SHA-256 comparison failed: Calculated: 080c5cb68a075ced55f248b97bca965e3e5bd5da80a64e34e6a1638f89d6f64e Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Attempting to boot anyway... entry 0x403ce000 *wm:[1] AutoConnect Guru Meditation Error: Core 0 panic'ed (Illegal instruction). Exception was unhandled. Core 0 register dump: MEPC : 0x40001be4 RA : 0x42071f60 SP : 0x3fca3e00 GP : 0x3fc8ea00 TP : 0x3fc863f4 T0 : 0x40057fa6 T1 : 0x40383628 T2 : 0xffffffff S0/FP : 0x3fc95a98 S1 : 0x40383b00 A0 : 0x3fc8fc34 A1 : 0x40383a02 A2 : 0x40385288 A3 : 0x40383744 A4 : 0x4038377c A5 : 0x3fcdf4f8 A6 : 0x40383812 A7 : 0x403837e6 S2 : 0x3c0abc1c S3 : 0x00000000 ````
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

*wm:[3] WiFi_enableSTA enable
Guru Meditation Error: Core  0 panic'ed (Illegal instruction). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x40001be4  RA      : 0x42071e7c  SP      : 0x3fca2a90  GP      : 0x3fc8ea00  
TP      : 0x3fc85130  T0      : 0x40057fa6  T1      : 0x40383628  T2      : 0xffffffff  
S0/FP   : 0x3fc95a98  S1      : 0x40383b00  A0      : 0x3fc8fc34  A1      : 0x40383a02  
A2      : 0x40385288  A3      : 0x40383744  A4      : 0x4038377c  A5      : 0x3fcdf4f8  
<!-- gh-comment-id:1234596663 --> @tablatronix commented on GitHub (Sep 1, 2022): ``` *wm:[3] WiFi_enableSTA enable Guru Meditation Error: Core 0 panic'ed (Illegal instruction). Exception was unhandled. Core 0 register dump: MEPC : 0x40001be4 RA : 0x42071e7c SP : 0x3fca2a90 GP : 0x3fc8ea00 TP : 0x3fc85130 T0 : 0x40057fa6 T1 : 0x40383628 T2 : 0xffffffff S0/FP : 0x3fc95a98 S1 : 0x40383b00 A0 : 0x3fc8fc34 A1 : 0x40383a02 A2 : 0x40385288 A3 : 0x40383744 A4 : 0x4038377c A5 : 0x3fcdf4f8 ```
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2022):

Good news, my c3 devkit is garbage, I have another c3 board and it works, and i can reproduce this AND my previous suggestion does indeed work.. Still not sure why though...

There is something wrong with turning off STA , I will figure it out and have a real fix

bool _disableSTAConn = false; // disable sta when starting ap, if sta is not connected ( stability )

Screen Shot 2022-09-01 at 3 48 27 PM

<!-- gh-comment-id:1234768090 --> @tablatronix commented on GitHub (Sep 1, 2022): Good news, my c3 devkit is garbage, I have another c3 board and it works, and i can reproduce this AND my previous suggestion does indeed work.. Still not sure why though... There is something wrong with turning off STA , I will figure it out and have a real fix ` bool _disableSTAConn = false; // disable sta when starting ap, if sta is not connected ( stability )` ![Screen Shot 2022-09-01 at 3 48 27 PM](https://user-images.githubusercontent.com/807787/188010392-4b81a820-56f1-4a5a-b411-18337c80eaa2.png)
Author
Owner

@Miceuz commented on GitHub (Sep 5, 2022):

I can't get AP to work in ESP 2.0.4 and WifiManager 2.0.12-beta on ESP32-C3.

Even WiFiManager.cpp:717 patch does not work.

<!-- gh-comment-id:1237446303 --> @Miceuz commented on GitHub (Sep 5, 2022): I can't get AP to work in ESP 2.0.4 and WifiManager 2.0.12-beta on ESP32-C3. Even WiFiManager.cpp:717 patch does not work.
Author
Owner

@tablatronix commented on GitHub (Sep 5, 2022):

I have not fixed it yet but you can do the .h mod i mentioned above a d see if that works

<!-- gh-comment-id:1237452310 --> @tablatronix commented on GitHub (Sep 5, 2022): I have not fixed it yet but you can do the .h mod i mentioned above a d see if that works
Author
Owner

@Miceuz commented on GitHub (Sep 5, 2022):

I have tried the _disableSTAConn=false mod, but still no AP. It's really late here, I will try a clean experiment tomorrow.

<!-- gh-comment-id:1237452786 --> @Miceuz commented on GitHub (Sep 5, 2022): I have tried the ` _disableSTAConn=false` mod, but still no AP. It's really late here, I will try a clean experiment tomorrow.
Author
Owner

@tablatronix commented on GitHub (Sep 5, 2022):

Ok thanks for letting me know

<!-- gh-comment-id:1237453411 --> @tablatronix commented on GitHub (Sep 5, 2022): Ok thanks for letting me know
Author
Owner

@Miceuz commented on GitHub (Sep 6, 2022):

I have done a clean install via platformio. This is my platformio.ini:

[env:local]

platform=espressif32
framework = arduino

board = esp32-c3-devkitm-1
board_build.f_cpu = 160000000L

lib_deps = https://github.com/tzapu/WiFiManager.git

I am sure platformio pulls in esp32 core 2.0.4
I have added bool _disableSTAConn = false; hack into WiFiManager.h

Now if I have WiFi.mode(WIFI_STA); in my setup() function, I can't get AP to run, but if I change it to WiFi.mode(WIFI_AP) the AP starts up.

<!-- gh-comment-id:1237788269 --> @Miceuz commented on GitHub (Sep 6, 2022): I have done a clean install via platformio. This is my platformio.ini: ``` [env:local] platform=espressif32 framework = arduino board = esp32-c3-devkitm-1 board_build.f_cpu = 160000000L lib_deps = https://github.com/tzapu/WiFiManager.git ``` I am sure platformio pulls in esp32 core 2.0.4 I have added `bool _disableSTAConn = false;` hack into `WiFiManager.h` Now if I have `WiFi.mode(WIFI_STA);` in my `setup()` function, I can't get AP to run, but if I change it to `WiFi.mode(WIFI_AP)` the AP starts up.
Author
Owner

@tablatronix commented on GitHub (Sep 6, 2022):

Yeah there is something very wrong with changing modes, and even stranger no error on startap.. I have no idea whats going on. afaik its only the c3.. I will keep testing my guess is we are going to need something like an intermediate wifi_off or wifi_stop raw calls, or there is a missing event in the arduino esp handler maybe..

<!-- gh-comment-id:1238104564 --> @tablatronix commented on GitHub (Sep 6, 2022): Yeah there is something very wrong with changing modes, and even stranger no error on startap.. I have no idea whats going on. afaik its only the c3.. I will keep testing my guess is we are going to need something like an intermediate wifi_off or wifi_stop raw calls, or there is a missing event in the arduino esp handler maybe..
Author
Owner

@JohnWickham commented on GitHub (Sep 7, 2022):

Now if I have WiFi.mode(WIFI_STA); in my setup() function, I can't get AP to run, but if I change it to WiFi.mode(WIFI_AP) the AP starts up.

Thanks Miceuz, I wasn't able to get the config portal to run on ESP32-S2 for ages — using WIFI_AP instead of WIFI_STA got me there!

<!-- gh-comment-id:1238846833 --> @JohnWickham commented on GitHub (Sep 7, 2022): > Now if I have `WiFi.mode(WIFI_STA);` in my `setup()` function, I can't get AP to run, but if I change it to `WiFi.mode(WIFI_AP)` the AP starts up. Thanks Miceuz, I wasn't able to get the config portal to run on ESP32-S2 for ages — using `WIFI_AP` instead of `WIFI_STA` got me there!
Author
Owner

@cniedzi commented on GitHub (Sep 7, 2022):

Now if I have WiFi.mode(WIFI_STA); in my setup() function, I can't get AP to run, but if I change it to WiFi.mode(WIFI_AP) the AP starts up.

I had the same issue with S2. I tried bool _disableSTAConn = false; and so far so good.

<!-- gh-comment-id:1239349285 --> @cniedzi commented on GitHub (Sep 7, 2022): > Now if I have `WiFi.mode(WIFI_STA);` in my `setup()` function, I can't get AP to run, but if I change it to `WiFi.mode(WIFI_AP)` the AP starts up. I had the same issue with S2. I tried `bool _disableSTAConn = false; ` and so far so good.
Author
Owner

@tablatronix commented on GitHub (Sep 7, 2022):

I opened an issue, and created a test sketch, now I can work on a fix/workaround.

https://github.com/espressif/arduino-esp32/issues/7232

<!-- gh-comment-id:1239402973 --> @tablatronix commented on GitHub (Sep 7, 2022): I opened an issue, and created a test sketch, now I can work on a fix/workaround. https://github.com/espressif/arduino-esp32/issues/7232
Author
Owner

@shashi5841 commented on GitHub (Sep 10, 2022):

There are several open issues that all seem related to wifi being broken on esp32 s3 and c3, seems to work on the latest esp lib. Not sure if its a combination on wifimanager starting and stopping sta mode the ln starting softap making this hard to debug.

Solution: USE 2.0.4

My issue solved now working esp 2.0.3 used with latest wifimanager
Below is the serial port data obtained:
*wm:[1] AP IP address: 192.168.4.1
*wm:[1] Starting Web Portal
*wm:[2] HTTP server started
*wm:[2] Config Portal Running, blocking, waiting for clients...
*wm:[2] NUM CLIENTS: 0
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- HTTP Root
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- HTTP Wifi
*wm:[2] WiFi Scan SYNC started
*wm:[2] WiFi Scan completed in 4701 ms
*wm:[1] 1 networks found
*wm:[2] AP: -39 Shashi BSNL
*wm:[2] NUM CLIENTS: 1
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- HTTP WiFi save
*wm:[2] processing save
*wm:[2] Connecting as wifi client...
*wm:[2] setSTAConfig static ip not set, skipping
*wm:[1] Connecting to NEW AP: Shashi BSNL
*wm:[1] connectTimeout not set, ESP waitForConnectResult...
*wm:[2] Connection result: WL_CONNECTED
*wm:[1] Connect to new AP [SUCCESS]
*wm:[1] Got IP Address:
*wm:[1] 192.168.1.4
*wm:[2] shutdownConfigPortal
*wm:[2] <- Request redirected to captive portal
*wm:[2] restoring usermode STA
*wm:[2] wifi status: WL_CONNECTED
*wm:[2] wifi mode: STA
*wm:[2] configportal closed
*wm:[1] config portal exiting
connected...yeey :)

Thanks a lot ADMIN. Love your efforts keep it up..

<!-- gh-comment-id:1242781249 --> @shashi5841 commented on GitHub (Sep 10, 2022): > There are several open issues that all seem related to wifi being broken on esp32 s3 and c3, seems to work on the latest esp lib. Not sure if its a combination on wifimanager starting and stopping sta mode the ln starting softap making this hard to debug. > > Solution: USE 2.0.4 My issue solved now working esp 2.0.3 used with latest wifimanager Below is the serial port data obtained: *wm:[1] AP IP address: 192.168.4.1 *wm:[1] Starting Web Portal *wm:[2] HTTP server started *wm:[2] Config Portal Running, blocking, waiting for clients... *wm:[2] NUM CLIENTS: 0 *wm:[2] <- Request redirected to captive portal *wm:[2] <- HTTP Root *wm:[2] <- Request redirected to captive portal *wm:[2] <- Request redirected to captive portal *wm:[2] <- HTTP Wifi *wm:[2] WiFi Scan SYNC started *wm:[2] WiFi Scan completed in 4701 ms *wm:[1] 1 networks found *wm:[2] AP: -39 Shashi BSNL *wm:[2] NUM CLIENTS: 1 *wm:[2] <- Request redirected to captive portal *wm:[2] <- Request redirected to captive portal *wm:[2] <- Request redirected to captive portal *wm:[2] <- HTTP WiFi save *wm:[2] processing save *wm:[2] Connecting as wifi client... *wm:[2] setSTAConfig static ip not set, skipping *wm:[1] Connecting to NEW AP: Shashi BSNL *wm:[1] connectTimeout not set, ESP waitForConnectResult... *wm:[2] Connection result: WL_CONNECTED *wm:[1] Connect to new AP [SUCCESS] *wm:[1] Got IP Address: *wm:[1] 192.168.1.4 *wm:[2] shutdownConfigPortal *wm:[2] <- Request redirected to captive portal *wm:[2] restoring usermode STA *wm:[2] wifi status: WL_CONNECTED *wm:[2] wifi mode: STA *wm:[2] configportal closed *wm:[1] config portal exiting connected...yeey :) Thanks a lot ADMIN. Love your efforts keep it up..
Author
Owner

@tablatronix commented on GitHub (Sep 10, 2022):

I have been trying to fix this and nothing I do fixes it, no workaround yet other that the one mentioned before
bool _disableSTAConn = false; // disable sta when starting ap, if sta is not connected ( stability )
seems to help avoid whatever gets stuck in the IDF

(originally posted to the wrong issue)

<!-- gh-comment-id:1242802307 --> @tablatronix commented on GitHub (Sep 10, 2022): I have been trying to fix this and nothing I do fixes it, no workaround yet other that the one mentioned before `bool _disableSTAConn = false; // disable sta when starting ap, if sta is not connected ( stability )` seems to help avoid whatever gets stuck in the IDF (originally posted to the wrong issue)
Author
Owner

@tablatronix commented on GitHub (Sep 10, 2022):

Issue still exists in 2.0.4 for me in C3, testing S2 now

<!-- gh-comment-id:1242802355 --> @tablatronix commented on GitHub (Sep 10, 2022): Issue still exists in 2.0.4 for me in C3, testing S2 now
Author
Owner

@tablatronix commented on GitHub (Sep 12, 2022):

S2 will not show AP, if I disable disconsta, it shows up, but then refuses to let me join it...
This is a big problem, i have tried deinit wifi to no avail. Still testing

If someone wants to help , maybe roll back esp core and see when it broke ( using the example min sketch in the arduino issue NOT WM )

<!-- gh-comment-id:1244323815 --> @tablatronix commented on GitHub (Sep 12, 2022): S2 will not show AP, if I disable disconsta, it shows up, but then refuses to let me join it... This is a big problem, i have tried deinit wifi to no avail. Still testing If someone wants to help , maybe roll back esp core and see when it broke ( using the example min sketch in the arduino issue NOT WM )
Author
Owner

@tablatronix commented on GitHub (Sep 12, 2022):

Testing workaround for this

essentially turn on AP and STA then turn off STA, I have no idea what this is doing, startap is NOT working right, My guess is that wifi is getting turned off or losing cal before starting AP if we call espwifistop, and startap is not recovering. I tried wifi_off between states with no improvement

WiFi.mode(WIFI_AP_STA);
WiFi.mode(WIFI_AP);

restore _disableSTAConn true please

<!-- gh-comment-id:1244480534 --> @tablatronix commented on GitHub (Sep 12, 2022): Testing workaround for this essentially turn on AP and STA then turn off STA, I have no idea what this is doing, startap is NOT working right, My guess is that wifi is getting turned off or losing cal before starting AP if we call espwifistop, and startap is not recovering. I tried wifi_off between states with no improvement WiFi.mode(WIFI_AP_STA); WiFi.mode(WIFI_AP); restore `_disableSTAConn` true please
Author
Owner

@Miceuz commented on GitHub (Sep 12, 2022):

WiFi.mode(WIFI_AP_STA);
WiFi.mode(WIFI_AP);

This workaround works for me on esp32-c3 with esp 2.0.4 and master branch of WiFiManager.

<!-- gh-comment-id:1244525347 --> @Miceuz commented on GitHub (Sep 12, 2022): > WiFi.mode(WIFI_AP_STA); > WiFi.mode(WIFI_AP); This workaround works for me on esp32-c3 with esp 2.0.4 and master branch of WiFiManager.
Author
Owner

@cniedzi commented on GitHub (Sep 13, 2022):

If someone wants to help , maybe roll back esp core and see when it broke ( using the example min sketch in the arduino issue NOT WM )

ESP32 S2
Lolin S2 mini

2.0.0 ESP32S2 NativeUSB - OK
2.0.1 ESP32S2 NativeUSB- OK
2.0.2 ESP32S2 NativeUSB- OK
2.0.3 ESP32S2 NativeUSB/Lolin S2 mini - OK
2.0.4 ESP32S2 NativeUSB/Lolin S2 mini - FAILED!

<!-- gh-comment-id:1245123213 --> @cniedzi commented on GitHub (Sep 13, 2022): > If someone wants to help , maybe roll back esp core and see when it broke ( using the example min sketch in the arduino issue NOT WM ) ESP32 S2 Lolin S2 mini 2.0.0 ESP32S2 NativeUSB - OK 2.0.1 ESP32S2 NativeUSB- OK 2.0.2 ESP32S2 NativeUSB- OK 2.0.3 ESP32S2 NativeUSB/Lolin S2 mini - OK 2.0.4 ESP32S2 NativeUSB/Lolin S2 mini - FAILED!
Author
Owner

@cniedzi commented on GitHub (Sep 13, 2022):

I think 2.0.4 core must be kinda broken, because my S2 gets stuck after several recurring resets. In such cases I have to power off the device and wait few/dozen seconds before successful powering on... I've rollbacked to 2.0.3. No such issues and no problems with Soft AP.

<!-- gh-comment-id:1245894793 --> @cniedzi commented on GitHub (Sep 13, 2022): I think 2.0.4 core must be kinda broken, because my S2 gets stuck after several recurring resets. In such cases I have to power off the device and wait few/dozen seconds before successful powering on... I've rollbacked to 2.0.3. No such issues and no problems with Soft AP.
Author
Owner

@tablatronix commented on GitHub (Sep 20, 2022):

2.0.5 is out, supposed to be fixed, I have to remove the workaround and test it.
I have no idea how to pull in 2.0.5 into platformio though. Let me install arduino

<!-- gh-comment-id:1253029644 --> @tablatronix commented on GitHub (Sep 20, 2022): 2.0.5 is out, supposed to be fixed, I have to remove the workaround and test it. I have no idea how to pull in 2.0.5 into platformio though. Let me install arduino
Author
Owner

@Miceuz commented on GitHub (Sep 21, 2022):

@tablatronix you can pull 2.0.5 into platformio this way:

[env:local]

platform=espressif32
framework = arduino

platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.5

board = esp32-c3-devkitm-1
board_build.f_cpu = 160000000L

lib_deps = https://github.com/tzapu/WiFiManager.git
<!-- gh-comment-id:1253245666 --> @Miceuz commented on GitHub (Sep 21, 2022): @tablatronix you can pull 2.0.5 into platformio this way: ``` [env:local] platform=espressif32 framework = arduino platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.5 board = esp32-c3-devkitm-1 board_build.f_cpu = 160000000L lib_deps = https://github.com/tzapu/WiFiManager.git ```
Author
Owner

@tobozo commented on GitHub (Nov 15, 2022):

hi,

I'm using esp32-arduino 2.0.5 (for Arduino IDE) along with the master branch of this repository and I noticed that WiFi.scanNetworks() does not use the second argument show_hidden.

is WiFiManager ignoring hidden AP by design?

it doesn't seem very difficult to add the extra parameter so I assume there's a valid reason but can't wrap my head around it 🤔

using wifiManager.setCleanConnect(true); was a life changer anyway, thanks for the quality work!

<!-- gh-comment-id:1315373785 --> @tobozo commented on GitHub (Nov 15, 2022): hi, I'm using esp32-arduino 2.0.5 (for Arduino IDE) along with the master branch of this repository and I noticed that WiFi.scanNetworks() does not use the second argument `show_hidden`. is WiFiManager ignoring hidden AP by design? it doesn't seem very difficult to add the extra parameter so I assume there's a valid reason but can't wrap my head around it :thinking: using `wifiManager.setCleanConnect(true);` was a life changer anyway, thanks for the quality work!
Author
Owner

@tablatronix commented on GitHub (Nov 15, 2022):

It looks like it was changed, hidden was default in esp8266, now its false?
hmm, I think maybe its too slow, since it has to wait for beacons?

actually ther eis a config for scan_type already, I wonder if its a legacy thing then or just a filter now?

il create a new issue

<!-- gh-comment-id:1315480563 --> @tablatronix commented on GitHub (Nov 15, 2022): It looks like it was changed, hidden was default in esp8266, now its false? hmm, I think maybe its too slow, since it has to wait for beacons? actually ther eis a config for scan_type already, I wonder if its a legacy thing then or just a filter now? il create a new issue
Author
Owner

@Lalufu commented on GitHub (Apr 15, 2023):

I've found this issue through searching for a solution to WM not working on my ESP32-C3, and from reading through it I'm a bit confused as to what the current state of this is. I'm on framework-arduinoespressif32 @ 3.20007.0 (2.0.7) and the current master checkout of WifiManager, and I don't see the hotspot SSID when the system starts without a config.
Is this supposed to work, or are some of the workarounds from above still necessary?

<!-- gh-comment-id:1509928521 --> @Lalufu commented on GitHub (Apr 15, 2023): I've found this issue through searching for a solution to WM not working on my ESP32-C3, and from reading through it I'm a bit confused as to what the current state of this is. I'm on `framework-arduinoespressif32 @ 3.20007.0 (2.0.7)` and the current master checkout of WifiManager, and I don't see the hotspot SSID when the system starts without a config. Is this supposed to work, or are some of the workarounds from above still necessary?
Author
Owner

@kunpoolsion commented on GitHub (Oct 13, 2023):

I know is an old issue but maybe is worth it to revive it.
I was trying everything I found about it because I need to make an SoftAP in my project at certain point, but I was complete unable with the ESP32-C3.
Finally I was able to do it inserting:
WiFi.setTxPower(WIFI_POWER_8_5dBm);
right after any wifi.softap command in my project. I don´t mind the reduction of power in TX because the machine will be used very close to de user, but this depends on the project itself.
Maybe is usefull to integrate it in the library.

<!-- gh-comment-id:1761314095 --> @kunpoolsion commented on GitHub (Oct 13, 2023): I know is an old issue but maybe is worth it to revive it. I was trying everything I found about it because I need to make an SoftAP in my project at certain point, but I was complete unable with the ESP32-C3. Finally I was able to do it inserting: `WiFi.setTxPower(WIFI_POWER_8_5dBm);` right after any wifi.softap command in my project. I don´t mind the reduction of power in TX because the machine will be used very close to de user, but this depends on the project itself. Maybe is usefull to integrate it in the library.
Author
Owner

@tablatronix commented on GitHub (Oct 13, 2023):

What board are you using , this is a well known bug in wemos and other rev 1 boards as well as bad power supplies

<!-- gh-comment-id:1761370793 --> @tablatronix commented on GitHub (Oct 13, 2023): What board are you using , this is a well known bug in wemos and other rev 1 boards as well as bad power supplies
Author
Owner

@kunpoolsion commented on GitHub (Oct 13, 2023):

https://www.electrodragon.com/product/esp-led-strip-board/

Yeah, must be related with power, but probably with the power-down converter in the board, it doesn´t if I power the board by a psu at 5v directly, using the dc input in the board or by the usb-serial converter.

That means that this issue is fixed already in "normal" quality boards? :)

<!-- gh-comment-id:1761374566 --> @kunpoolsion commented on GitHub (Oct 13, 2023): https://www.electrodragon.com/product/esp-led-strip-board/ Yeah, must be related with power, but probably with the power-down converter in the board, it doesn´t if I power the board by a psu at 5v directly, using the dc input in the board or by the usb-serial converter. That means that this issue is fixed already in "normal" quality boards? :)
Author
Owner

@tablatronix commented on GitHub (Oct 13, 2023):

Yeah I think alot of kind of copy the same schematic and hence the "bugs", have you tried whacking a cap on there right on the 3v3 near the chip. Heck sometimes it not voltage draw but noise also

<!-- gh-comment-id:1761399464 --> @tablatronix commented on GitHub (Oct 13, 2023): Yeah I think alot of kind of copy the same schematic and hence the "bugs", have you tried whacking a cap on there right on the 3v3 near the chip. Heck sometimes it not voltage draw but noise also
Author
Owner

@kunpoolsion commented on GitHub (Oct 13, 2023):

In 3.3v line?

<!-- gh-comment-id:1761400792 --> @kunpoolsion commented on GitHub (Oct 13, 2023): In 3.3v line?
Author
Owner

@Lalufu commented on GitHub (Nov 9, 2023):

This sounds basically like what WiFiManager::WiFi_eraseConfig() does
on an ESP32?

Do you only have to do this once, or on every boot?

<!-- gh-comment-id:1804693800 --> @Lalufu commented on GitHub (Nov 9, 2023): This sounds basically like what `WiFiManager::WiFi_eraseConfig()` does on an ESP32? Do you only have to do this once, or on every boot?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1265
No description provided.