From: SnickerSun Date: Mon, 8 Apr 2024 12:31:08 +0000 (+0800) Subject: 优化BLE Service ,连接手机后停止广播 X-Git-Tag: release_V1.2.70_20241020_135402~1200^2~17^2~4 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=25c394d34d210d7e80193667b72b2e844e056bc6;p=mirrors%2FFD230.git 优化BLE Service ,连接手机后停止广播 --- diff --git a/code/sdk/application/wearable/service/ble_service/bleService.c b/code/sdk/application/wearable/service/ble_service/bleService.c index 68609975a..8b1d1ff9c 100644 --- a/code/sdk/application/wearable/service/ble_service/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleService.c @@ -286,6 +286,7 @@ static void svr_ble_connstate_change_cb(unsigned short conn_id, bd_addr_t *addr, set_phone_info(addr); Bleconnect = GAP_BLE_STATE_CONNECTED;//蓝牙已连接 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GAP_BLE_STATE_CONNECTED!!! 0x%x\r\n",pair_state); + svr_ble_adv_stop(); } }