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

nRF51822 pairing with passcode

Hi,

I'd like to know how to set/alter passcode when pairing happens. I looked a few examples in Keil_v5\ARM\Pack\NordicSemiconductor\nRF_Examples\8.0.0\ble_peripheral but couldn't find pairing code snippet. All I found was that it starts advertising with ble_advertising_start.

I want to know how pairing works in nRF51822 (I recently replaced TI's CC2540 to nRF51822), especially how to control random passcode. I have only 5 digits available display so I need to display 5 digits and change last digit to 0. Any help or comment would be appreciated.

Regards, Brian

Related