如何解析消息以在C程序中获取发件人电话号码和文本消息?

问题描述 投票:0回答:2

这里是AT命令的响应,我只想读取电话号码和短信?我该如何编码?

+CMGR: "REC READ","+18142150657","Joseph cell","11/02/24,19:53:35-20",145,4,0,0,"+13123149621",145,9
Message 1

OK

+CMGR: "REC READ","+18145806808","Google voice","11/02/25,23:44:56-20",145,4,0,0,"+13123149621",145,46
Here's what they said "Get ready here we come"

OK

+CMGR: "REC READ","+18140521232","Mary cell","11/02/25,21:34:00-20",145,4,0,0,"+13123149621",145,24
This is from marys phone

OK

ERROR
c parsing at-command
2个回答
1
投票

使用sscanf


0
投票

一些一般注意事项

© www.soinside.com 2019 - 2024. All rights reserved.