Question
NUCLEO WB55RG BLE Periferal can not paring
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:
- The peripheral sends a security request (aci_gap_slave_security_req).
- A pairing request comes from the central device.
- The peripheral responds to the pairing request.
- A pairing completion notification comes from the central device.
During the second pairing:
- The peripheral sends a security request (aci_gap_slave_security_req).
- An encryption request comes from the central device.
- The peripheral sends an encryption accept.
How can I detect the events of the first ③ and the second ②? Also, how should I respond to CCCD writes?
