Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
8016如何主动断开已建立的ble连接
调用函数gap_disconnect_req,相关说明可以参考注释或者SDK User Guide
uint8_t conidx = gap_get_connect_num(); conidx = conidx>0?(conidx-1):0; gap_disconnect_req(conidx);//断开连接
如果需要在进入休眠的时候断开,就在user_entry_before_sleep_imp函数中调用就行了