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,