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.

CC3200 mqtt client demo publish message to Rabbtmq mqtt adapter error publish 信息错误 发送信息到topic

Other Parts Discussed in Thread: CC3200

Ti 工程师,你好;

            我使用mosquitto 是可以正常的发布和订阅信息的。

订阅信息是:启动mosquitto 服务端,mqtt client实现会去订阅 相关的topic,当有信息从别的客户端发送到所订阅的信息的时候,mqtt client是可以接收到数据的。

发布信息:启动mosquitto 服务端,mqtt client 去连接服务端,然后连接成功了之后,按下SW2 或者SW3去触发相应的publish 事件,并将相应的数据发送

到对应的topic上面,如果别的客户端,订阅了这个信息,就会接收到SW2 触发时发送的信息。

  使用mosquitto 是没有什么问题的,这两个功能都能够顺利实现。

         使用Rbbitmq mqtt adapter的时候,就出现问题。

           使用mqtt clent 是能够正常的订阅对应的topic,并且在对应的topic接收到数据的时候,mqtt client 是可以接受都数据的。

           但是使用mqtt client 发送数据的时候,按下按键,发送数据到对应的topic上面的时候,程序就会死机,并且如果别的客户端订阅了他发送的topic的时候也接收不到信息。

下面是触发SW3按键时候,打印的错误信息:

 

C: FH-B1 0x35 to net 19, Sent (74 Bytes) [@ 4979]

C: Net 19, Raw Error -1, Time Out: N C: RX closing Net 19 [-1]

 C: Cleaning session for net 19

 C: Net 19 now closed disconnect from broker 45.79.108.30

 CC3200 Publishes the following message Topic: /cc3200/ButtonPressEvtSw2 Data: Push button sw2 is pressed on CC32XX device

 

连接服务器成功的信息如下所示:

Success: conn to Broker no. 1

 C: FH-B1 0x82 to net 21, Sent (79 Bytes) [@ 5031] C: Rcvd msg Fix-Hdr (Byte1) 0x90 from net 21 [@ 5031]

 C: Msg w/ ID 0x0011, processing status: Good Client subscribed on following topics:

/cc3200/ToggleLEDCmdL1

 /cc3200/ToggleLEDCmdL2

/cc3200/ToggleLEDCmdL3

 

有知道数什么原因的没有?