From 20a0a22a922876fd09b8d82b74837ff8aa2152d8 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 10 Jul 2024 14:20:45 +0800 Subject: [PATCH] =?utf8?q?=E6=B6=88=E6=81=AF=E6=9C=BA=E5=88=B6=E9=87=8D?= =?utf8?q?=E5=86=99=EF=BC=88=E6=BC=8F=E4=BA=A4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/utils/pdu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/sdk/drivers/peripheral/utils/pdu.c b/code/sdk/drivers/peripheral/utils/pdu.c index 21f261615..b1292ea3a 100644 --- a/code/sdk/drivers/peripheral/utils/pdu.c +++ b/code/sdk/drivers/peripheral/utils/pdu.c @@ -295,6 +295,7 @@ strHex2bytearray 0891683108705505F0240D91685125419665F1000842508281025223108BA15 output_sms_text_length 16, index 29 pdustr len 45,phonenumb:8615521469561 ,text:计划的好好的基金 ,txtlen:24, receive time 0124-04-28 18:20:25 offset 28800 , timestampe 1716891625 */ +static uint32_t ancs_msg_index =0; int pdu_decode_example(const char *inpdustr ) { @@ -322,8 +323,8 @@ int pdu_decode_example(const char *inpdustr ) timenow->tm_min, timenow->tm_sec); - message_data(0,0,phone_number,text,0); - CustomEventPublish_TOPIC_EVENT_MESSAGENOTE(); + ancs_msg_index= message_data(0,0,phone_number,text,0); + CustomEventPublish_TOPIC_EVENT_MESSAGENOTE(ancs_msg_index); } return ret; -- 2.17.1