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
I had the same issue as listed below and could use @chrelu solution to do the advertising. However, I couldn't perform the bonding with the mobile phone as I did before. I have used the "nRF Connect app" on Android to connect it and perform the bonding, but the connection was dropped, and the bonding was failed. The mobile didn't prompt any message for me to confirm the passkey, and the device also didn't receive BLE_GAP_EVENT_PASSKEY_ACTION as before.
Does anyone know how to fix this issue?
Thank you very much!
I found a solution. Instead of re-initializing BLE, I only reset BLE GATTS and start it again after adding my BLE services (see method gatt_svr_init). I hope I could also help someone else.
voidgatt_svr_init()
{
ble_gatts_reset(); // before I didn't call this methodble_svc_gap_init();
ble_svc_gatt_init();
ble_gatts_count_cfg(gatt_svr_svcs);
ble_gatts_add_svcs(gatt_svr_svcs);
ble_gatts_start(); // before I didn't call this method
}
The text was updated successfully, but these errors were encountered:
GaryChan-work
changed the title
BLE bonding fail when it is no longer used by Matter
BLE bonding fail when it's no longer used by Matter
Nov 20, 2024
github-actionsbot
changed the title
BLE bonding fail when it's no longer used by Matter
BLE bonding fail when it's no longer used by Matter (CON-1426)
Nov 20, 2024
Hi,
I had the same issue as listed below and could use @chrelu solution to do the advertising. However, I couldn't perform the bonding with the mobile phone as I did before. I have used the "nRF Connect app" on Android to connect it and perform the bonding, but the connection was dropped, and the bonding was failed. The mobile didn't prompt any message for me to confirm the passkey, and the device also didn't receive BLE_GAP_EVENT_PASSKEY_ACTION as before.
Does anyone know how to fix this issue?
Thank you very much!
Originally posted by @chrelu in #906 (comment)
The text was updated successfully, but these errors were encountered: