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

No Memory for operation when use sd_ble_gatts_characteristic_add to add a characteristic with S140

Hi all,

I'm using nRF52840 and S140 based on the ble_app_uart example. I get a error code 4 when use sd_ble_gatts_characteristic_add to add a characteristic for another service. I didn't change any setting for the Keil and the softdevice_enable function didn't indicate anything to change the RAM setting.

If I set the MTU size to 20, not 158, it's ok. But we want to use Bluetooth 5. So could you tell me what should I do? Thanks.

Besides, s140 support 2M 1M 500k 150K data rate, could you tell me how to configure it to use the different data rate? Is there any example refer to?

After that, I can use sd_ble_gatts_hvx to send 158 bytes max length one time, right?

Related