BLE Client autoconnection or reconnection
Posted: 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,
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?
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);
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?