No more advertising after an interrupted pairing
Hi!
I am using a STM32WB55 on a custom platform.
I added "just work" encryption that will force a pairing with my device when I am using a protected characteristic thanks to ATTR_PERMISSION_ENCRY_READ/WRITE.
My enc_key_size is 10, my CFG_IO_CAPABILITY is CFG_IO_CAPABILITY_NO_INPUT_NO_OUTPUT, my CFG_MITM_PROTECTION is CFG_MITM_PROTECTION_NOT_REQUIRED,
Everything behaves normally but when I read a characteristic and the pop-up to pair my device appears. At this moment, if I close the application connected to my device (nrf connect in my case) without responding anything to the pairing it disconnects to the device but the application does not seem to see the flag HCI_DISCONNECTION_COMPLETE_EVT_CODE and thus does not restart the advertising. In this situation, my device is so no more visible on BLE through its advertising data.
Do you have a clue about the origin of the problem and how I could solve it?
Do not hesitate if you need any additional information.
Thank you in advance
Tom
