From: hcj <1224667075@qq.com> Date: Tue, 20 Aug 2024 08:05:14 +0000 (+0800) Subject: 增加在APP同步完数据后连接 pabp 操作 X-Git-Tag: release_V1.2.70_20241020_135402~609^2~7 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=14bde3ade3a713ecf5f3fadf8f8acc4f32223cc7;p=mirrors%2FFD230.git 增加在APP同步完数据后连接 pabp 操作 --- diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c index 48b1c2676..b1a352783 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -43,6 +43,7 @@ extern "C" { #include "custom_utils.h" #include "custom_runtime.h" #include "bleANCS.h" +#include "Bluetooyhpabpserver.h" #define DEBUG_TEST (0) #define CRC_CHECK_ERR 0 //crc校验失败 @@ -2141,6 +2142,10 @@ uint8_t parse_jsonCheck_weather(uint8_t *buf,uint8_t *check)//json 格式解析 set_weather_one_data(tempMin,iconDay,fxDate,tempMax,textDay,i); } + + if( cm_custom_ble_service_on_flag() && cm_get_HFP_switch()) + uapi_pbap_cmd_start_client(); + ble_UpdateMainWeatherData(); cJSON_Delete(root); *check = 1;