-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hundreds of "*wm:[2] [EVENT] WIFI_REASON: 8" logs when I disconnect() #1326
Comments
Thanks, I may have left some debugging on the wrong level when testing S2 |
Thanks, I appreciate you paying attention to this. I'm not sure I was clear though: it isn't just there is an unwanted debug output. I fear there might be something wrong in the code path, based on the increasing number of these WIFI_REASON messages, i.e. it appears 1x on the first wifiManager.disconnect();, 2x on the second, 3x on the third, Nx on the Nth. And N can be a very large number as I connect and disconnect once every minute. I had it appear literally 600 times in succession after running for a few hours. |
Interesting let me see if I can reproduce what version on esp lib you on? |
Oh nm I see you added all the info above |
WIFI_REASON_ASSOC_LEAVE = 8, Are you perhaps creating new objects over and over again accidentally? That would make sense if creating more and more event listeners. Can you share how you are reconnecting over and over? Or reduce your sketch to a simpler one, where is your wm object? |
Hi. Not knowingly creating multiple objects. wifiManager is created in global scope. HTTP clients are created on the stack in local variables each time I do an HTTP post. The main loop is basically: I'll aim to create a simpler test case to reproduce. Maybe in a couple of days though. Thanks for help. |
This test case (based on the WiFiManager basic example) demonstrates.
|
Debug output:
|
Ever figure this out? |
To be fair, I haven't updated the library since I reported it. It's not a
critical problem in my application because I reboot the esp32 every 24
hours. But as far as I know the problem still exists. Did you try the small
sample programme I posted?
…On Thu, 3 Feb 2022, 02:25 Shawn A, ***@***.***> wrote:
Ever figure this out?
—
Reply to this email directly, view it on GitHub
<#1326 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC65F2A75G75HLRU3N5VSTUZHRS3ANCNFSM5KSXPQKQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have to see which event that is Something with your router I doubt its reproducible elsewhere i can try it though |
Works fine for me |
Ok, if not reproducible, it's not worth pursuing. Thanks for looking.
…On Thu, 3 Feb 2022, 22:14 Shawn A, ***@***.***> wrote:
Works fine for me
—
Reply to this email directly, view it on GitHub
<#1326 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC65F6OP6WA3D3SXGNLHTDUZL457ANCNFSM5KSXPQKQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I am assuming you use |
Thanks, yes I do call autoconnect() repeatedly. I read the issue you mentioned and it's very useful info. |
This should be solved now |
Basic Infos
Hardware
WiFimanager Branch/Release: Master
2.0.5-beta+sha.8452df7
Esp32:
Hardware: m5stickc+ (ESP32-PICO-D4 based)
Core Version: 3.4.0
Description
On ESP32 Arduino, my app is a BLE scanner. I have read that WiFi activity can interfere with BLE detection, so I keep WiFi disabled most of the time, but re-enable once a minute to log data to a web server. The way I do that is:
After every disconnect(), I see a log message as per the Issue subject, but it is repeated many times, seemingly one additional log message each time I disconnect. Now after running for around 12 hours, there are more than 600 repeated messages.
Settings in IDE
Module: NodeMcu, Wemos D1
Additional libraries:
Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: