This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Thingy91 vs NRF9160DK MQTT connect error -111

Hi,

I have a weird issue occuring when trying to connect to my MQTT server.

If i run the code on a NRF9160 DK i can connect perfectly fine to my MQTT server calling 

mqtt_connect(&client).
However if i use the same SIM card and code on a Thingy91 i get error -111 returned.
 
The LTE connection is working fine as i can do an HTTP request to google.com on both boards.. i just cant connect to MQTT server on the Thingy91 using the same code as running on the NRF9160DK.
Are there any other configuration settings needed on the THingy 91 compared to the NRF9160DK? i checked the output of the autoconf files of each build output and they look reasonably similar.
Any help would be appreciated.

Parents Reply Children
  • I think it was to do with the modem firmware version i had on my DK vs Thingy.

    and believe it was to do with the hostname verification in the MQTT sec config.

    My DK has modem version 1.2.2 and the Thingy has modem version 1.2.3.. when i disable the hostname verification by setting it to NULL then it works on the thingy. is it possible that modem version 1.2.2. doesn't actually do the hostname verification properly and that is why it worked for me on my DK?

    I will still need to fix this up and include my certificate so that i actually perform the hostname verification but for now it is working so i can test some other things.

    Consider this ticket closed

Related