Open jpmeijers opened 1 year ago
Hi,
I'm observing the same issue with ESP32-C3-MINI1 esp32 for Arduino v 2.0.11 I managed to make it stuck every time I try to call pClient->getService(serviceUUID);
I used the example "BLE_Client" code, just made a small change so I could call getService separately instead of it being called immediately after connected.
Here's the sequence:
If getService called immediately after connected, then it works fine. After successfully called it once, it will work after that no mater how many disconnect/reconnect attempts.
It only stuck after the first connection, then wait for a few seconds, then call getService.
Any idea?
Thanks!
Board
ESP32-WROOM-32D
Device Description
FTDI IC and voltage regulator to USB
Hardware Configuration
None
Version
v2.0.6
IDE Name
Arduino IDE (tried both 1.8.19 and 2.0.3)
Operating System
Ubuntu 22.04
Flash frequency
80MHz
PSRAM enabled
yes
Upload speed
921600
Description
ESP intermittently deadlocks on calling
pClient->getService(serviceUUID)
.Sketch
Debug Message
Other Steps to Reproduce
My sketch follows the following logic:
The issue never happens the first time around, but normally a couple of loops later.
I have checked existing issues, online documentation and the Troubleshooting Guide