BLE multiple peripheral connect
Posted: Mon Mar 11, 2024 8:50 am
I am using ESP32-IDF BLE with NimBLE stack. I want to connect 2 peripheral devices with my board. I can successfully connect 2 devices and after the connection I am calling the API for discover services for the first device, and then second device. I am getting the services and characteristics of both devices mixed up not one after the another. The code is...
The output is... I tried with the example "ble_multi_conn_cent" but I getting the error function "ble_gap_multi_connect" is not declared and the structure "ble_gap_multi_conn_params" not declared.
Can someone help me with this issue.
The output is ...
I tried with adding delay between API and tried with semaphore for synchronization, but then not going to the service discovery callback function for any device. So I commented the delay.The output is... I tried with the example "ble_multi_conn_cent" but I getting the error function "ble_gap_multi_connect" is not declared and the structure "ble_gap_multi_conn_params" not declared.
Can someone help me with this issue.