mqtt_simple sample gets error -2 in getaddrinfo

Hello,

We have developed our own module based on the nrf9160 DK and want to use it to send data to a MQTT broker. A few days ago on the dev-kit everything worked fine, now the new PCBs have arrived and we get this error in the mqtt_simple sample (as well as in our own code, but in a little different format):

 *** Booting Zephyr OS build v3.2.99-ncs1 ***                                      
[00:00:00.504,638] <inf> mqtt_simple: The MQTT simple sample started               
[00:00:00.504,699] <inf> mqtt_simple: Disabling PSM and eDRX                              
[00:00:00.505,401] <inf> mqtt_simple: LTE Link Connecting...                              
[00:00:09.277,618] <inf> mqtt_simple: LTE Link Connected!                                 
[00:00:09.277,862] <err> mqtt_simple: getaddrinfo failed: -2                              
[00:00:09.277,893] <err> mqtt_simple: Failed to initialize broker connection              
[00:00:09.277,893] <err> mqtt_simple: client_init: -10   

We just added the following config lines to use NB-IoT in the sample:

CONFIG_LTE_NETWORK_MODE_NBIOT=y
CONFIG_LTE_MODE_PREFERENCE_NBIOT=y

When using the IP address of the moquitto test server, it works perfectly fine.

*** Booting Zephyr OS build v3.2.99-ncs1 ***                                      
[00:00:00.568,603] <inf> mqtt_simple: The MQTT simple sample started                      
[00:00:00.568,664] <inf> mqtt_simple: Disabling PSM and eDRX                              
[00:00:00.569,366] <inf> mqtt_simple: LTE Link Connecting...                              
[00:00:11.186,523] <inf> mqtt_simple: LTE Link Connected!                                 
[00:00:11.186,950] <inf> mqtt_simple: IPv4 Address found 91.121.93.94                     
[00:00:11.187,438] <dbg> mqtt_simple: client_id_get: client_id = nrf-2EB11F7FD373E99C     
[00:00:11.598,114] <inf> mqtt_simple: MQTT client connected                               
[00:00:11.598,144] <inf> mqtt_simple: Subscribing to: my/subscribe/topic len 22       
[00:00:11.746,185] <inf> mqtt_simple: SUBACK packet id: 1234                              
[00:06:48.615,112] <inf> mqtt_simple: MQTT PUBLISH result=0 len=15                        
[00:06:48.615,203] <inf> mqtt_simple: Received: test with ip address                           
[00:06:48.615,783] <inf> mqtt_simple: Publishing: test with ip address                         
[00:06:48.615,814] <inf> mqtt_simple: to topic: my/publish/topic len: 20              
[00:06:48.761,352] <inf> mqtt_simple: PUBACK packet id: 39802 

Has anybody an idea? 

We are using the NCS v2.2.0 with the toolchain 2.2.0 (but tried the 2.1.0 as well, as we used with the dev-kit), modem firmware is 1.2.3

Edit: I forgot to add: when using the same code on the dev-kit, it works also fine with the IP Address and the URL. Modem firmware is here also 1.2.3 - thats the reason we choose 1.2.3 instead of 1.3.3. We also use the same SIM card to prevent any errors from the provider side (bad DNS, APN, whatever...)

Thank you!

BR Thomas

