Do you mean a fixed security key that never changes that you can use for authenticating the connection?
Or do you mean, how do you generate and get the key used to authenticate a bonding/connection?
I mean a fixed security key .
I believe you would put the fixed key into your code on the BLE device, set the device for Out-Of-Band pairing, and then authenticate the connection when requested using the fixed key in the code.
The Project #032: OOB Pairing | Cypress Semiconductor example should help with explaining the operation more; But, basically, you will use the OOB pairing with the static key being compared on the PSoC BLE and entering it in on the phone.
1 of 1 people found this helpful
Please refer to API: CyBle_GapFixAuthPassKey(), the BLE component V3.1 or higher version have this function.
api_result = CyBle_GapFixAuthPassKey(1,passkey);