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

in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive

in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive .how can i chang to data number to more bytes. for example , i want to send 200 bytes through COM  in one time and BLE receive 200bytes i one time , relatively HOW to send 200bytes data in one time  through BLE ,not separate 200bytes data in many pack to send

Parents Reply Children
  • Hi,

    You can call bt_conn_le_data_len_update() after a connection has been established. As you are using the nrf/samples/bluetooth/peripheral_uart sample there is allready a callback function called connected(). Here you get a handle to the current connection - current_conn. Once you have that you can call bt_conn_le_data_len_update(). Please refer to nrf\samples\bluetooth\throughput\src\main.c for an example.

Related