-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Exception on BLERemoteService::getCharacteristic #9768
Comments
@bobemoe - I have teste Arduino Core 3.0.0 with ESP32 using the BLE Client + BLE Server example. It works fine. It seems related to the way the BMS BLE server provides the information of the characteristic. It seems to fail when it tries to create the String for the Descriptor data. |
The difference I see from the BLE Client/Server example is that it has no Descriptors... just Characteristics.
While the BMS has some descriptor, which causes the crash.
|
I'll try to emulate such configuration and test it. I'll keep you posted. |
Would it help for me to capture a debug log from a successful connection to the same BMS on the working 2.x branch? |
Yes, please. This way I will be able to see all the Characteristics and Descriptors of the BMS. |
@SuGlider Here it is:
|
Issue confirmed. With Arduino Core 2.0.17 there is no issue. This is some sort of regression. Started Investigation. |
Issue Log Output:
Apparently some problem with Array space. |
This is a C++ issue. BLE classes were changed to use Arduino template< The fix demands a deep review of all the changes done in #8724 |
The issue affects several cases:
|
Board
ESP32 DevKitC V4
Device Description
ESP32 DevKitC V4
Hardware Configuration
No
Version
latest master (checkout manually)
IDE Name
arduino-cli
Operating System
Linux Devuan
Flash frequency
40Mhz
PSRAM enabled
yes
Upload speed
921600
Description
arduino-cli compile --fqbn "esp32:esp32:esp32" --board-options "DebugLevel=verbose" --warnings "all" --verbose --clean -e
Sketch
Debug Message
Compile Output
Other Steps to Reproduce
The sketch above is the exact example provided in the 3.0.0 release repo, except the UUIDs changed to match my BLE device.
This was working on 2.x
I am no longer using this project but just copying the details from the now closed 3.0.0 version Migration related issues as it was never resolved there.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: