Skip to content

22-byte Name descriptor (0x2901) throws GATT error 7 (offset error) - shorter or longer names are fine #383

Open
@madmanguruman

Description

@madmanguruman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions