6 years, 10 months ago.

MBED BLE API to support intercepting the Nordic Event "BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST"?

In my current application we read sensors over larger intervals of times, say for example as high as every 15 minutes. So we use the UpdateConnectionParams to set the Min, Max Intervals, Slave Latency and ConnectionTimout in the peripheral once the connection has been established with the central inorder to best operate under low power mode.

However since the BLE central is also a NRF52832 BLE module, so based on the Nordic documentation it seems like we need to subscribe to the event "BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST" and accept the inbound connection params update request. So I have been looking at the MBED API, all I could find is the OnConnection event,

How would i achieve subscribing to this event "BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST"?

Question relating to:

The nRF52 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF52 Series SoC. This kit supports both development for nRF52832 SoCs.

1 Answer

6 years, 10 months ago.

You can just follow the normal nRF52 SDK instructions (e.g. documented here) as Mbed BLE stack wraps around the Nordic SDK. Same functions will be available to you.

Jan, Thanks for taking the time to respond. But i was hoping MBED had provided wrappers to handle these events like the have for onConnect for ex. Since this seems like an important event to have support for especially since it allows for low power operation.

Thanks, Ajay

posted by Ajay Kashyap 03 Feb 2018