Closed black-snake closed 2 years ago
However, this behavior cannot be reproduced reliably.
Whenever the success page of the config portal is shown (which is the case most of the time), the WiFi connections works as expected.
I'm sorry I couldn't duplicate this unreliable issue. I suggest you change the board / power supply, using Arduino IDE instead of PIO, using different CP accessing devices (Windows, Ubuntu, Mac, etc.), reduce RF channel interference, etc. to isolate the culprit.
I have to close the issue and won't reopen until the library's bug is proven.
Good Luck,
I understand, too bad.
Here are my observations I found meanwhile:
ESP.restart();
) when the WiFi status is not WL_CONNECTED
and the connection is instantaneously established. So, I hardly believe it's an RF issue.That's what I did to isolate the culprit.
First of all, thanks for the great library! Amazing what you have done.
Describe the bug
So far, I sometimes experienced that when I connect to the config portal and click "SAVE", I won't the the success page afterwards telling me that it's trying to connect to the WiFi configured in the portal. Instead, the connection to the AP closes (abruptly?). This behavior was observed on an Apple iOS device as well as an Linux PC (Fedora 35).
The WiFi status is (after timeout):
WL_IDLE_STATUS
(no matter if the timeout is 30s or 3m)excerpt from the log (full log further down):
However, this behavior cannot be reproduced reliably.
Whenever the success page of the config portal is shown (which is the case most of the time), the WiFi connections works as expected.
Steps to Reproduce
example
Expected behavior
The config portal should finish with the success page and WiFi connection should work.
Actual behavior
The success page of the config portal is not shown and the WiFi status is (after timeout):
WL_IDLE_STATUS
(no matter if the timeout is 30s or 3m)From what I see, it COULD be that this problem occurs (more often) the longer the AP runs (10m gave frequent fails). SEEMS as if the request is not properly finished after the click on "SAVE" in the config portal or there is some kind of race condition? Of course, I cannot rule out that it's a memory issue on my side (or anything else).
Debug and AT-command log (if applicable)
Screenshots
N/A
Information
Additional context
none