当前位置:   article > 正文

查看删除短信_+cmti

+cmti

1.查询存储容量

AT+CPMS="SM","SM","SM"

返回

+CPMS: 1,50,1,50,1,50//已有一条,总存储量50条

2.查询短信内容

收到短信时

+CMTI: "SM",3//3:有3+1条短信,因为从0编号

输入

AT+CMGR=3//查询第3+1条短信

返回

+CMGR: "REC UNREAD","+8615111111111","","16/11/29,21:17:57+32"

AT+CMGS="15111111111"

OK

3.查询所有短信

注:查询短信前请选择短信发送方式。

AT+CMGL="ALL"

返回

+CMGL: 0,"RECREAD","+8618817828017","","16/11/10,22:12:42+32"

Fgghhhj

+CMGL: 1,"RECREAD","+8615111111111","","16/11/29,20:51:10+32"

ATasdasdasdasdas

+CMGL: 2,"RECREAD","+8615111111111","","16/11/29,21:07:31+32"

HELLO

+CMGL:3,"REC READ","+8615111111111","","16/11/29,21:17:57+32"

AT+CMGS="15111111111"

OK

4.删除短信

AT+CMGD=3

返回

OK

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/285922
推荐阅读
相关标签
  

闽ICP备14008679号