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
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
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
Yes I am limited to only NB-IoT in my region, is there any other samples that run on top of UDP?