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

Notification&indication The result of sending data

hi,

    My application MTU exchange is 23 bytes,I send data using Notification or indication to sent 105 bytes date,I subcontracted the data into 20 bytes ot sent,How do I make sure my 105 bytes  data gets sent out,What is the specification process should i do,tks

Environment:nRF5 SDK + ses 

  • Hi 

    Is there any reason why you limit your MTU length to 23 bytes?

    Pretty much all BLE devices should support longer ATT MTU by now, and if you set it to 108 bytes or more you can send 105 bytes of data in a single update, which makes your application logic simpler and the communication more efficient. 

    Whether or not you send it at once, or split the message into multiple 20 byte chunks, the Bluetooth stack guarantees that your packets will be received at the other end, in the same order as you send them. 

    The only situation in which data is not received on the other end is if the link breaks and you get a disconnect. 

    Best regards
    Torbjørn

Related