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.

[参考译文] MSP432E401Y:MQTT 队列已满

Guru**** 2466550 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1470356/msp432e401y-mqtt-queue-is-full

器件型号:MSP432E401Y

工具与软件:

我正在使用 MQTT 代码的 SDK ,我正在得到队列已满,我检查队列元素或句柄,无法解决问题. mq_send 未返回0我猜(在发送消息到队列中)??

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

     您是否按原样尝试过 MQTT 示例?  本示例使用 https://mosquitto.org 作为代理。 按原样首先运行示例、并确保其按预期运行。  如果您要作为代理运行 MCU、您还可以查看示例 C:\ti\simplelink_msp432e4_sdk_4_20_00_12\examples\rtos\MSP_EXP432E401Y\ns\mqttclientserver。  

    -首先在您的智能手机上安装 MQTT 客户端应用程序。  

    -连接到代理在 test.mosquitto.org

    -订阅主题/Broker/To/simplelink 并提供测试消息。 请参见下文。  

    -单击"发布"按钮。  

    -在客户端终端窗口中,您将看到显示的消息。 请参见下文。  

    -按 LaunchPad 上的按钮,客户端会发送消息"Push button 0 has been pressed on SimpleLink device"。 请参见下文。  

    -在电话客户端订阅相同的主题"/simplelink/ButtonPressEvt0 ",你将看到相同的消息。