[GH-ISSUE #430] esp8266 nuances/bugs/workarounds #361

Open
opened 2026-02-28 01:24:56 +03:00 by kerem · 5 comments
Owner

Originally created by @tablatronix on GitHub (Sep 25, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/430

logging all workarounds and nuances and SDK bugs

Originally created by @tablatronix on GitHub (Sep 25, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/430 logging all workarounds and nuances and SDK bugs
Author
Owner

@tablatronix commented on GitHub (Sep 25, 2017):

  • Sometimes when set to a non existing AP, on IOS I cannot connect to AP "Unable to connect to Access Point" even though I have sta mode disabling before starting AP, could be related to large number of APs around, but it almost never occurs when STA is connected to a good AP. So something is odd, or stuck still.

I have tried the following to correct with no effect (in addition to disconnect and mode(AP))

    wifi_station_dhcpc_stop();
    WiFi.setAutoConnect(false);
    WiFi.setAutoReconnect(false);
    wifi_set_sleep_type(NONE_SLEEP_T);

You can see how unreliable the AP is when in this mode, something is still causing this in the SDK radio

image

<!-- gh-comment-id:331920538 --> @tablatronix commented on GitHub (Sep 25, 2017): * Sometimes when set to a non existing AP, on IOS I cannot connect to AP "Unable to connect to Access Point" even though I have sta mode disabling before starting AP, could be related to large number of APs around, but it almost never occurs when STA is connected to a good AP. So something is odd, or stuck still. I have tried the following to correct with no effect (in addition to disconnect and mode(AP)) ``` wifi_station_dhcpc_stop(); WiFi.setAutoConnect(false); WiFi.setAutoReconnect(false); wifi_set_sleep_type(NONE_SLEEP_T); ``` You can see how unreliable the AP is when in this mode, something is still causing this in the SDK radio ![image](https://user-images.githubusercontent.com/807787/30819688-2b80846e-a1e5-11e7-9402-465ba0093c3a.png)
Author
Owner

@tablatronix commented on GitHub (Oct 27, 2017):

Unable to connect to SoftAP

If esp has ap config default ( anonymous in my test )
persistent wifi mode AP+STA ( sta connected )
StartAP(name,password)

I get invalid password, or unable to connect errors, no debugging info available.
IOS will not connect at all. Windows is flaky, but will connect usually.

Will create repro sketch

Cannot reproduce in 2.3.1( hope its fixed in SDK )

<!-- gh-comment-id:340078704 --> @tablatronix commented on GitHub (Oct 27, 2017): Unable to connect to SoftAP If esp has ap config default ( anonymous in my test ) persistent wifi mode AP+STA ( sta connected ) StartAP(name,password) I get invalid password, or unable to connect errors, no debugging info available. IOS will not connect at all. Windows is flaky, but will connect usually. Will create repro sketch Cannot reproduce in 2.3.1( hope its fixed in SDK )
Author
Owner

@tablatronix commented on GitHub (Oct 28, 2017):

Cannot erase flash
https://github.com/esp8266/Arduino/issues/1494
https://github.com/esp8266/Arduino/issues/2885
https://github.com/esp8266/Arduino/pull/3635 <-- OMG how has this never been fixed until now

ESP.restart()
ESP.reset()
while(1)

Do not help.

EDIT:
Working good now, but if no 3635 bugfix, you can get paramerrors or erase flash not working completely ( eg, opmode default stays STA+AP). Adding a polyfill

<!-- gh-comment-id:340210152 --> @tablatronix commented on GitHub (Oct 28, 2017): Cannot erase flash https://github.com/esp8266/Arduino/issues/1494 https://github.com/esp8266/Arduino/issues/2885 https://github.com/esp8266/Arduino/pull/3635 <-- OMG how has this never been fixed until now ``` ESP.restart() ESP.reset() while(1) ``` Do not help. EDIT: Working good now, but if no 3635 bugfix, you can get paramerrors or erase flash not working completely ( eg, opmode default stays STA+AP). Adding a polyfill
Author
Owner

@tablatronix commented on GitHub (Nov 6, 2017):

I have submitted PRs for these to esp8266/arduino, I doubt they will get aprooved anytime soon, if you guys could upvote them, that might help.

persistent state bugs

These bugs, cause problems switching modes, when persistent is toggled off and on, esp core assumes current and default configs are in sync, when they are not always so.
https://github.com/esp8266/Arduino/issues/3799
MERGED

workaround:
not yet available

BUG: softAPdisconnect return value corruption

This causes softAPdisconnect to fail always, this prevents saving state when persistent is on
https://github.com/esp8266/Arduino/issues/3795
MERGED

workaround:
not yet available

BUG: softAPdisconnect fails

This causes softAPdisconnect to incorrectly return success status if wifioff is true, as ret val gets overwritten.
https://github.com/esp8266/Arduino/issues/3793
MERGED

workaround:
not yet available

<!-- gh-comment-id:342253425 --> @tablatronix commented on GitHub (Nov 6, 2017): I have submitted PRs for these to esp8266/arduino, I doubt they will get aprooved anytime soon, if you guys could upvote them, that might help. ### persistent state bugs These bugs, cause problems switching modes, when persistent is toggled off and on, esp core assumes current and default configs are in sync, when they are not always so. https://github.com/esp8266/Arduino/issues/3799 **MERGED** workaround: not yet available ### BUG: softAPdisconnect return value corruption This causes softAPdisconnect to fail always, this prevents saving state when persistent is on https://github.com/esp8266/Arduino/issues/3795 **MERGED** workaround: not yet available ### BUG: softAPdisconnect fails This causes softAPdisconnect to incorrectly return success status if wifioff is true, as ret val gets overwritten. https://github.com/esp8266/Arduino/issues/3793 **MERGED** workaround: not yet available
Author
Owner

@tablatronix commented on GitHub (Mar 17, 2018):

softap
[AP] set_config failed!
https://github.com/esp8266/Arduino/issues/4372
[OPEN]

<!-- gh-comment-id:373926261 --> @tablatronix commented on GitHub (Mar 17, 2018): softap `[AP] set_config failed!` https://github.com/esp8266/Arduino/issues/4372 **[OPEN]**
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#361
No description provided.