i am using nrf52840 and nrf5 sdk.
Is it possible to send data more than 247 bytes in BLE, If i set MTU SIZE as 257 will this work??
If not can we do this in nrf connect sdk?
i am using nrf52840 and nrf5 sdk.
Is it possible to send data more than 247 bytes in BLE, If i set MTU SIZE as 257 will this work??
If not can we do this in nrf connect sdk?
Hi!
Yes, that works.
See this Q&A on how to set the values:
but this link is for nrf connect sdk, is there any other way to do this in nrf5 sdk itself
Hi!
Take a look at how it's done in e.g. the ble_app_uart example. Relevant function is e.g. gatt_init() where nrf_ble_gatt_att_mtu_periph_set() is used.
Also set the NRF_SDH_BLE_GATT_MAX_MTU_SIZE in sdk_config.h