esp32 bluedroid gatts_server_demo怎么主动断开从机连接

lwshowl
Posts: 27
Joined: Sat Jun 05, 2021 7:33 am

esp32 bluedroid gatts_server_demo怎么主动断开从机连接

Postby lwshowl » Sat Jun 12, 2021 3:00 am

看了一下gatts_server 的介绍,好像没有发现可以主动断开从机连接的api,请问有这样的方法吗

ESP_XuLZ
Posts: 173
Joined: Fri Mar 26, 2021 6:04 am

Re: esp32 bluedroid gatts_server_demo怎么主动断开从机连接

Postby ESP_XuLZ » Thu Jun 17, 2021 9:06 am

使用这个api 接口, esp_err_t esp_ble_gatts_close(esp_gatt_if_t gatts_if, uint16_t conn_id), gatts_if 与 conn_id 在连接时保存

Who is online

Users browsing this forum: No registered users and 85 guests