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

MQTT Sample code is not connecting

The sample code at ncs/nrf/samples/nrf9160/mqtt_simple is not connecting. I dod not make any changes to the ode. I am using NB-IoT. LTE is connected. The link monitor, LTE is in green. The error code is ERROR: mqtt_connect -60

Kindly advice to resolve this

Parents Reply
  • Still the same error. 

    The MQTT simple sample startedLTE Link Connecting ...AT+CFUN=1OKAT+CFUN?+CFUN: 1OK+CEREG: 2,"FFFE","FFFFFFFF",7,0,0,"11100000","11100000"+CEREG: 0,"FFFE","FFFFFFFF",7,0,0,"11100000","11100000"+CEREG: 2,"C0D8","003AC006",9,0,0,"11100000","11100000"+CSCON: 1+CEREG: 5,"C0D8","003AC006",9,,,"11100000","11100000"LTE Link Connected!attempting to connect: ERROR: getaddrinfo failed -11hellomqtt_connect -47ERROR: getaddrinfo failed -11hellomqtt_connect -47ERROR: getaddrinfo failed -11hellomqtt_connect -47ERROR: getaddrinfo failed -11hellomqtt_connect -47ERROR: getaddrinfo failed -11hellomqtt_connect -47

Children
Related