22-byte Name descriptor (0x2901) throws GATT error 7 (offset error) - shorter or longer names are fine #383
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Both LightBlue and Nordic RF Connect show the same behaviour:
ESP32-S3, ArduinoBLE 1.3.7
A name characteristic that is exactly 22 bytes long cannot be read by the BLE peripheral, showing GATT error 7.
BLEDescriptor ECM1PWMName("2901", "ECM1 PWM Speed Control");
Adding a single space to the end makes the descriptor work perfectly.
BLEDescriptor ECM1PWMName("2901", "ECM1 PWM Speed Control ");
Name descriptors both shorter than or longer than 22 bytes work well.
The text was updated successfully, but these errors were encountered: