You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug BLEConnection::requestPairing does not return if the device is disconnected during pairing.
After the BLE_GAP_EVT_DISCONNECTED event occurs, the BLE_GAP_EVT_EVT_CONN_SEC_UPDATE event does not occur, so xSemaphoreGive(_pair_sem)is not called and No longer return from xSemaphoreTake(_pair_sem, portMAX_DELAY).
Set up (mandatory)
PC & IDE : Arduino 1.8.13 Windows 10
BSP : 0.20.5
Board : Feather nRF52840 Express
Sketch: None
The text was updated successfully, but these errors were encountered:
ah right, thanks, that is indeed an issue. Currently there is huge pending PR $466 that implement LESC and completely rework the pairing process. We will wait until that PR got merged and double check this again. Thanks for posting.
#466 is merged, I have just checked the log. It completely reworks the pairing process from using legacy just work to more advanced LESC. Some API is removed and new is added. The pairing process is not non-blocking, a callback is invoked when it is complete (failed or succeeded). Thanks for filing the issue.
Describe the bug
BLEConnection::requestPairing
does not return if the device is disconnected during pairing.After the
BLE_GAP_EVT_DISCONNECTED
event occurs, theBLE_GAP_EVT_EVT_CONN_SEC_UPDATE
event does not occur, soxSemaphoreGive(_pair_sem)
is not called and No longer return fromxSemaphoreTake(_pair_sem, portMAX_DELAY).
Set up (mandatory)
The text was updated successfully, but these errors were encountered: