增加在APP同步完数据后连接 pabp 操作
authorhcj <1224667075@qq.com>
Tue, 20 Aug 2024 08:05:14 +0000 (16:05 +0800)
committerhcj <1224667075@qq.com>
Tue, 20 Aug 2024 08:05:14 +0000 (16:05 +0800)
code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c

index 48b1c26..b1a3527 100644 (file)
@@ -43,6 +43,7 @@ extern "C" {
 #include "custom_utils.h"\r
 #include "custom_runtime.h"\r
 #include "bleANCS.h"\r
+#include "Bluetooyhpabpserver.h"\r
 \r
 #define DEBUG_TEST (0)\r
 #define CRC_CHECK_ERR 0 //crc校验失败\r
@@ -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);\r
 \r
     }\r
+    \r
+    if( cm_custom_ble_service_on_flag() && cm_get_HFP_switch())\r
+    uapi_pbap_cmd_start_client();\r
+\r
     ble_UpdateMainWeatherData();\r
     cJSON_Delete(root);\r
     *check = 1;\r