Closed soonyak closed 5 months ago
I can see the second device only when I unpair the first device.
This is old issue and also reported on older IDF version which is EOL. Please let us know if issue still observed on latest releases. Closing the issue.
Environment
Module or chip used: ESP32-WROOM-32D IDF version: v4.0 beta2 (commit @99fb9a3f7) NimBLE version: v1.1.0 (commit @a5127ec)
Problem Description
I have ported the Host based privacy (RPA) feature support (v4.0) to my code and this is able to fix the connection problem when iPhone/Android devices use RPA addresses, which change periodically or after Bluetooth on-off. However, when the phone successfully pairs the first device, it is not able to find the second device of the same product.
Is this the normal behaviour? I am not able to find any description about this online.
I have attached my init code and sync callback function that implements the following:
BLE_OWN_ADDR_RANDOM
.BLE_SM_PAIR_KEY_DIST_ID
to key distribution inble_hs_cfg.sm_our_key_dist
&ble_hs_cfg.sm_their_key_dist
.ble_hs_pvcy_rpa_config(1)
in Host-Controller sync callback.AppCode.txt