Hi, there:
based on \\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040\s132, I need add Just-Works bonding function. But this bonding request need launch by nRF52832 as peripheral role.
As I checked
seems the bonding request always launch by Central not Peripheral side.
Here is my plan:
Based on source code in
\\nRF5_SDK_17.0.2_d674dde\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay
-nRF52832 as Peripheral role to do Advertisement
-While GAP Connected then change to Central Role and send bonding request
-As Bonding OK, then turn the role back to Peripheral role
Thanks a lot for feedback any suggestion or you have alternative solution.
Michael