Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
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.