Hello, I am working on an application where the nRF51 acts as both central and peripheral. The device is in permanent connection as peripheral while scanning for other devices and occasionally connecting them as central.
The peripheral role uses SDK module ble_conn_params for connection parameters negotiation with central peer. My problem is that I don't want the module to negotiate connection parameters with peripheral peers.
There is a function ble_conn_params_stop() which stops the internal timer but does not prevent the timer from starting again after new connection event.
I think that new function ble_conn_params_deinit() which would prevent the negotiation from starting again after new connection would be nice (and a possibility to limit the module to just peripheral role would be nice as well).
My quick and dirty solution is a boolean variable which controls evaluation of ble_conn_params_on_ble_evt() and which is set to true in ble_conn_params_init() and false in ble_conn_params_stop() but I am always unhappy to modify SDK files.
Thank you!
Adam Heinrich