From: Caisking <3449750381@qq.com> Date: Thu, 10 Oct 2024 03:17:04 +0000 (+0800) Subject: 消息:增加信息时间戳过滤 X-Git-Tag: release_V1.2.70_20241020_135402~103 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=8c867f4dfcaeac1bc8e74cf7135b4de049629221;p=mirrors%2FFD230.git 消息:增加信息时间戳过滤 --- diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c index 648332e4d..ddef52575 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c @@ -292,10 +292,10 @@ static void ble_ancs_client_notify_source_cbk(uint8_t client_id, uint16_t conn_i uint32_t creationTime=0; int ret = uapi_get_timestampe_ss(&creationTime); //当前时间戳减去订阅通知时间戳10s以上的通知,才要求数据(过滤ios将所有未查看消息发过来) - if(creationTime-subscribe_notify_creationTime>10) - { + // if(creationTime-subscribe_notify_creationTime>10) + // { ble_ancs_client_at_cmd_get_notify_att(conn_id, notify_src->notification_uid); - } + // } } else { printf("[ANCSClientNotifySRCCBK]conn_id:%d status:0x%x.\r\n",