Module for initiating and executing a connection parameters negotiation procedure.
More...
Enumerator |
---|
BLE_CONN_PARAMS_EVT_FAILED |
Negotiation procedure failed.
|
BLE_CONN_PARAMS_EVT_SUCCEEDED |
Negotiation procedure succeeded.
|
- Note
- If the negotiation procedure should be triggered when notification/indication of any characteristic is enabled by the peer, then this function must be called after having initialized the services.
- Parameters
-
[in] | p_init | This contains information needed to initialize this module. |
- Returns
- NRF_SUCCESS on successful initialization, otherwise an error code.
uint32_t ble_conn_params_stop |
( |
void |
| ) |
|
This function is intended to be used by the application to clean up the connection parameters update module. This will stop the connection parameters update timer if running, thereby preventing any impending connection parameters update procedure. This function must be called by the application when it needs to clean itself up (for example, before disabling the bluetooth SoftDevice) so that an unwanted timer expiry event can be avoided.
- Returns
- NRF_SUCCESS on successful initialization, otherwise an error code.
Use this function to change the connection parameters to a new set of parameter (ie different from the ones given at init of the module). This function is usefull for scenario where most of the time the application needs a relatively big connection interval, and just sometimes, for a temporary period requires shorter connection interval, for example to transfer a higher amount of data. If the given parameters does not match the current connection's parameters this function initiates a new negotiation.
- Parameters
-
[in] | new_params | This contains the new connections parameters to setup. |
- Returns
- NRF_SUCCESS on successful initialization, otherwise an error code.
void ble_conn_params_on_ble_evt |
( |
ble_evt_t * |
p_ble_evt | ) |
|
Handles all events from the BLE stack that are of interest to this module.
- Parameters
-
[in] | p_ble_evt | The event received from the BLE stack. |