getaddrinfo failed 51

I used nrf9160 DK with sim LTE in Vietnam to run mqtt_sample. LTE link successful but I received the ERROR: getaddrinfo fail 51 and mqtt_connect 41. Please help me to solve it. Thanks for your help.

Parents
  • Hi! Are you connecting over LTE-M or NB-IoT?

    This file tells you the error message you're getting. 

    #define EAFNOSUPPORT 47 /* Addr family not supported */

    #define ENETUNREACH 51 /* Network is unreachable */

    Could you please add the following config CONFIG_MQTT_LOG_LEVEL_DBG=y to the prj.conf file, and provide a full log file by pressing this button in LTE Link Monitor and attaching the .txt file.

    Best regards,

    Heidi

Reply Children
No Data
Related