Parents Reply Children
  • It is the standard release of 1.2.3 and 1.3.3 which i downloaded from https://www.nordicsemi.com/Products/Development-hardware/nrf9160-dk/download

    I've just seen the release of the 1.3.4 - should I give it a try?

  • I have found this similar issue  nrf9160 NB-IoT DNS failure 

    Do you have any thoughts on this? I don't find any config option for PCO/ePCO in Kconfig but when trying to set it via the AT command (AT%XEPCO=0) it doesn't work either.

  • After a lot of reading we found a connection between the DNS lookup and the PDN setting of the modem - please correct me if I'm wrong.

    We found one difference on the provider side (with the same SIM used): the "PDN max BW UL" and  "PDN max BW DL" is higher. (8000000/8000000 on the devkit to 50000000/150000000)
    For my understanding this is the max. bandwidth for uplink and downlink - so it should not be the cause of the DNS problem?

  • > "PDN max BW UL" and  "PDN max BW DL" is higher. (8000000/8000000 on the devkit to 50000000/150000000)

    Do you operate both, DK & other device, at the same location?

    The "trace_with_dns.pcapng" shows in my opinion several "connects", what may explain the different ip-addresses and why the response doesn't reach the device. That may be caused by a instable network connection.

    With newer firmware & sdk, you may also log the PDN callbacks (I guess that's changing), read the modem status with "AT%XMONITOR",  "AT+CGDCONT?" and "AT+CEINFO?". That would help to see, if the PDN context is changing and what signal conditions the device has.

    With 1.2.3 you may check, what's available.

    I would remove the call to "nrf_setdnsaddr", add some of the additional AT commands, reset the device config once with "AT%XFACTORYRESET=0" and then let the device run for a couple of minutes. Sometimes a first stable connect takes 1 or 2 minutes.

  • Yes, they are both on my desk.

    By the way: with the nrf_setdnsaddr the device reboots after a while. but I think I stopped the trace short before rebooting.

    I have done a trace with the device trying to get the dns address every 10s and the AT commands described as described:

    mqtt_simple_dns_request_redo.bin

    mqtt_simple_dns_request_redo.pcapng

    and the log output:

    *** Booting Zephyr OS build v3.2.99-ncs1 ***
    [00:00:00.604,675] <inf> nrf_modem_lib_trace: Trace thread ready
    [00:00:00.606,140] <inf> nrf_modem_lib_trace: Trace level override: 2
    [00:00:00.611,389] <inf> mqtt_simple: The MQTT simple sample started
    [00:00:00.639,465] <inf> mqtt_simple: Modem response / reset: OK
    
    [00:00:00.639,465] <inf> mqtt_simple: Disabling PSM and eDRX
    [00:00:00.640,991] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 4
    OK
    
    [00:00:00.641,479] <inf> mqtt_simple: Modem response / CGDCONT: OK
    
    [00:00:00.642,028] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,0,0,255,127
    OK
    
    [00:00:00.642,059] <inf> mqtt_simple: LTE Link Connecting...
    [00:00:12.160,125] <inf> mqtt_simple: LTE Link Connected!
    [00:00:12.160,949] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"","","23205","7615",9,3,"018B7DDE",292,1401,53,41,"","11100000","11100000","01010100"
    OK
    
    [00:00:12.161,468] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:00:12.162,017] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,C,8,1,-88,16
    OK
    
    [00:00:12.162,292] <inf> mqtt_simple: getaddrinfo result: -2
    [00:00:22.163,208] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,46,"","11100000","11100000","01010100"
    OK
    
    [00:00:22.163,879] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:00:22.164,550] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,C,8,1,-87,21
    OK
    
    [00:00:22.164,886] <inf> mqtt_simple: getaddrinfo result: -2
    [00:00:32.174,163] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,42,"","11100000","11100000","01010100"
    OK
    
    [00:00:32.174,743] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:00:32.175,476] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,17
    OK
    
    [00:00:32.175,811] <inf> mqtt_simple: getaddrinfo result: -2
    [00:00:42.185,119] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,40,"","11100000","11100000","01010100"
    OK
    
    [00:00:42.185,699] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:00:42.186,248] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,15
    OK
    
    [00:00:42.186,584] <inf> mqtt_simple: getaddrinfo result: -2
    [00:00:52.195,892] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:00:52.196,441] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:00:52.196,960] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:00:52.197,326] <inf> mqtt_simple: getaddrinfo result: -2
    [00:01:02.206,604] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:01:02.207,336] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:01:02.207,916] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:01:02.208,221] <inf> mqtt_simple: getaddrinfo result: -2
    [00:01:12.217,498] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,42,"","11100000","11100000","01010100"
    OK
    
    [00:01:12.218,048] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:01:12.218,597] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,17
    OK
    
    [00:01:12.218,933] <inf> mqtt_simple: getaddrinfo result: -2
    [00:01:22.219,818] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,41,"","11100000","11100000","01010100"
    OK
    
    [00:01:22.220,520] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:01:22.221,099] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,16
    OK
    
    [00:01:22.221,405] <inf> mqtt_simple: getaddrinfo result: -2
    [00:01:32.230,743] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,42,"","11100000","11100000","01010100"
    OK
    
    [00:01:32.231,292] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:01:32.231,872] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,17
    OK
    
    [00:01:32.232,238] <inf> mqtt_simple: getaddrinfo result: -2
    [00:01:42.241,516] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,42,"","11100000","11100000","01010100"
    OK
    
    [00:01:42.242,095] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:01:42.242,614] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,17
    OK
    
    [00:01:42.242,980] <inf> mqtt_simple: getaddrinfo result: -2
    [00:01:52.252,258] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,41,"","11100000","11100000","01010100"
    OK
    
    [00:01:52.252,838] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:01:52.253,570] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,16
    OK
    
    [00:01:52.253,906] <inf> mqtt_simple: getaddrinfo result: -2
    [00:02:02.263,214] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,43,"","11100000","11100000","01010100"
    OK
    
    [00:02:02.263,824] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:02:02.264,373] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,18
    OK
    
    [00:02:02.264,739] <inf> mqtt_simple: getaddrinfo result: -2
    [00:02:12.274,047] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,38,"","11100000","11100000","01010100"
    OK
    
    [00:02:12.274,597] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:02:12.275,146] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,13
    OK
    
    [00:02:12.275,512] <inf> mqtt_simple: getaddrinfo result: -2
    [00:02:22.284,820] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,42,"","11100000","11100000","01010100"
    OK
    
    [00:02:22.285,369] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:02:22.285,919] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,17
    OK
    
    [00:02:22.286,285] <inf> mqtt_simple: getaddrinfo result: -2
    [00:02:32.295,593] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,43,"","11100000","11100000","01010100"
    OK
    
    [00:02:32.296,142] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:02:32.296,722] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,18
    OK
    
    [00:02:32.297,058] <inf> mqtt_simple: getaddrinfo result: -2
    [00:02:42.306,335] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:02:42.306,915] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:02:42.307,464] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:02:42.307,800] <inf> mqtt_simple: getaddrinfo result: -2
    [00:02:52.317,047] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:02:52.317,626] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:02:52.318,145] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:02:52.318,511] <inf> mqtt_simple: getaddrinfo result: -2
    [00:03:02.327,789] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:03:02.328,338] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:03:02.328,887] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:03:02.329,254] <inf> mqtt_simple: getaddrinfo result: -2
    [00:03:12.330,261] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:03:12.330,841] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:03:12.331,420] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:03:12.331,756] <inf> mqtt_simple: getaddrinfo result: -2
    [00:03:22.341,094] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,42,"","11100000","11100000","01010100"
    OK
    
    [00:03:22.341,644] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:03:22.342,376] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,17
    OK
    
    [00:03:22.342,712] <inf> mqtt_simple: getaddrinfo result: -2
    [00:03:32.352,050] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,43,"","11100000","11100000","01010100"
    OK
    
    [00:03:32.352,600] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:03:32.353,179] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,18
    OK
    
    [00:03:32.353,546] <inf> mqtt_simple: getaddrinfo result: -2
    [00:03:42.362,823] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,39,"","11100000","11100000","01010100"
    OK
    
    [00:03:42.363,403] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:03:42.363,922] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,14
    OK
    
    [00:03:42.364,288] <inf> mqtt_simple: getaddrinfo result: -2
    [00:03:52.373,565] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,40,"","11100000","11100000","01010100"
    OK
    
    [00:03:52.374,145] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:03:52.374,877] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,15
    OK
    
    [00:03:52.375,213] <inf> mqtt_simple: getaddrinfo result: -2
    [00:04:02.384,521] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,40,"","11100000","11100000","01010100"
    OK
    
    [00:04:02.385,131] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:04:02.385,681] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,15
    OK
    
    [00:04:02.386,047] <inf> mqtt_simple: getaddrinfo result: -2
    [00:04:12.395,355] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,38,"","11100000","11100000","01010100"
    OK
    
    [00:04:12.395,904] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:04:12.396,453] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,13
    OK
    
    [00:04:12.396,820] <inf> mqtt_simple: getaddrinfo result: -2
    [00:04:22.406,127] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:04:22.406,677] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:04:22.407,409] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:04:22.407,745] <inf> mqtt_simple: getaddrinfo result: -2
    [00:04:32.417,083] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,42,"","11100000","11100000","01010100"
    OK
    
    [00:04:32.417,633] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:04:32.418,182] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,17
    OK
    
    [00:04:32.418,548] <inf> mqtt_simple: getaddrinfo result: -2
    [00:04:42.427,795] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:04:42.428,375] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:04:42.428,924] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:04:42.429,260] <inf> mqtt_simple: getaddrinfo result: -2
    [00:04:52.438,507] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:04:52.439,086] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:04:52.439,605] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:04:52.439,971] <inf> mqtt_simple: getaddrinfo result: -2
    [00:05:02.440,979] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:05:02.441,558] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:05:02.442,138] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:05:02.442,474] <inf> mqtt_simple: getaddrinfo result: -2
    [00:05:12.451,812] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:05:12.452,362] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:05:12.452,911] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:05:12.453,277] <inf> mqtt_simple: getaddrinfo result: -2
    [00:05:22.462,585] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,39,"","11100000","11100000","01010100"
    OK
    
    [00:05:22.463,134] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:05:22.463,684] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,14
    OK
    
    [00:05:22.464,050] <inf> mqtt_simple: getaddrinfo result: -2
    [00:05:32.473,358] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,40,"","11100000","11100000","01010100"
    OK
    
    [00:05:32.473,907] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:05:32.474,487] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,15
    OK
    
    [00:05:32.474,853] <inf> mqtt_simple: getaddrinfo result: -2
    [00:05:42.484,130] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:05:42.484,710] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:05:42.485,229] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:05:42.485,595] <inf> mqtt_simple: getaddrinfo result: -2
    [00:05:52.494,873] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,41,"","11100000","11100000","01010100"
    OK
    
    [00:05:52.495,452] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:05:52.496,185] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,16
    OK
    
    [00:05:52.496,520] <inf> mqtt_simple: getaddrinfo result: -2
    [00:06:02.505,828] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:06:02.506,439] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:06:02.506,988] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:06:02.507,354] <inf> mqtt_simple: getaddrinfo result: -2
    [00:06:12.516,662] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:06:12.517,211] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:06:12.517,944] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:06:12.518,280] <inf> mqtt_simple: getaddrinfo result: -2
    [00:06:22.527,618] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:06:22.528,167] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:06:22.528,717] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:06:22.529,083] <inf> mqtt_simple: getaddrinfo result: -2
    [00:06:32.538,391] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,41,"","11100000","11100000","01010100"
    OK
    
    [00:06:32.538,940] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:06:32.539,489] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,16
    OK
    
    [00:06:32.539,855] <inf> mqtt_simple: getaddrinfo result: -2
    [00:06:42.549,102] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:06:42.549,682] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:06:42.550,415] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:06:42.550,750] <inf> mqtt_simple: getaddrinfo result: -2
    [00:06:52.551,788] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:06:52.552,337] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:06:52.552,947] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:06:52.553,283] <inf> mqtt_simple: getaddrinfo result: -2
    [00:07:02.562,591] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,41,"","11100000","11100000","01010100"
    OK
    
    [00:07:02.563,201] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:07:02.563,751] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,16
    OK
    
    [00:07:02.564,117] <inf> mqtt_simple: getaddrinfo result: -2
    [00:07:12.573,425] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,41,"","11100000","11100000","01010100"
    OK
    
    [00:07:12.573,974] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:07:12.574,523] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,16
    OK
    
    [00:07:12.574,890] <inf> mqtt_simple: getaddrinfo result: -2
    [00:07:22.584,197] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:07:22.584,747] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:07:22.585,479] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:07:22.585,815] <inf> mqtt_simple: getaddrinfo result: -2
    [00:07:32.595,153] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,41,"","11100000","11100000","01010100"
    OK
    
    [00:07:32.595,733] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:07:32.596,282] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,16
    OK
    
    [00:07:32.596,649] <inf> mqtt_simple: getaddrinfo result: -2
    [00:07:42.605,926] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,41,"","11100000","11100000","01010100"
    OK
    
    [00:07:42.606,506] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:07:42.607,025] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,16
    OK
    
    [00:07:42.607,391] <inf> mqtt_simple: getaddrinfo result: -2
    [00:07:52.616,668] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:07:52.617,248] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:07:52.617,980] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:07:52.618,316] <inf> mqtt_simple: getaddrinfo result: -2
    [00:08:02.627,624] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:08:02.628,234] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:08:02.628,784] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:08:02.629,150] <inf> mqtt_simple: getaddrinfo result: -2
    [00:08:12.638,458] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,40,"","11100000","11100000","01010100"
    OK
    
    [00:08:12.639,007] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:08:12.639,739] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,15
    OK
    
    [00:08:12.640,075] <inf> mqtt_simple: getaddrinfo result: -2
    [00:08:22.649,414] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,42,"","11100000","11100000","01010100"
    OK
    
    [00:08:22.649,963] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:08:22.650,512] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,17
    OK
    
    [00:08:22.650,878] <inf> mqtt_simple: getaddrinfo result: -2
    [00:08:32.660,156] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,43,"","11100000","11100000","01010100"
    OK
    
    [00:08:32.660,705] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:08:32.661,285] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,18
    OK
    
    [00:08:32.661,621] <inf> mqtt_simple: getaddrinfo result: -2
    [00:08:42.662,597] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,40,"","11100000","11100000","01010100"
    OK
    
    [00:08:42.663,177] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:08:42.663,757] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,15
    OK
    
    [00:08:42.664,093] <inf> mqtt_simple: getaddrinfo result: -2
    [00:08:52.673,370] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,42,"","11100000","11100000","01010100"
    OK
    
    [00:08:52.673,950] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:08:52.674,499] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,17
    OK
    
    [00:08:52.674,865] <inf> mqtt_simple: getaddrinfo result: -2
    [00:09:02.684,143] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,43,"","11100000","11100000","01010100"
    OK
    
    [00:09:02.684,753] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:09:02.685,302] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,18
    OK
    
    [00:09:02.685,668] <inf> mqtt_simple: getaddrinfo result: -2
    [00:09:12.694,976] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,44,"","11100000","11100000","01010100"
    OK
    
    [00:09:12.695,526] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:09:12.696,075] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,19
    OK
    
    [00:09:12.696,441] <inf> mqtt_simple: getaddrinfo result: -2
    [00:09:22.705,749] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,44,"","11100000","11100000","01010100"
    OK
    
    [00:09:22.706,298] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:09:22.706,848] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,19
    OK
    
    [00:09:22.707,214] <inf> mqtt_simple: getaddrinfo result: -2
    [00:09:32.716,522] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,55,41,"","11100000","11100000","01010100"
    OK
    
    [00:09:32.717,071] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:09:32.717,651] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-86,16
    OK
    
    [00:09:32.718,017] <inf> mqtt_simple: getaddrinfo result: -2
    [00:09:42.727,294] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,42,"","11100000","11100000","01010100"
    OK
    
    [00:09:42.727,874] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:09:42.728,393] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,17
    OK
    
    [00:09:42.728,759] <inf> mqtt_simple: getaddrinfo result: -2
    [00:09:52.738,037] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,42,"","11100000","11100000","01010100"
    OK
    
    [00:09:52.738,616] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:09:52.739,349] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,17
    OK
    
    [00:09:52.739,685] <inf> mqtt_simple: getaddrinfo result: -2
    [00:10:02.749,023] <inf> mqtt_simple: Modem response / monitor: %XMONITOR: 1,"3AT","3AT","23205","7615",9,3,"018B7DDE",292,1401,54,39,"","11100000","11100000","01010100"
    OK
    
    [00:10:02.749,572] <inf> mqtt_simple: Modem response / CGDCONT: +CGDCONT: 0,"IP","m2m.drei.at","10.71.192.243",0,0
    OK
    
    [00:10:02.750,122] <inf> mqtt_simple: Modem response / CEINFO: +CEINFO: 0,1,I,8,2,-87,14
    OK
    
    [00:10:02.750,488] <inf> mqtt_simple: getaddrinfo result: -2
    [00:10:12.750,579] <err> mqtt_simple: getaddrinfo failed: -2
    [00:10:12.750,610] <err> mqtt_simple: Failed to initialize broker connection
    [00:10:12.750,640] <err> mqtt_simple: client_init: -10
    uart:~$

    I will do the same with the devkit, but the trace is not getting logged at the moment. I will upload as soon as it works...

Related