This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Writing more than 20 bytes (at a time) to a characteristic

By trial and error, I notice that I can only write 20 bytes to a characteristic, no matter how big I make ble_gatts_attr_t.max_len. A little googling reveals that this is a common limit in BLE and there are some special extended attributes to transfer larger blocks of data. Is there an app note or application example to do this?

Parents
  • This 23 limit is part of the Bluetooth 4.2 standard. You can do a 'write long' or specifically in 4.2 you can extend the length of the MTU greater than 23 but it all requires you to go out of your way and it needs to be supported on both ends to work properly (so if you are using the feature specific to 4.2 instead of 'write long' then both sides need to be using 4.2 for that to work properly).

Reply
  • This 23 limit is part of the Bluetooth 4.2 standard. You can do a 'write long' or specifically in 4.2 you can extend the length of the MTU greater than 23 but it all requires you to go out of your way and it needs to be supported on both ends to work properly (so if you are using the feature specific to 4.2 instead of 'write long' then both sides need to be using 4.2 for that to work properly).

Children
No Data
Related