2024-03-21 02:01 PM
I am developing a BLE peripheral device using the NUCLEO WB55RG. I am having trouble connecting to smartphones. The pairing process is as follows: The security is Just Work, using bonding mode.
During the first pairing:
During the second pairing:
How can I detect the events of the first ③ and the second ②? Also, how should I respond to CCCD writes?
2024-05-15 07:01 AM
Hello @AkihiroN
You can detect the event where the peripheral responds to the pairing request by handling the ACI_GAP_PAIRING_COMPLETE_EVENT. This event indicates that the pairing process has completed successfully or failed.
You can detect the encryption request event by handling the HCI_LE_ENCRYPTION_CHANGE_EVENT or the HCI_LE_ENCRYPTION_KEY_REFRESH_COMPLETE_EVENT. These events indicate that the encryption has been started or the keys have been refreshed as part of the bonding process.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.