How to connect more than one BLE devices?

xzwang
Posts: 12
Joined: Wed Dec 14, 2016 4:54 am

How to connect more than one BLE devices?

Postby xzwang » Wed Jan 11, 2017 3:08 am

Now I use the ESP32 as Master, and want to connect More than one BLE devices?

I find two profiles in gattc_client example. Is that means that ESP32 can connect two ble slavers ? And one profile corresponding one ble slaver ? I also find an issue that ESP32 can only call esp_ble_gattc_app_register twice at most. The third time will register failed and the status in esp_gattc_cb is ESP_GATT_NO_RESOURCES.

Has anyone can give me some suggestion ?

xzwang
Posts: 12
Joined: Wed Dec 14, 2016 4:54 am

Re: How to connect more than one BLE devices?

Postby xzwang » Thu Jan 12, 2017 3:07 am

I find the BTA_GATTC_CL_MAX in bta_gattc_int.h, it has been defined 3. And buledroid will take up one gatt client after initialized. So it only can connect two slavers at most.

Is the BTA_GATTC_CL_MAX decided by the CPU capability of ESP32 ?

Who is online

Users browsing this forum: No registered users and 2 guests