ST意法半导体
直播中

刘勉励

7年用户 213经验值
私信 关注
[问答]

套接字AT+S.SOCKS有多近?

你好!我不能关闭套接字客户端是命令AT + S.SOCKC - “ERROR:待定数据”被提出'。根据UM1695,它应该是在关闭套接字连接(AT + S.SOCKC)之前必须刷新待处理数据(使用AT + S.READ命令)。如果缓冲区未被擦除,则会引发“ERROR:Pending data”。 。我找不到描述
AT + S.READ。我怎么能这样做呢?
AT + S.READ
错误:找不到命令
AT + S.SOCKC = 00
错误:待定数据

以上来自于谷歌翻译


以下为原文




Hello! I cant close socket client be command AT+S.SOCKC -  â€œERROR: Pending dataâ€� is raised'.  According to UM1695 it should be flushing pending data  (using the AT+S.READ command) is mandatory before closing the socket connection (AT+S.SOCKC). If the buffer is not erased, the “ERROR: Pending dataâ€� is raised. . I cant find description
AT+S.READ. How can I do that properly?
AT+S.READ
ERROR: Command not found

AT+S.SOCKC=00

ERROR: Pending data

回帖(3)

刘倩

2019-2-26 14:00:56
在UM中存在拼写错误,任何AT + S.READ的出现都必须用AT + S.SOCKR代替

以上来自于谷歌翻译


以下为原文




There is a typo in the UM, any occurrence of AT+S.READ must be substituted with AT+S.SOCKR
举报

刘勉励

2019-2-26 14:11:13
感谢您的答复。我怎样才能确切知道数据长度?

以上来自于谷歌翻译


以下为原文




Thank you for the response. And how can  I know exactly data length?
举报

刘倩

2019-2-26 14:29:36
AT + S.SOCKQ返回由套接字ID参数指定的套接字上等待的数据的字节数。
在你的情况下:
AT + S.SOCKQ = 00
达特伦:xxx

以上来自于谷歌翻译


以下为原文




AT+S.SOCKQ returns the number of bytes of data waiting on socket specified by socket ID argument.
In your case:

AT+S.SOCKQ=00

DATALEN: xxx
举报

更多回帖

发帖
×
20
完善资料,
赚取积分