From: Caisking <3449750381@qq.com> Date: Wed, 25 Sep 2024 09:31:43 +0000 (+0800) Subject: #624 短信消息推送有显示空白现象(使用的是IOS手机) X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=91b56dd44bc517189e3a6ae9129c82b589c3ac40;p=mirrors%2FFD230.git #624 短信消息推送有显示空白现象(使用的是IOS手机) --- 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 1bafd01d5..18e083e8c 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c @@ -312,24 +312,24 @@ static void ble_ancs_client_notification_attr_rsp_cbk(uint8_t client_id, uint16_ ble_ancs_attr_rsp_t *node = (ble_ancs_attr_rsp_t *)notify_attr_rsp->attr_rsp_lst.head; uint16_t att_num = 1; - char title_buf[256]={0}; - char msg_buf[256]={0}; - char app_buf[32]={0}; + char title_buf[300]={0}; + char msg_buf[300]={0}; + char app_buf[70]={0}; while (node != NULL) { if (node != NULL) { printf("[ANCSClientNotifyATTRSPCBK]att id:%d length:%lu att_value:%s\r\n", node->att_id, node->att_length, node->att); if( node->att_id==1) { - sprintf_s(title_buf,256,"%s",node->att); + sprintf_s(title_buf,300,"%s",node->att); } if(node->att_id==3) { - sprintf_s(msg_buf,256,"%s",node->att); + sprintf_s(msg_buf,300,"%s",node->att); } if(node->att_id==0) { - sprintf_s(app_buf,64,"%s",node->att); + sprintf_s(app_buf,70,"%s",node->att); } } node = lnext(node);