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

MQTT Connect -60 error

I've been trying to get the MQTT simple sample started however after changing the hostname to "mqtt.eclipse.org" and running the sample, it stops with this error. Please how do I fix this

Parents Reply
  • Hi,

    It looks like you are connecting to an NB-IoT network, is that correct?

    Some NB-IoT networks only support UDP traffic. If that's the case here, it might explain why MQTT doesn't work, as it uses TCP as transport. 

    If you have LTE-M coverage, you could try to switch over and see if that works. If not, you can try the coap_client sample in NCS, which runs on top of UDP, just to get a pointer to if it actually is a TCP vs UDP issue here.

    Also, you can collect trace from the modem, following this tutorial, and attach them here for further analysis.

    Best regards,

    Jan Tore

Children
Related