You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 printout on successful connection (Server is on):
---------------------------------
Setup Started on Core: 1
ESP_ARDUINO_VERSION_STR = 3.1.1
esp_get_idf_version() = v5.3.2-282-gcfea4f7c98-dirty
Forming a connection to: ea:7f:54:b4:62:2e
Created client
set callbacks
client onConnect
Connected to server
--------------------------------
Sketch printout on unsuccessful connection (Server isn't even plugged in):
---------------------------------
Setup Started on Core: 1
ESP_ARDUINO_VERSION_STR = 3.1.1
esp_get_idf_version() = v5.3.2-282-gcfea4f7c98-dirty
Forming a connection to: ea:7f:54:b4:62:2e
Created client
set callbacks
Connected to server
---------------------------------
NOTE the lack of "client onConnect" from the onConnect() callback!
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
I confirm I have checked existing issues, online documentation and Troubleshooting guide.
The text was updated successfully, but these errors were encountered:
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: