-
Notifications
You must be signed in to change notification settings - Fork 715
Trying to loop through identical bluetooth clients, hangs? #916
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
Comments
Hi, |
Unless I am supposed to use something different than what is provided by Aruduino IDE. I am using the ESP32 Arduino library v 1.0.4 which claims to be the latest. |
Ok, please make sure this patch is included in library: Sometimes library is not updated when you update arduino-esp32. |
Yep it seems included in the library as far as I can see. Although in my version BLERemoteCharacteristic.cpp:403 returns Either way, this is what I have for BLEClient.cpp that's relevant (around line 184) and looks like it includes the patch:
Is there anything I can do to help debug this? I would be happy to contribute more than complaints if I can find a way to help! |
Also FWIW It seems that there is a decent lag right now between the "official" ESP32 library and this one. I noticed that in yours it seems that |
I have to think about it. Seems that some semaphore still causing code stuck. But im not working with this library now, so i cant say how long it can take. Sorry. |
I'm trying to write an Arduino client for a BLE-enabled battery that basically loops through each battery it can find in a scan, gets the data from it, and repeats (to be published via MQTT).. What I'm finding is that this works once but there is this weird issue where sometimes calling
BLEClient::connect()
causes an immediate disconnect and then the app just hangs without any further output.You can see my code here (check BatteryManager.cpp for most of it):
https://github.com/ThisSmartHouse/LiFeBlue-BLE
This is the output I get when I run the code in full (it just hangs and does nothing past this point):
What I expect it to be doing is:
The text was updated successfully, but these errors were encountered: