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

Communicating with Android device — notification alternatives?

Hello, the official example of BLE peripheral communicate with android device using GATT HVX NOTIFICATION. I'm wondering, if I need to send data over 20 bytes, are there other options besides the "notification" type available at all? Or do I have to use a completely different profile in order to achieve that?

  • The payload of a packet cannot be more than 20 bytes. If you need to send more, you can split the data into chunks of 20 bytes. The SoftDevice will do this for you. If a characteristic length is more than 20 bytes it will be split into several notification packets. As there is currently no support for data packet length extension, notifications are the best option for "high" throughput.

Related