Hello
When we want to establish a pairing from the connection, I see in your examples that you call pm_handler_secure_on_connection() which calls "conn_secure()" when the "BLE_GAP_EVT_CONNECTED" event is launched.
My question is: would it be possible to start the process of securing the connection at another time? (and remain compliant with the Bluetooth protocol)
In fact, for my application, I would need my smartphone to be able to quickly connect to devices within range in order to retrieve information or do some actions and then move on to the next. But if the user wants to connect to a device specifically to communicate with the device, the connection must be secure.
Therefore I would like to call "conn_secure()" only when the smartphone sends a specific message to start the pairing process. Could I do a procedure like this?
In fact, it is because I would like to avoid receiving a message on the screen of my smartphone asking me if I want to perform pairing in the case where I do not want to make secure connections.
Thank you