MMQTT Example doesn`t quite start
Answer
2/9/19 4:27 PM
MMQTT Example doesn`t quite start
0 (0 Votes)
RE: MMQTT Example doesn`t quite start
Answer
2/9/19 4:47 PM as a reply to Andreas Vogt.

Ups, the preview deletet my text, so here once again:

Hello,

I am trying to do my very first steps with the SendDataOverMQTT example. At first, everything seems to work o.k., but then I do get the following messages in the console window:

INFO | Connecting to XDK device 'XDK Device 1' in port 'COM4'...
 INFO | Connection to port 'COM4' established
 INFO | XDK DEVICE 1: This is a CC3100R device
 INFO | XDK DEVICE 1: CHIP 0x4000000
 INFO | XDK DEVICE 1: MAC 31.1.2.0.2
 INFO | XDK DEVICE 1: PHY 1.0.3.23
 INFO | XDK DEVICE 1: NWP 2.2.0.1
 INFO | XDK DEVICE 1: ROM 0x3333
 INFO | XDK DEVICE 1: HOST 1.0.1.6
 INFO | XDK DEVICE 1: WLANPersonalWPA2Connect : Connecting to XXXXXXXXX
 INFO | XDK DEVICE 1:  Connected to WPA network successfully
 INFO | XDK DEVICE 1: IP address of device  192.168.0.87
 INFO | XDK DEVICE 1:               Mask    255.255.255.0
 INFO | XDK DEVICE 1:               Gateway 192.168.0.1
 INFO | XDK DEVICE 1:               DNS     192.168.0.1
 INFO | XDK DEVICE 1: WLANPersonalWPA2Connect : Connected to WPA network successfully.
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 0
 INFO | XDK DEVICE 1: MQTT_SubsribeToTopic : Subscribing to topic: BCDS/XDK110/example/out, Qos: 0
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 8
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 14
 INFO | XDK DEVICE 1: AppMQTTSubscribeCB : #1, Incoming Message:
 INFO | XDK DEVICE 1:     Topic: BCDS/XDK110/example/out
 INFO | XDK DEVICE 1:     Payload:
 INFO | XDK DEVICE 1: """
 INFO | XDK DEVICE 1: Environmental Data -
 INFO | XDK DEVICE 1:     Humidity : 28
 INFO | XDK DEVICE 1:     Pressure : 96714
 INFO | XDK DEVICE 1:     Temperature : 23.791000ø
 INFO | XDK DEVICE 1: """
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 14
 INFO | XDK DEVICE 1: AppMQTTSubscribeCB : #2, Incoming Message:
 INFO | XDK DEVICE 1:     Topic: BCDS/XDK110/example/out
 INFO | XDK DEVICE 1:     Payload:
 INFO | XDK DEVICE 1: """
 INFO | XDK DEVICE 1: Environmental Data -
 INFO | XDK DEVICE 1:     Humidity : 28
 INFO | XDK DEVICE 1:     Pressure : 96715
 INFO | XDK DEVICE 1:     Temperature : 23.841000ø
 INFO | XDK DEVICE 1: """

.... and after some time (in this case after five incoming messages):

 INFO | XDK DEVICE 1: Environmental Data -
 INFO | XDK DEVICE 1:     Humidity : 28
 INFO | XDK DEVICE 1:     Pressure : 96721
 INFO | XDK DEVICE 1:     Temperature : 23.941000ø
 INFO | XDK DEVICE 1: """
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 4
 INFO | XDK DEVICE 1: Error in XDK110 Application package.
 INFO | XDK DEVICE 1:     Package ID: 153
 INFO | XDK DEVICE 1:     Module ID: 39
 INFO | XDK DEVICE 1:     Severity code: 2
 INFO | XDK DEVICE 1:     Error code: 120
 INFO | XDK DEVICE 1: AppControllerFire : MQTT publish failed
 INFO | XDK DEVICE 1: Error in XDK110 Application package.
 INFO | XDK DEVICE 1:     Package ID: 153
 INFO | XDK DEVICE 1:     Module ID: 39
 INFO | XDK DEVICE 1:     Severity code: 2
 INFO | XDK DEVICE 1:     Error code: 127


Maybe I should note, that my NodeRED example is also not working properly (but this could be due to bad script there). However, I am just using the "mqtt" input and connect it to the "debug" output. I believe, they are properly configured, but I am not sure. I am using QoS 0. The NodeRED output is shown in the attached picture.

Thank you for your time and help,

best regards,

Andreas

0 (0 Votes)
RE: MMQTT Example doesn`t quite start
Answer
2/10/19 6:45 PM as a reply to Andreas Vogt.

Hello,

some additional information: it seems that the MQTT publish fails as soon as I start node-red.

If the node-red is not running, the SendDataOverMQTT runs without problems.

Regards,

Andreas

0 (0 Votes)