Hi
Currently, I am developing an application to send larger data over BLE through custom service. I have referred to multiple tickets on devzone was able to send the data by updating the MTU size by using the “Request MTU” option on the nRF connect mobile application.
Is it the right way of doing this or am I missing something?
Hardware/Peripheral – nRF5340-DK
Central – nRF connect Mobile application
SW Tools: vscode, ncsv2.0.2 and Zephyr version: 3.0.9
This is my prj.conf parameters I have added
CONFIG_BT_BUF_ACL_RX_SIZE=251 CONFIG_BT_BUF_ACL_TX_SIZE=251 CONFIG_BT_L2CAP_TX_MTU=247 CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
Changes made in peripheral code:
#define BT_L2CAP_RX_MTU (CONFIG_BT_BUF_ACL_RX_SIZE - BT_L2CAP_HDR_SIZE)
Thanks
Tchag