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,
Are you using your own MQTT server or opensource server?
can you check the IP you gave is correct? or opensource server is available or not?
Regards,
Nikunj
I am using an opensource server, test.mosquitto.org
I have tested using MQTT.fx client and it connects to the same server
I have also tested the address and it seems to be correct
I am using an opensource server, test.mosquitto.org
I have tested using MQTT.fx client and it connects to the same server
I have also tested the address and it seems to be correct
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?