BLEClient connect(BLEAddress..., esp_ble_addr_type_t.., uint32_t timeoutMS..) always returns true (even if the server doesn't exist) #10916
Labels
Status: Awaiting triage
Issue is waiting for triage
Board
ESP32S3 "supermini"
Device Description
It's not attached to anything. I have tested with a bare minimum sketch to verify.
Hardware Configuration
No nothing.
Version
latest master (checkout manually)
IDE Name
Arduino IDE 2.3.4
Operating System
Windows 10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
The method with signature:
connect(BLEAddress address, esp_ble_addr_type_t type = BLE_ADDR_TYPE_PUBLIC, uint32_t timeoutMS = portMAX_DELAY);
always returns true, even on an unsuccessful connection (server not even powered on).
Expected behaviour:
true on successful connection
false on unsuccessful connection
The onConnect() callback is however not called on an unsuccessful connection. But pClient->isConnected() does return false, so that's a workaround once the bug is found.
Sketch
Debug Message
Other Steps to Reproduce
I've tried on ESP_ARDUINO_VERSION_STR = 3.0.7 before updating, same problem.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: