-
-
Notifications
You must be signed in to change notification settings - Fork 749
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
Possible ESP32 hanging WiFi scan issue #1939
Comments
Hi, Are you saying that the It's not entirely unexpected that this happens even after calling I'm afraid I'm too busy to look into this properly today. For now a hack would be to detect the scan failing (a setTimeout to see if you got a result in 30s?) and then do a hard reboot with |
Yes, but ... it turns out this warning is related to BLE, so it's probably unrelated to my issue. I only get this after flashing, but not when resetting the hardware (either by cutting power, or using
That explains it 👍. I might add that everything seems to work fine after using
Nice tip, but I feel that in my particular application, a hard reboot would be a bit drastic (the scan is kind of a secondary function only) 🙂. I think I see the problem a little more clearly now. This seems to be directly related to flashing the device, and that comforts me a little, because I would probably not see the issue "in the field".
|
Thanks - yes, what you're saying about the callback seems totally valid, and like a complete mess.
Yes and no :) definitely However WiFi itself shouldn't drop out on |
Great, so leaving the issue open then 🙂?
Oh, sure--I don't have an overview of which resources are block/unblocked like |
Yes, totally! |
Well, there is Wifi for ESP8266, for ESP32 and for Espruino boards using a ESP01 as Wifi module and they are all slightly different to the "ESP01 as Wifi implementation" until some starts working on it and align the callbacks. Nice to have would be At the moment I only see some user reporting their findings and less than a hand full of contributors for unsupported boards. To be honest, if you need this functionality for your project, jump in and contribute. |
I've been having this issue (no need to read) with a "hanging" scan, meaning it never terminates.
I've been poking around the source, and was puzzled about something (I cannot directly relate this to my issue though):
return
statements which would cause the scan to never be started at all (and thus, never free'ing the callback handler (4) allowing later scans)Forgive me if I've missed something, embedded programming can be hard to keep an overview of for me 😬.
The text was updated successfully, but these errors were encountered: