BLE Client autoconnection or reconnection

tharunjoy
Posts: 22
Joined: Wed Dec 12, 2018 5:30 am

BLE Client autoconnection or reconnection

Postby tharunjoy » Thu Nov 21, 2019 6:30 am

Hi all,

I am working on ble GATT client. Can anyone explain to me more about BLE reconnection and auto-connection?
I have seen esp_ble_gattc_open function,

Code: Select all

 esp_ble_gattc_open(gl_profile_tab[PROFILE].gattc_if, scan_result->scan_rst.bda, scan_result->scan_rst.ble_addr_type, true);
were the documentation tells, true denotes direct connection and false demote background connection. But I really can't able to connect when I set false. Can anyone tell me more on this function.

I don't really want to scan each time and connect to the ble server. How can I save the bd_address and connect directly to the server without scanning for device each time?

Who is online

Users browsing this forum: No registered users and 78 guests