请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC3235SF 要增加通过 MQTT 发送的字节数、我需要做什么?
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.
我相信它受到 mqttclient.c 中定义的 MQTTCLIENT_BUF_LEN 的限制(作为 MQTT 客户端的一部分、请参阅 source/ti/net/MQTT/interface/下的)、该值设置为1024。
这定义了 MQTT 池中的 TX/RX 缓冲区大小。
如果 您扩展 此内容 (在代码中或通过定义 CFG_SL_CL_BUF_LEN 编译标志)并重建 MQTT 库、则它应接受更长的消息。
如果您使用的是 CCS、则还可以将 mqttclient.c 添加到您的应用程序中并更新其中的值(该文件将编译为应用程序文件并覆盖库内置)。