您好!
在哪里可以找到从具有 AtCmd 固件的 CC3220接收到的错误代码定义。
类似:"error:parse parameters、-4"
文档"SWRU534C"只描述了命令和参数。 (https://www.ti.com/lit/ug/swru534c/swru534c.pdf?ts=1590393517810)
您好!
Peter
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
在哪里可以找到从具有 AtCmd 固件的 CC3220接收到的错误代码定义。
类似:"error:parse parameters、-4"
文档"SWRU534C"只描述了命令和参数。 (https://www.ti.com/lit/ug/swru534c/swru534c.pdf?ts=1590393517810)
您好!
Peter
尊敬的 Peter:
SDK 中的 source/ti/net/atcmd_defs.c
char ATCmd_errorParseStr[] ="error:parse parameters、xxxxxx";
该数组在许多位置传递给位于 source/ti/net/atcmd/atcmd_gen.c 中的 ATCmd_errorResult()
source/ti/net/utils/str_mpl.h 具有
#define STRMPL_ERROR_WRONG_PARAM (-4)
该宏是在某些对 ATCmd_errorResult()的调用中传递的值之一,因此可能是-4的原因。
谢谢、Ralph。
你好、Peter、不、我不这么认为。
我没有使用过这些函数、但在 source/ti/net/atcmd_http.c、source/ti/net/atcmd_mqt.c 和 source/ti/net/utils/str_mpl.c 中使用了 STRMPL_ERROR_PARAM、因此如果您有上下文、例如正在执行 MQTT、则可能会有所帮助。
它可能与 StrMpl_setListStr()一样通用,无法在 haystack 中找到指针。
如果您有调试方法,则可以从 ATCmd_errorResult()反向跟踪以获取上下文。
否则、请参阅您的代码使用的内容以及它与上述三个源文件的重叠方式。
谢谢、Ralph。