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

sd_ble_gatts_hvx() send more than 20 bytes per notify packet.

SDK version: nRF5_SDK_15.3.0

Platform: nRF52840 DK

SoftDevice: s140

--

Hi all,

I use ble_app_blinky example and Android nRF Blinky SDK(https://github.com/NordicSemiconductor/Android-nRF-Blinky) to add function.

Recently I want to modify the button characteristic of ble_app_blinky example to send 32 bytes notification packet.

so I fix example code as below:

modify that init_len and max_len are 32 of the button characteristic in ble_lbs_init().

add the string(32 bytes) in sd_ble_gatts_hvx()

Android APP side, try to print the log of notification packet in BlinkyButtonDataCallback.

only get 20 bytes:

 Is it possible to send more than 20 bytes per notification packet using sd_ble_gatts_hvx()?

Thanks.

Parents Reply Children
No Data
Related