is there any data length limitation on notification/read data on BLE?

Hi, All

I am developing a host software for central BLE.

Just try to create a buffer to receive notification data and/or read data after peer connection is established , not sure how big the buffer should be, any specifications on this please?

Regards!

Ping

Parents
  • For notifications, the maximum value length is MTU-3 or 512, whichever is the smallest.

    For a simple Read Request, the maximum value length is MTU-1. To read the whole value, in case it does not fit in a Read Response given the current MTU, use the Read Long Value operation, which will issue multiple Read Blob Requests and concatenate the parts. The maximum attribute value length is 512 bytes so you cannot retrieve a larger value than this.

    Note that the LE Data Length Extension is at a lower layer (only affects performance) and does not affect the semantics of ATT/GATT.

Reply
  • For notifications, the maximum value length is MTU-3 or 512, whichever is the smallest.

    For a simple Read Request, the maximum value length is MTU-1. To read the whole value, in case it does not fit in a Read Response given the current MTU, use the Read Long Value operation, which will issue multiple Read Blob Requests and concatenate the parts. The maximum attribute value length is 512 bytes so you cannot retrieve a larger value than this.

    Note that the LE Data Length Extension is at a lower layer (only affects performance) and does not affect the semantics of ATT/GATT.

Children
No Data
Related