Hi,
I observed what appears to be the same issue as https://devzone.nordicsemi.com/f/nordic-q-a/51337/nrf9160-infinite-nrf_connect-blocking-behavior-post-lte-psm-wakeup/. In my use-case however, I am not using PSM and instead just switch the modem between offline (CFUN=4) and online (CFUN=1).
I'm using code copied from the mqtt_simple sample. First I switch the modem online, connect LTE, wait for the AT response indicating the connection was successful, and then I connect MQTT using the mqtt_simple code. Occasionally I will hang on the getaddrinfo call in broker_init.
I was wondering if there is any new information since the last devzone post I have linked or if there is another, safer way of initializing and connecting MQTT that won't hang.
Thanks,
Jeff