#624 短信消息推送有显示空白现象(使用的是IOS手机)
authorCaisking <3449750381@qq.com>
Wed, 25 Sep 2024 09:31:43 +0000 (17:31 +0800)
committerCaisking <3449750381@qq.com>
Wed, 25 Sep 2024 09:31:43 +0000 (17:31 +0800)
code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c

index 1bafd01..18e083e 100644 (file)
@@ -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);