how to use esp_ble_gatts_close ?
Posted: Thu Jul 25, 2019 6:44 am
Hi all,
Currently, I want to terminate the connection between esp32 and mobile application by pressing a button.
How can I do that?
I have checked and then found this function:
But I don't know how to implemet this function into my code, where can I find those two parameters, gatts_if and conn_id.
I used example code in example gatt_security_server in esp-idf folder.
Thank you very much,
Currently, I want to terminate the connection between esp32 and mobile application by pressing a button.
How can I do that?
I have checked and then found this function:
- esp_ble_gatts_close(gatts_if, conn_id);
I used example code in example gatt_security_server in esp-idf folder.
Thank you very much,