Sending notification with MTU size more than 23 bytes - BLE


dhguja@gmail.com
 

Hello all,
      I have a question regarding handling MTU size more than 23 bytes during notification. I have a custom service on a peripheral device app to which client app(lets say android app) will subscribe to. When the peripheral device has some data ( usually more than 23 bytes) it will send the data to the client via 'notification'. I saw many solutions with respect to nRF SDK but i am not using any SDK but just developing the peripheral device app using zephyr's BLE APIs. I would like to know how to handle this?

I came across MTU negotiation during connection while searching on this. I couldn't find any sample code on zephyr using this method. Does peripheral device app has to do anything during this negotiation?

Is there a easier and cleaner way to do this or we have to do data segmentation and reassembly ourselves in the application layer?

Will be helpful if someone can point me in the right direction. Thanks in advance.

Regards,
DJ


Join users@lists.zephyrproject.org to automatically receive all group messages.