This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Authentication before connection

I am using nRF51 with Softdevice S110 to do a BLE peripheral, I want to have pin-code authentication before central device (or android phone) can connect to the peripheral to read/write characteristics.

I realize the SDK of nRF has very limited published examples in BLE security. If you can put more examples, this can help more people. Thanks. From example, ble_app_gls, authentication is done after connection, only in paring and bonding phases.

I also tried to use sd_ble_opt_set(), however, the authentication only happens after connection.

Related