I am trying to understand why my program is returning this error (NRF_ERROR_RESOURCES). I read through a lot of other posts in the devzone and tried replicating them, but they don't seem to be doing the right thing
00> <info> ble_gatt: Requesting to update data length to 201 on connection 0x0.00> <error> ble_gatt: sd_ble_gap_data_length_update() (request) on connection 0x0 returned unexpected value 0x13.
I printed out the limitations struct for debugging:00> <error> ble_gatt: limitation tx_payload_limited_octets: 17400> <error> ble_gatt: limitation rx_payload_limited_octets: 17400> <error> ble_gatt: limitation tx_rx_time_limited_us: 0
The update data length is 201 - why is it so high? What can I do to decrease this value?
I read on the forums that NRF_SDH_BLE_GAP_EVENT_LENGTH governs the tx/rx payload size. I increased it from 3 to 6:
I assume you are using SDK 14.2, I will try to explain how the rx and tx octets are set using that sdk and the example SDK_14.2\examples\ble_central\ble_app_rscs_c\main.c
Hopefully you were able to follow along, and hopefully I was able to explain it to you in a somehow understandable manner.
Thanks for the explanation. I changed my MAX MTU back to 23, and my GAP_EVENT_LENGTH back to 3, and I'm not getting errors.
The important part for me was
After making these two values the same by changing the values in sdk_config.h, no length update was needed at all.