This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem connecting to MQTT server using MQTT simple

Hi,

I have been following this post and did all the steps instructed by , but I failed to receive a response in Tera Term in the end. I have also tried changing the hostname to "mqtt.eclipseprojects.io" as suggested by Hakon in another post, as well as another hostname called "test.mosquitto.org". All of these broker hosts didn't work as I expected.

I will show you the terminal output I got in LTE Link Monitor. 

I would be very grateful if you can help me fix this error. Slight smile 

Parents
  • Hello,

    I tried to do the MQTT Simple again using NCS v1.5.0. 

    These are the configurations: 

    This is what I got on LTE Link Monitor:

    I keep getting the same errors every time I press button 1 on my nRF9160 DK. Can you please tell me what is the reason? I just want to send data to the broker. I have also tried with "mqtt.eclipseprojects.io" and "broker.hivemq.com" but the results were the same. 

  • Hello,

    Siang said:
    I keep getting the same errors every time I press button 1 on my nRF9160 DK.

     This is a different error from the first one. This time it finds the IP address, but it looks like you are trying to send data before it is connected to the broker. You should get a connected event.

    Have you done modifications to the sample code? Could you share the code and config so I can have a look?

Reply
  • Hello,

    Siang said:
    I keep getting the same errors every time I press button 1 on my nRF9160 DK.

     This is a different error from the first one. This time it finds the IP address, but it looks like you are trying to send data before it is connected to the broker. You should get a connected event.

    Have you done modifications to the sample code? Could you share the code and config so I can have a look?

Children
Related