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

Max BLE Characteristic write size with long write API

Hello, We are looking to send around 1000 Bytes on characteristic. On android app we used Nordic apis to send long write for sending 1000 byes but I am receiving only 509 bytes only once. Not sure if I am doing something wrong on Nordic firmware side or its not possible.

Below is my callback function :

static void on_disp_write_authorize(ble_disp_t *p_cus, ble_evt_t const *p_ble_evt) {

 ble_gatts_evt_write_t const *p_evt_write = &p_ble_evt->evt.gatts_evt.params.authorize_request.request.write;

 dataLength =  p_evt_write->len;

}

Below is the Api:

writeCharacteristic(secondCharacteristic, "Very, very long data that will no fit into MTU")


.split()
.enqueue()

https://github.com/NordicSemiconductor/Android-BLE-Library

Related