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

Sending more than 20 bytes via notification

I am making a simple device based on nrf5240 - I want to control the servo from a smartphone. I used the WART and Blinky examples as a starting point. The data exchange algorithm is this - the smartphone sends a command (writes data to the characteristic) and expects a response from nrf52840.
The response is implemented through a notification (as in the UART example) and through another characteristic.

Everything works, but I wanted to send a 48-byte packet in response to the command, and I didn’t succeed. I can’t send more than 20 bytes through a notification. I saw similar questions on the forum, and if I understood correctly, then there is a limit on the size of the data sent through the notification.
How to fix the code so that you can send more than 20 bytes through a notification?

SDK version: nRF5_SDK_16.0.0

Platform: nRF52840 

SoftDevice: s140

Related