From 3fcf91d65bfee72dea0174d34fc3396737ac58a4 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Wed, 9 Oct 2024 17:38:54 +0800 Subject: [PATCH] =?utf8?q?=E6=B6=88=E6=81=AF=EF=BC=9A=E5=A2=9E=E5=8A=A0ios?= =?utf8?q?=E9=93=BE=E6=8E=A5=E6=97=B6=E7=9A=84=E6=9C=AA=E8=AF=BB=E6=B6=88?= =?utf8?q?=E6=81=AF=E5=B1=8F=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleANCS.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 1a5afdb2d..deabc5e5c 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c @@ -288,10 +288,11 @@ 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); - //当前时间戳减去订阅通知时间戳3s以上的通知,才要求数据(过滤ios将所有未查看消息发过来) - //if(creationTime-subscribe_notify_creationTime>5) - ble_ancs_client_at_cmd_get_notify_att(conn_id, notify_src->notification_uid); - // + //当前时间戳减去订阅通知时间戳10s以上的通知,才要求数据(过滤ios将所有未查看消息发过来) + 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", -- 2.17.1