nRF Connect SDK with External GSM 7600 with nRF52840

Hi,
I am working on nRF52840. Previously I was using the nRF SDK as there was no library available for external GSM(MQTT) so I am moving to nRF Connect SDK. I have successfully set up the environment now I want to communicate nRF52840 with external GSM(SIMCOM 7600G) and send data over the MQTT library. How can I start? Is there any tutorial? 

Parents
  • Hi,

     

    There's no direct tutorial to do exactly what you need, but in general you should start to build your application piece-by-piece, and verify each step along the way, to ensure that the different blocks/modules are working.

    Given the other thread that you have open:   FATAL ERROR: command exited with status 1 

    I think that this is a good starting point, to get the communication with the external device, then add networking capabilities to this sample.

     

    To get the basics up-and-running, I can strongly recommending doing the nordic developer academy courses:

    https://academy.nordicsemi.com/

     

    Kind regards,

    Håkon

  • Hi,

    Can I use this example to connect and send data to the MQTT server?

    MQTT Publisher

  • Muqarrab said:
    That is defined in autoconf.h if I add this file I am getting following errors.

    autoconf is automatically generated based on your local configuration, and shall newer be directly included by your source code. 

    Each time you add a configuration, this shall be done in your project configuration, ie. the my_application/prj.conf file.

     

    I would recommend that you get to know the fundamentals of NCS, by looking at our nordic academy:

    https://academy.nordicsemi.com/

     

    Kind regards,

    Håkon

  • Hi  
    The First GSM_Moodem test code was working fine but now getting error for both examples

  • Can you please post your full log?

    Kind regards,

    Håkon

  • Yes here is the main file.

    /*
     * Copyright (c) 2017 Intel Corporation
     *
     * SPDX-License-Identifier: Apache-2.0
     */
    
    #include <zephyr/logging/log.h>
    LOG_MODULE_REGISTER(net_mqtt_publisher_sample, LOG_LEVEL_DBG);
    
    #include <zephyr/zephyr.h>
    #include <zephyr/net/socket.h>
    #include <zephyr/net/mqtt.h>
    #include <zephyr/random/rand32.h>
    
    #include <string.h>
    #include <errno.h>
    
    #include "config.h"
    
    
    /////////////////////////////////////////////////////////////////// GSM
    
    #include <zephyr/zephyr.h>
    #include <zephyr/sys/printk.h>
    #include <zephyr/shell/shell.h>
    #include <zephyr/drivers/uart.h>
    #include <zephyr/net/net_mgmt.h>
    #include <zephyr/net/net_event.h>
    #include <zephyr/net/net_conn_mgr.h>
    #include <zephyr/drivers/modem/gsm_ppp.h>
    #include <zephyr/devicetree.h>
    
    #include <zephyr/logging/log.h>
    // LOG_MODULE_REGISTER(sample_gsm_ppp, LOG_LEVEL_DBG);
    
    #define GSM_MODEM_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_gsm_ppp)
    #define UART_NODE DT_BUS(GSM_MODEM_NODE)
    
    static const struct device *gsm_dev;
    static struct net_mgmt_event_callback mgmt_cb;
    static bool starting = IS_ENABLED(CONFIG_GSM_PPP_AUTOSTART);
    
    
    /////////////////////////////////////////////////////////////////// GSM
    
    
    
    
    #if defined(CONFIG_USERSPACE)
    #include <zephyr/app_memory/app_memdomain.h>
    K_APPMEM_PARTITION_DEFINE(app_partition);
    struct k_mem_domain app_domain;
    #define APP_BMEM K_APP_BMEM(app_partition)
    #define APP_DMEM K_APP_DMEM(app_partition)
    #else
    #define APP_BMEM
    #define APP_DMEM
    #endif
    
    /* Buffers for MQTT client. */
    static APP_BMEM uint8_t rx_buffer[APP_MQTT_BUFFER_SIZE];
    static APP_BMEM uint8_t tx_buffer[APP_MQTT_BUFFER_SIZE];
    
    #if defined(CONFIG_MQTT_LIB_WEBSOCKET)
    /* Making RX buffer large enough that the full IPv6 packet can fit into it */
    #define MQTT_LIB_WEBSOCKET_RECV_BUF_LEN 1280
    
    /* Websocket needs temporary buffer to store partial packets */
    static APP_BMEM uint8_t temp_ws_rx_buf[MQTT_LIB_WEBSOCKET_RECV_BUF_LEN];
    #endif
    
    /* The mqtt client struct */
    static APP_BMEM struct mqtt_client client_ctx;
    
    /* MQTT Broker details. */
    static APP_BMEM struct sockaddr_storage broker;
    
    #if defined(CONFIG_SOCKS)
    static APP_BMEM struct sockaddr socks5_proxy;
    #endif
    
    static APP_BMEM struct zsock_pollfd fds[1];
    static APP_BMEM int nfds;
    
    static APP_BMEM bool connected;
    
    
    
    #if defined(CONFIG_MQTT_LIB_TLS)
    
    #include "test_certs.h"
    
    #define TLS_SNI_HOSTNAME "localhost"
    #define APP_CA_CERT_TAG 1
    #define APP_PSK_TAG 2
    
    static APP_DMEM sec_tag_t m_sec_tags[] = {
    #if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(CONFIG_NET_SOCKETS_OFFLOAD)
    		APP_CA_CERT_TAG,
    #endif
    #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
    		APP_PSK_TAG,
    #endif
    };
    
    
    
    static int tls_init(void)
    {
    	int err = -EINVAL;
    
    #if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(CONFIG_NET_SOCKETS_OFFLOAD)
    	err = tls_credential_add(APP_CA_CERT_TAG, TLS_CREDENTIAL_CA_CERTIFICATE,
    				 ca_certificate, sizeof(ca_certificate));
    	if (err < 0) {
    		LOG_ERR("Failed to register public certificate: %d", err);
    		return err;
    	}
    #endif
    
    #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
    	err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK,
    				 client_psk, sizeof(client_psk));
    	if (err < 0) {
    		LOG_ERR("Failed to register PSK: %d", err);
    		return err;
    	}
    
    	err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK_ID,
    				 client_psk_id, sizeof(client_psk_id) - 1);
    	if (err < 0) {
    		LOG_ERR("Failed to register PSK ID: %d", err);
    	}
    #endif
    
    	return err;
    }
    
    #endif /* CONFIG_MQTT_LIB_TLS */
    /////////////////////////////////////////////////////////////////// GSM
    static int cmd_sample_modem_suspend(const struct shell *shell,
    				    size_t argc, char *argv[])
    {
    	ARG_UNUSED(argc);
    	ARG_UNUSED(argv);
    
    	if (!starting) {
    		shell_fprintf(shell, SHELL_NORMAL, "Modem is already stopped.\n");
    		return -ENOEXEC;
    	}
    
    	gsm_ppp_stop(gsm_dev);
    	starting = false;
    
    	return 0;
    }
    
    static int cmd_sample_modem_resume(const struct shell *shell,
    				   size_t argc, char *argv[])
    {
    	ARG_UNUSED(argc);
    	ARG_UNUSED(argv);
    
    	if (starting) {
    		shell_fprintf(shell, SHELL_NORMAL, "Modem is already started.\n");
    		return -ENOEXEC;
    	}
    
    	gsm_ppp_start(gsm_dev);
    	starting = true;
    
    	return 0;
    }
    
    SHELL_STATIC_SUBCMD_SET_CREATE(sample_commands,
    	SHELL_CMD(resume, NULL,
    		  "Resume the modem\n",
    		  cmd_sample_modem_resume),
    	SHELL_CMD(suspend, NULL,
    		  "Suspend the modem\n",
    		  cmd_sample_modem_suspend),
    	SHELL_SUBCMD_SET_END
    );
    
    SHELL_CMD_REGISTER(sample, &sample_commands,
    		   "Sample application commands", NULL);
    
    
    static void event_handler(struct net_mgmt_event_callback *cb,
    			  uint32_t mgmt_event, struct net_if *iface)
    {
    	ARG_UNUSED(cb);
    	ARG_UNUSED(iface);
    
    	if ((mgmt_event & (NET_EVENT_L4_CONNECTED
    			   | NET_EVENT_L4_DISCONNECTED)) != mgmt_event) {
    		return;
    	}
    
    	if (mgmt_event == NET_EVENT_L4_CONNECTED) {
    		LOG_INF("Network connected");
    		return;
    	}
    
    	if (mgmt_event == NET_EVENT_L4_DISCONNECTED) {
    		LOG_INF("Network disconnected");
    		return;
    	}
    }
    
    static void modem_on_cb(const struct device *dev, void *user_data)
    {
    	ARG_UNUSED(dev);
    	ARG_UNUSED(user_data);
    
    	LOG_INF("GSM modem on callback fired");
    }
    
    static void modem_off_cb(const struct device *dev, void *user_data)
    {
    	ARG_UNUSED(dev);
    	ARG_UNUSED(user_data);
    
    	LOG_INF("GSM modem off callback fired");
    }
    
    /////////////////////////////////////////////////////////////////// GSM
    
    static void prepare_fds(struct mqtt_client *client)
    {
    	if (client->transport.type == MQTT_TRANSPORT_NON_SECURE) {
    		fds[0].fd = client->transport.tcp.sock;
    	}
    #if defined(CONFIG_MQTT_LIB_TLS)
    	else if (client->transport.type == MQTT_TRANSPORT_SECURE) {
    		fds[0].fd = client->transport.tls.sock;
    	}
    #endif
    
    	fds[0].events = ZSOCK_POLLIN;
    	nfds = 1;
    }
    
    
    
    
    
    
    
    static void clear_fds(void)
    {
    	nfds = 0;
    }
    
    static int wait(int timeout)
    {
    	int ret = 0;
    
    	if (nfds > 0) {
    		ret = zsock_poll(fds, nfds, timeout);
    		if (ret < 0) {
    			LOG_ERR("poll error: %d", errno);
    		}
    	}
    
    	return ret;
    }
    
    void mqtt_evt_handler(struct mqtt_client *const client,
    		      const struct mqtt_evt *evt)
    {
    	int err;
    
    	switch (evt->type) {
    	case MQTT_EVT_CONNACK:
    		if (evt->result != 0) {
    			LOG_ERR("MQTT connect failed %d", evt->result);
    			break;
    		}
    
    		connected = true;
    		LOG_INF("MQTT client connected!");
    
    		break;
    
    	case MQTT_EVT_DISCONNECT:
    		LOG_INF("MQTT client disconnected %d", evt->result);
    
    		connected = false;
    		clear_fds();
    
    		break;
    
    	case MQTT_EVT_PUBACK:
    		if (evt->result != 0) {
    			LOG_ERR("MQTT PUBACK error %d", evt->result);
    			break;
    		}
    
    		LOG_INF("PUBACK packet id: %u", evt->param.puback.message_id);
    
    		break;
    
    	case MQTT_EVT_PUBREC:
    		if (evt->result != 0) {
    			LOG_ERR("MQTT PUBREC error %d", evt->result);
    			break;
    		}
    
    		LOG_INF("PUBREC packet id: %u", evt->param.pubrec.message_id);
    
    		const struct mqtt_pubrel_param rel_param = {
    			.message_id = evt->param.pubrec.message_id
    		};
    
    		err = mqtt_publish_qos2_release(client, &rel_param);
    		if (err != 0) {
    			LOG_ERR("Failed to send MQTT PUBREL: %d", err);
    		}
    
    		break;
    
    	case MQTT_EVT_PUBCOMP:
    		if (evt->result != 0) {
    			LOG_ERR("MQTT PUBCOMP error %d", evt->result);
    			break;
    		}
    
    		LOG_INF("PUBCOMP packet id: %u",
    			evt->param.pubcomp.message_id);
    
    		break;
    
    	case MQTT_EVT_PINGRESP:
    		LOG_INF("PINGRESP packet");
    		break;
    
    	default:
    		break;
    	}
    }
    
    static char *get_mqtt_payload(enum mqtt_qos qos)
    {
    #if APP_BLUEMIX_TOPIC
    	static APP_BMEM char payload[30];
    
    	snprintk(payload, sizeof(payload), "{d:{temperature:%d}}",
    		 (uint8_t)sys_rand32_get());
    #else
    	static APP_DMEM char payload[] = "DOORS:OPEN_QoSx";
    
    	payload[strlen(payload) - 1] = '0' + qos;
    #endif
    
    	return payload;
    }
    
    static char *get_mqtt_topic(void)
    {
    #if APP_BLUEMIX_TOPIC
    	return "iot-2/type/"BLUEMIX_DEVTYPE"/id/"BLUEMIX_DEVID
    	       "/evt/"BLUEMIX_EVENT"/fmt/"BLUEMIX_FORMAT;
    #else
    	return "sensors";
    #endif
    }
    
    static int publish(struct mqtt_client *client, enum mqtt_qos qos)
    {
    	struct mqtt_publish_param param;
    
    	param.message.topic.qos = qos;
    	param.message.topic.topic.utf8 = (uint8_t *)get_mqtt_topic();
    	param.message.topic.topic.size =
    			strlen(param.message.topic.topic.utf8);
    	param.message.payload.data = get_mqtt_payload(qos);
    	param.message.payload.len =
    			strlen(param.message.payload.data);
    	param.message_id = sys_rand32_get();
    	param.dup_flag = 0U;
    	param.retain_flag = 0U;
    
    	return mqtt_publish(client, &param);
    }
    
    #define RC_STR(rc) ((rc) == 0 ? "OK" : "ERROR")
    
    #define PRINT_RESULT(func, rc) \
    	LOG_INF("%s: %d <%s>", (func), rc, RC_STR(rc))
    
    static void broker_init(void)
    {
    #if defined(CONFIG_NET_IPV6)
    	struct sockaddr_in6 *broker6 = (struct sockaddr_in6 *)&broker;
    
    	broker6->sin6_family = AF_INET6;
    	broker6->sin6_port = htons(SERVER_PORT);
    	zsock_inet_pton(AF_INET6, SERVER_ADDR, &broker6->sin6_addr);
    
    #if defined(CONFIG_SOCKS)
    	struct sockaddr_in6 *proxy6 = (struct sockaddr_in6 *)&socks5_proxy;
    
    	proxy6->sin6_family = AF_INET6;
    	proxy6->sin6_port = htons(SOCKS5_PROXY_PORT);
    	zsock_inet_pton(AF_INET6, SOCKS5_PROXY_ADDR, &proxy6->sin6_addr);
    #endif
    #else
    	struct sockaddr_in *broker4 = (struct sockaddr_in *)&broker;
    
    	broker4->sin_family = AF_INET;
    	broker4->sin_port = htons(SERVER_PORT);
    	zsock_inet_pton(AF_INET, SERVER_ADDR, &broker4->sin_addr);
    #if defined(CONFIG_SOCKS)
    	struct sockaddr_in *proxy4 = (struct sockaddr_in *)&socks5_proxy;
    
    	proxy4->sin_family = AF_INET;
    	proxy4->sin_port = htons(SOCKS5_PROXY_PORT);
    	zsock_inet_pton(AF_INET, SOCKS5_PROXY_ADDR, &proxy4->sin_addr);
    #endif
    #endif
    }
    
    static void client_init(struct mqtt_client *client)
    {
    
    struct mqtt_utf8 pass,name;
    
    pass.size = strlen("dnTdLm8qndcg");
    pass.utf8 = (uint8_t*)"dnTdLm8qndcg";
    name.size = strlen("nnrhlnnv");
    name.utf8 = (uint8_t *)"nnrhlnnv";
    
    
    	mqtt_client_init(client);
    
    	broker_init();
    
    	/* MQTT client configuration */
    	client->broker = (uint8_t*)"driver.cloudmqtt.com"; //&broker;
    	client->evt_cb = mqtt_evt_handler;
    	client->client_id.utf8 = (uint8_t *)MQTT_CLIENTID;
    	client->client_id.size = strlen(MQTT_CLIENTID);
    	client->password = &pass;
    	client->user_name = &name;
    
    	// client->password = "dnTdLm8qndcg";
    	// client->user_name = "nnrhlnnv";
    	client->protocol_version = MQTT_VERSION_3_1_1;
    
    	/* MQTT buffers configuration */
    	client->rx_buf = rx_buffer;
    	client->rx_buf_size = sizeof(rx_buffer);
    	client->tx_buf = tx_buffer;
    	client->tx_buf_size = sizeof(tx_buffer);
    
    	/* MQTT transport configuration */
    #if defined(CONFIG_MQTT_LIB_TLS)
    #if defined(CONFIG_MQTT_LIB_WEBSOCKET)
    	client->transport.type = MQTT_TRANSPORT_SECURE_WEBSOCKET;
    #else
    	client->transport.type = MQTT_TRANSPORT_SECURE;
    #endif
    
    	struct mqtt_sec_config *tls_config = &client->transport.tls.config;
    
    	tls_config->peer_verify = TLS_PEER_VERIFY_REQUIRED;
    	tls_config->cipher_list = NULL;
    	tls_config->sec_tag_list = m_sec_tags;
    	tls_config->sec_tag_count = ARRAY_SIZE(m_sec_tags);
    #if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(CONFIG_NET_SOCKETS_OFFLOAD)
    	tls_config->hostname = TLS_SNI_HOSTNAME;
    #else
    	tls_config->hostname = NULL;
    #endif
    
    #else
    #if defined(CONFIG_MQTT_LIB_WEBSOCKET)
    	client->transport.type = MQTT_TRANSPORT_NON_SECURE_WEBSOCKET;
    #else
    	client->transport.type = MQTT_TRANSPORT_NON_SECURE;
    #endif
    #endif
    
    #if defined(CONFIG_MQTT_LIB_WEBSOCKET)
    	client->transport.websocket.config.host = SERVER_ADDR;
    	client->transport.websocket.config.url = "/mqtt";
    	client->transport.websocket.config.tmp_buf = temp_ws_rx_buf;
    	client->transport.websocket.config.tmp_buf_len =
    						sizeof(temp_ws_rx_buf);
    	client->transport.websocket.timeout = 5 * MSEC_PER_SEC;
    #endif
    
    #if defined(CONFIG_SOCKS)
    	mqtt_client_set_proxy(client, &socks5_proxy,
    			      socks5_proxy.sa_family == AF_INET ?
    			      sizeof(struct sockaddr_in) :
    			      sizeof(struct sockaddr_in6));
    #endif
    }
    
    /* In this routine we block until the connected variable is 1 */
    static int try_to_connect(struct mqtt_client *client)
    {
    	int rc, i = 0;
    
    	while (i++ < APP_CONNECT_TRIES && !connected) {
    
    		client_init(client);
    
    		rc = mqtt_connect(client);
    		if (rc != 0) {
    			PRINT_RESULT("mqtt_connect", rc);
    			k_sleep(K_MSEC(APP_SLEEP_MSECS));
    			continue;
    		}
    
    		prepare_fds(client);
    
    		if (wait(APP_CONNECT_TIMEOUT_MS)) {
    			mqtt_input(client);
    		}
    
    		if (!connected) {
    			mqtt_abort(client);
    		}
    	}
    
    	if (connected) {
    		return 0;
    	}
    
    	return -EINVAL;
    }
    
    static int process_mqtt_and_sleep(struct mqtt_client *client, int timeout)
    {
    	int64_t remaining = timeout;
    	int64_t start_time = k_uptime_get();
    	int rc;
    
    	while (remaining > 0 && connected) {
    		if (wait(remaining)) {
    			rc = mqtt_input(client);
    			if (rc != 0) {
    				PRINT_RESULT("mqtt_input", rc);
    				return rc;
    			}
    		}
    
    		rc = mqtt_live(client);
    		if (rc != 0 && rc != -EAGAIN) {
    			PRINT_RESULT("mqtt_live", rc);
    			return rc;
    		} else if (rc == 0) {
    			rc = mqtt_input(client);
    			if (rc != 0) {
    				PRINT_RESULT("mqtt_input", rc);
    				return rc;
    			}
    		}
    
    		remaining = timeout + start_time - k_uptime_get();
    	}
    
    	return 0;
    }
    
    #define SUCCESS_OR_EXIT(rc) { if (rc != 0) { return 1; } }
    #define SUCCESS_OR_BREAK(rc) { if (rc != 0) { break; } }
    
    static int publisher(void)
    {
    	int i, rc, r = 0;
    
    	LOG_INF("attempting to connect: ");
    	rc = try_to_connect(&client_ctx);
    	PRINT_RESULT("try_to_connect", rc);
    	SUCCESS_OR_EXIT(rc);
    
    	i = 0;
    	while (i++ < CONFIG_NET_SAMPLE_APP_MAX_ITERATIONS && connected) {
    		r = -1;
    
    		rc = mqtt_ping(&client_ctx);
    		PRINT_RESULT("mqtt_ping", rc);
    		SUCCESS_OR_BREAK(rc);
    
    		rc = process_mqtt_and_sleep(&client_ctx, APP_SLEEP_MSECS);
    		SUCCESS_OR_BREAK(rc);
    
    		rc = publish(&client_ctx, MQTT_QOS_0_AT_MOST_ONCE);
    		PRINT_RESULT("mqtt_publish", rc);
    		SUCCESS_OR_BREAK(rc);
    
    		rc = process_mqtt_and_sleep(&client_ctx, APP_SLEEP_MSECS);
    		SUCCESS_OR_BREAK(rc);
    
    		rc = publish(&client_ctx, MQTT_QOS_1_AT_LEAST_ONCE);
    		PRINT_RESULT("mqtt_publish", rc);
    		SUCCESS_OR_BREAK(rc);
    
    		rc = process_mqtt_and_sleep(&client_ctx, APP_SLEEP_MSECS);
    		SUCCESS_OR_BREAK(rc);
    
    		rc = publish(&client_ctx, MQTT_QOS_2_EXACTLY_ONCE);
    		PRINT_RESULT("mqtt_publish", rc);
    		SUCCESS_OR_BREAK(rc);
    
    		rc = process_mqtt_and_sleep(&client_ctx, APP_SLEEP_MSECS);
    		SUCCESS_OR_BREAK(rc);
    
    		r = 0;
    	}
    
    	rc = mqtt_disconnect(&client_ctx);
    	PRINT_RESULT("mqtt_disconnect", rc);
    
    	LOG_INF("Bye!");
    
    	return r;
    }
    
    static int start_app(void)
    {
    	int r = 0, i = 0;
    
    	while (!CONFIG_NET_SAMPLE_APP_MAX_CONNECTIONS ||
    	       i++ < CONFIG_NET_SAMPLE_APP_MAX_CONNECTIONS) {
    		r = publisher();
    
    		if (!CONFIG_NET_SAMPLE_APP_MAX_CONNECTIONS) {
    			k_sleep(K_MSEC(5000));
    		}
    	}
    
    	return r;
    }
    
    #if defined(CONFIG_USERSPACE)
    #define STACK_SIZE 2048
    
    #if IS_ENABLED(CONFIG_NET_TC_THREAD_COOPERATIVE)
    #define THREAD_PRIORITY K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1)
    #else
    #define THREAD_PRIORITY K_PRIO_PREEMPT(8)
    #endif
    
    K_THREAD_DEFINE(app_thread, STACK_SIZE,
    		start_app, NULL, NULL, NULL,
    		THREAD_PRIORITY, K_USER, -1);
    
    static K_HEAP_DEFINE(app_mem_pool, 1024 * 2);
    #endif
    
    void main(void)
    {
    
    ////////////////////////////////////////////////////////////////////////////// GSM
    
    	const struct device *uart_dev = DEVICE_DT_GET(UART_NODE);
    	gsm_dev = DEVICE_DT_GET(GSM_MODEM_NODE);
    
    	/* Optional register modem power callbacks */
    	gsm_ppp_register_modem_power_callback(gsm_dev, modem_on_cb, modem_off_cb, NULL);
    
    	LOG_INF("Board '%s' APN '%s' UART '%s' device %p (%s)",
    		CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
    		uart_dev->name, uart_dev, gsm_dev->name);
    
    	net_mgmt_init_event_callback(&mgmt_cb, event_handler,
    				     NET_EVENT_L4_CONNECTED |
    				     NET_EVENT_L4_DISCONNECTED);
    	net_mgmt_add_event_callback(&mgmt_cb);
    
    ////////////////////////////////////////////////////////////////////////////// GSM
    #if defined(CONFIG_MQTT_LIB_TLS)
    	int rc;
    
    	rc = tls_init();
    	PRINT_RESULT("tls_init", rc);
    #endif
    
    #if defined(CONFIG_USERSPACE)
    	int ret;
    
    	struct k_mem_partition *parts[] = {
    #if Z_LIBC_PARTITION_EXISTS
    		&z_libc_partition,
    #endif
    		&app_partition
    	};
    
    	ret = k_mem_domain_init(&app_domain, ARRAY_SIZE(parts), parts);
    	__ASSERT(ret == 0, "k_mem_domain_init() failed %d", ret);
    	ARG_UNUSED(ret);
    
    	k_mem_domain_add_thread(&app_domain, app_thread);
    	k_thread_heap_assign(app_thread, &app_mem_pool);
    
    	k_thread_start(app_thread);
    	k_thread_join(app_thread, K_FOREVER);
    #else
    	exit(start_app());
    #endif
    
    
    
    }
    



    and here is the log file.

    Connected via Serial Port with settings COM14 115200 8n1 rtscts:off
    
    *** Booting Zephyr OS build v3.1.99-ncs1-1  ***
    
    
    [00:00:30.256,774] <err> net_config: Timeout while waiting network interface
    [00:00:30.256,805] <err> net_config: Network initialization failed (-115)
    [00:00:32.255,371] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:32.255,615] <inf> net_mqtt_publisher_sample: Board 'nrf52840dk_nrf52840' APN 'internet' UART 'uart@40028000' device 0x30d88 (gsm-modem)
    [00:00:32.255,615] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:00:32.255,706] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:32.755,859] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:33.255,981] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:33.756,164] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:34.255,706] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:34.256,317] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:34.756,439] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:35.256,622] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:35.756,774] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:36.256,011] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:36.256,896] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:36.757,080] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:37.257,202] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:00:38.256,317] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:40.256,622] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:42.256,927] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:42.257,293] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:00:42.257,354] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:42.757,507] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:43.257,629] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:43.757,812] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:44.257,232] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:44.257,965] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:44.758,087] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:45.258,270] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:45.758,422] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:46.257,537] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:46.258,544] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:46.758,728] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:47.258,850] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:00:48.257,843] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:50.258,148] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:52.258,453] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:52.258,941] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:00:52.259,002] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:52.759,155] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:53.259,277] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:53.759,460] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:54.258,758] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:54.259,613] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:54.759,735] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:55.259,918] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:55.760,070] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:56.259,063] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:56.260,192] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:56.760,375] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:57.260,498] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:00:58.259,368] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:00.259,674] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:02.259,979] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:02.260,589] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:02.260,650] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:02.760,803] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:03.260,925] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:03.761,108] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:04.260,284] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:04.261,260] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:04.761,383] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:05.261,566] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:05.761,718] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:06.260,589] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:06.261,840] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:06.762,023] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:07.262,145] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:08.260,894] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:10.261,199] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:12.261,535] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:12.262,237] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:12.262,298] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:12.762,451] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:13.262,573] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:13.762,756] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:14.261,840] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:14.262,908] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:14.763,031] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:15.263,214] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:15.763,366] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:16.262,145] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:16.263,488] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:16.763,671] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:17.263,793] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:18.262,451] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:20.262,756] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:22.263,061] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:22.263,885] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:22.263,946] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:22.764,099] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:23.264,221] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:23.764,404] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:24.263,366] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:24.264,556] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:24.764,678] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:25.264,862] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:25.765,014] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:26.263,671] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:26.265,136] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:26.765,319] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:27.265,441] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:28.263,977] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:30.264,312] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:32.264,617] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:32.265,533] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:32.265,594] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:32.765,747] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:33.265,869] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:33.766,052] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:34.264,923] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:34.266,204] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:34.766,326] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:35.266,510] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:35.766,662] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:36.265,228] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:36.266,784] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:36.766,967] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:37.267,089] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:38.265,533] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:40.265,838] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:42.266,143] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:42.267,181] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:42.267,242] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:42.767,395] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:43.267,517] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:43.767,700] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:44.266,448] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:44.267,852] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:44.767,974] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:45.268,157] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:45.768,310] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:46.266,754] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:46.268,432] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:46.768,615] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:47.268,737] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:48.267,059] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:50.267,364] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:52.267,700] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:52.268,829] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:52.268,890] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:52.769,042] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:53.269,165] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:53.769,348] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:54.268,005] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:54.269,470] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:54.769,653] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:55.269,836] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:55.769,958] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:56.268,310] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:56.270,141] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:56.770,294] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:57.270,385] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:58.268,615] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:00.268,920] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:02.269,226] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:02.270,507] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:02.270,568] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:02.770,721] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:03.270,843] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:03.771,026] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:04.269,531] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:04.271,148] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:04.771,331] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:05.271,514] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:05.771,636] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:06.269,836] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:06.271,820] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:06.771,972] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:07.272,064] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:08.270,141] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:10.270,446] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:12.270,751] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:12.272,186] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:12.272,247] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:12.772,430] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:13.272,583] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:13.772,766] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:14.271,057] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:14.272,888] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:14.773,071] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:15.273,254] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:15.773,376] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:16.271,362] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:16.273,559] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:16.773,712] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:17.273,803] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:18.271,667] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:20.271,972] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:22.272,277] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:22.273,925] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:22.273,986] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:22.774,139] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:23.274,291] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:23.774,444] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:24.272,583] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:24.274,566] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:24.774,749] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:25.274,932] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:25.775,054] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:26.272,888] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:26.275,238] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:26.775,390] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:27.275,482] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:28.273,193] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:30.273,498] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:32.273,803] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:32.275,604] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:32.275,665] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:32.775,817] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:33.275,939] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:33.776,123] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:34.274,108] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:34.276,245] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:34.776,428] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:35.276,611] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:35.776,733] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:36.274,414] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:36.276,916] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:36.777,069] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:37.277,160] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:38.274,719] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:40.275,024] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:42.275,329] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:42.277,282] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:42.277,343] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:42.777,496] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:43.277,648] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:43.777,801] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:44.275,634] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:44.277,923] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:44.778,106] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:45.278,289] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:45.778,411] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:46.275,939] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:46.278,594] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:46.778,747] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:47.278,839] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:48.276,245] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:50.276,550] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:52.276,855] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:52.278,930] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:52.278,991] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:52.779,144] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:53.279,296] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:53.779,449] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:54.277,160] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:54.279,571] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:54.779,754] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:55.279,937] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:55.780,059] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:56.277,465] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:56.280,242] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:56.780,395] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:57.280,487] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:58.277,770] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:00.278,076] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:02.278,381] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:02.280,609] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:02.280,670] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:02.780,822] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:03.280,944] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:03.781,127] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:04.278,686] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:04.281,250] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:04.781,433] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:05.281,616] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:05.781,738] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:06.278,991] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:06.281,921] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:06.782,073] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:07.282,196] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:08.279,296] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:10.279,602] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:12.279,907] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:12.282,287] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:12.282,348] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:12.782,501] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:13.282,653] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:13.782,806] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:14.280,212] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:14.282,928] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:14.783,111] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:15.283,294] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:15.783,416] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:16.280,517] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:16.283,599] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:16.783,752] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:17.283,843] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:18.280,822] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:20.281,127] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:22.281,463] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:22.283,966] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:22.284,027] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:22.784,179] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:23.284,332] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:23.784,515] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:24.281,768] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:24.284,637] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:24.784,820] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:25.285,003] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:25.785,125] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:26.282,073] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:26.285,308] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:26.785,461] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:27.285,552] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:28.282,379] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:30.282,684] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:32.282,989] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:32.285,675] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:32.285,736] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:32.785,888] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:33.286,041] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:33.786,193] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:34.283,294] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:34.286,315] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:34.786,499] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:35.286,682] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:35.786,804] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:36.283,599] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:36.286,987] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:36.787,139] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:37.287,231] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:38.283,905] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:40.284,210] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:42.284,515] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:42.287,353] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:42.287,414] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:42.787,567] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:43.287,719] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:43.787,902] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:44.284,820] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:44.288,024] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:44.788,208] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:45.288,391] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:45.788,513] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:46.285,125] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:46.288,696] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:46.788,848] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:47.288,940] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:48.285,430] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:50.285,736] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:52.286,041] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:52.289,062] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:52.289,123] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:52.789,276] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:53.289,428] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:53.789,581] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:54.286,346] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:54.289,703] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:54.789,886] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:55.290,069] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:55.790,191] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:56.286,651] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:56.290,374] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:56.790,527] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:57.290,618] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:58.286,956] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:00.287,261] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:02.287,567] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:02.290,740] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:02.290,802] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:02.790,954] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:03.291,107] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:03.791,290] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:04.287,872] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:04.291,412] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:04.791,595] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:05.291,778] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:05.791,900] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:06.288,177] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:06.292,083] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:06.792,236] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:07.292,327] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:08.288,482] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:10.288,787] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:12.289,093] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:12.292,449] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:12.292,510] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:12.792,663] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:13.292,816] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:13.792,968] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:14.289,398] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:14.293,090] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:14.793,273] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:15.293,457] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:15.793,579] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:16.289,703] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:16.293,762] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:16.793,914] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:17.294,006] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:18.290,008] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:20.290,313] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:22.290,618] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:22.294,128] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:22.294,189] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:22.794,342] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:23.294,494] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:23.794,677] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:24.290,924] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:24.294,799] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:24.794,982] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:25.295,166] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:25.795,288] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:26.291,229] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:26.295,471] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:26.795,623] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:27.295,715] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:28.291,534] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:30.291,839] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:32.292,144] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:32.295,837] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:32.295,898] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:32.796,051] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:33.296,203] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:33.796,356] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:34.292,449] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:34.296,478] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:34.796,661] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:35.296,844] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:35.796,966] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:36.292,755] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:36.297,149] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:36.797,302] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:37.297,393] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:38.293,060] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:40.293,365] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:42.293,670] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:42.297,515] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:42.297,576] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:42.797,729] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:43.297,882] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:43.798,034] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:44.293,975] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:44.298,156] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:44.798,339] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:45.298,522] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:45.798,645] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:46.294,281] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:46.298,828] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:46.798,980] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:47.299,072] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:48.294,586] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:50.294,891] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:52.295,196] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:52.299,194] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:52.299,255] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:52.799,407] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:53.299,560] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:53.799,713] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:54.295,501] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:54.299,835] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:54.800,018] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:55.300,201] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:55.800,323] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:56.295,806] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:56.300,506] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:56.800,659] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:57.300,750] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:58.296,112] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:00.296,417] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:02.296,722] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:02.300,872] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:02.300,933] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:02.801,086] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:03.301,239] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:03.801,391] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:04.297,027] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:04.301,513] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:04.801,696] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:05.301,879] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:05.802,001] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:06.297,332] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:06.302,185] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:06.802,337] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:07.302,429] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:08.297,637] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:10.297,943] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:12.298,248] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:12.302,551] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:12.302,612] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:12.802,764] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:13.302,917] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:13.803,070] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:14.298,553] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:14.303,192] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:14.803,375] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:15.303,558] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:15.803,680] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:16.298,858] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:16.303,863] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:16.804,016] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:17.304,107] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:18.299,163] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:20.299,468] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:22.299,804] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:22.304,199] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:22.304,260] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:22.804,412] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:23.304,565] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:23.804,718] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:24.300,109] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:24.304,840] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:24.805,023] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:25.305,206] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:25.805,328] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:26.300,415] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:26.305,511] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:26.805,664] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:27.305,755] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:28.300,720] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:30.301,025] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:32.301,330] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:32.305,877] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:32.305,938] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:32.806,091] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:33.306,243] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:33.806,427] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:34.301,635] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:34.306,549] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:34.806,732] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:35.306,915] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:35.807,037] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:36.301,940] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:36.307,220] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:36.807,373] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:37.307,464] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:38.302,246] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:40.302,551] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:42.302,856] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:42.307,586] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:42.307,647] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:42.807,800] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:43.307,952] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:43.808,105] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:44.303,161] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:44.308,227] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:44.808,410] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:45.308,593] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:45.808,715] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:46.303,466] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:46.308,898] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:46.809,051] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:47.309,143] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:48.303,771] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:50.304,077] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:52.304,382] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:52.309,265] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:52.309,326] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:52.809,478] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:53.309,631] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:53.809,814] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:54.304,687] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:54.309,936] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:54.810,119] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:55.310,302] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:55.810,424] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:56.304,992] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:56.310,607] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:56.810,760] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:57.310,852] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:58.305,297] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    uart:~$
    [00:06:00.305,603] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:02.305,908] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:02.310,974] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:02.311,035] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:02.811,187] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:03.311,340] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:03.811,523] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:04.306,213] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:04.311,645] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:04.811,828] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:05.312,011] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:05.812,133] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:06.306,518] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:06.312,316] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:06.812,469] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:07.312,561] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:08.306,823] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:10.307,128] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:12.307,464] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:12.312,683] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:12.312,744] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:12.812,896] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:13.313,049] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:13.813,201] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:14.307,769] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:14.313,323] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:14.813,507] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:15.313,690] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:15.813,812] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:16.308,074] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:16.313,995] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:16.814,147] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:17.314,239] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:18.308,380] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:20.308,685] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:22.308,990] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:22.314,361] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:22.314,422] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:22.814,575] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:23.314,727] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:23.814,880] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:24.309,295] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:24.315,002] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:24.815,185] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:25.315,368] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:25.815,490] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:26.309,600] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:26.315,673] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:26.815,826] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:27.315,917] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:28.309,906] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:30.310,211] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:32.310,516] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:32.316,040] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:32.316,101] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:32.816,253] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:33.316,406] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:33.816,558] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:34.310,821] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:34.316,680] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:34.816,864] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:35.317,047] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:35.817,169] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:36.311,126] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:36.317,352] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:36.817,504] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:37.317,596] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:38.311,431] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    uart:~$
    uart:~$
    [00:06:40.311,737] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:42.312,042] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:42.317,718] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:42.317,779] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:42.817,932] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:43.318,084] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:43.818,237] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:44.312,347] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:44.318,359] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:44.818,542] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:45.318,725] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:45.818,847] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:46.312,652] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:46.319,030] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:46.819,183] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:47.319,274] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:48.312,957] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:50.313,262] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:52.313,568] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:52.319,396] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:52.319,458] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:52.819,610] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:53.319,763] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:53.819,915] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:54.313,873] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:54.320,037] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:54.820,220] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:55.320,404] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:55.820,526] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:56.314,178] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:56.320,709] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:56.820,861] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:57.320,953] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:58.314,483] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:00.314,788] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:02.315,093] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:02.321,075] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:07:02.321,136] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:02.821,289] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:03.321,441] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:03.821,594] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:04.315,399] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:04.321,716] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    uart:~$
    [00:07:04.821,899] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:05.322,082] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:05.822,204] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:06.315,704] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:06.322,387] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:06.822,540] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:07.322,631] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:07:08.316,009] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:10.316,314] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:12.316,619] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:12.322,723] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:07:12.322,784] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:12.822,937] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    uart:~$
    
    Disconnected


    Connected via Serial Port with settings COM14 115200 8n1 rtscts:off
    
    *** Booting Zephyr OS build v3.1.99-ncs1-1  ***
    
    
    [00:00:30.256,774] <err> net_config: Timeout while waiting network interface
    [00:00:30.256,805] <err> net_config: Network initialization failed (-115)
    [00:00:32.255,371] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:32.255,615] <inf> net_mqtt_publisher_sample: Board 'nrf52840dk_nrf52840' APN 'internet' UART 'uart@40028000' device 0x30d88 (gsm-modem)
    [00:00:32.255,615] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:00:32.255,706] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:32.755,859] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:33.255,981] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:33.756,164] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:34.255,706] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:34.256,317] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:34.756,439] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:35.256,622] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:35.756,774] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:36.256,011] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:36.256,896] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:36.757,080] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:37.257,202] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:00:38.256,317] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:40.256,622] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:42.256,927] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:42.257,293] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:00:42.257,354] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:42.757,507] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:43.257,629] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:43.757,812] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:44.257,232] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:44.257,965] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:44.758,087] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:45.258,270] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:45.758,422] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:46.257,537] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:46.258,544] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:46.758,728] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:47.258,850] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:00:48.257,843] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:50.258,148] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:52.258,453] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:52.258,941] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:00:52.259,002] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:52.759,155] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:53.259,277] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:53.759,460] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:54.258,758] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:54.259,613] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:54.759,735] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:55.259,918] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:55.760,070] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:56.259,063] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:00:56.260,192] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:56.760,375] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:00:57.260,498] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:00:58.259,368] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:00.259,674] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:02.259,979] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:02.260,589] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:02.260,650] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:02.760,803] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:03.260,925] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:03.761,108] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:04.260,284] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:04.261,260] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:04.761,383] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:05.261,566] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:05.761,718] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:06.260,589] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:06.261,840] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:06.762,023] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:07.262,145] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:08.260,894] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:10.261,199] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:12.261,535] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:12.262,237] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:12.262,298] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:12.762,451] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:13.262,573] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:13.762,756] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:14.261,840] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:14.262,908] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:14.763,031] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:15.263,214] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:15.763,366] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:16.262,145] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:16.263,488] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:16.763,671] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:17.263,793] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:18.262,451] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:20.262,756] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:22.263,061] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:22.263,885] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:22.263,946] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:22.764,099] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:23.264,221] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:23.764,404] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:24.263,366] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:24.264,556] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:24.764,678] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:25.264,862] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:25.765,014] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:26.263,671] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:26.265,136] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:26.765,319] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:27.265,441] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:28.263,977] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:30.264,312] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:32.264,617] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:32.265,533] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:32.265,594] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:32.765,747] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:33.265,869] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:33.766,052] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:34.264,923] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:34.266,204] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:34.766,326] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:35.266,510] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:35.766,662] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:36.265,228] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:36.266,784] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:36.766,967] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:37.267,089] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:38.265,533] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:40.265,838] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:42.266,143] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:42.267,181] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:42.267,242] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:42.767,395] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:43.267,517] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:43.767,700] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:44.266,448] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:44.267,852] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:44.767,974] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:45.268,157] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:45.768,310] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:46.266,754] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:46.268,432] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:46.768,615] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:47.268,737] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:48.267,059] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:50.267,364] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:52.267,700] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:52.268,829] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:01:52.268,890] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:52.769,042] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:53.269,165] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:53.769,348] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:54.268,005] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:54.269,470] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:54.769,653] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:55.269,836] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:55.769,958] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:56.268,310] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:01:56.270,141] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:56.770,294] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:01:57.270,385] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:01:58.268,615] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:00.268,920] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:02.269,226] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:02.270,507] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:02.270,568] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:02.770,721] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:03.270,843] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:03.771,026] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:04.269,531] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:04.271,148] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:04.771,331] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:05.271,514] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:05.771,636] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:06.269,836] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:06.271,820] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:06.771,972] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:07.272,064] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:08.270,141] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:10.270,446] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:12.270,751] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:12.272,186] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:12.272,247] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:12.772,430] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:13.272,583] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:13.772,766] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:14.271,057] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:14.272,888] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:14.773,071] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:15.273,254] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:15.773,376] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:16.271,362] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:16.273,559] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:16.773,712] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:17.273,803] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:18.271,667] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:20.271,972] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:22.272,277] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:22.273,925] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:22.273,986] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:22.774,139] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:23.274,291] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:23.774,444] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:24.272,583] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:24.274,566] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:24.774,749] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:25.274,932] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:25.775,054] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:26.272,888] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:26.275,238] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:26.775,390] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:27.275,482] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:28.273,193] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:30.273,498] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:32.273,803] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:32.275,604] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:32.275,665] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:32.775,817] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:33.275,939] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:33.776,123] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:34.274,108] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:34.276,245] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:34.776,428] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:35.276,611] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:35.776,733] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:36.274,414] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:36.276,916] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:36.777,069] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:37.277,160] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:38.274,719] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:40.275,024] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:42.275,329] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:42.277,282] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:42.277,343] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:42.777,496] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:43.277,648] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:43.777,801] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:44.275,634] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:44.277,923] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:44.778,106] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:45.278,289] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:45.778,411] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:46.275,939] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:46.278,594] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:46.778,747] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:47.278,839] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:48.276,245] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:50.276,550] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:52.276,855] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:52.278,930] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:02:52.278,991] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:52.779,144] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:53.279,296] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:53.779,449] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:54.277,160] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:54.279,571] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:54.779,754] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:55.279,937] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:55.780,059] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:56.277,465] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:02:56.280,242] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:56.780,395] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:02:57.280,487] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:02:58.277,770] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:00.278,076] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:02.278,381] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:02.280,609] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:02.280,670] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:02.780,822] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:03.280,944] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:03.781,127] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:04.278,686] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:04.281,250] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:04.781,433] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:05.281,616] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:05.781,738] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:06.278,991] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:06.281,921] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:06.782,073] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:07.282,196] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:08.279,296] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:10.279,602] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:12.279,907] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:12.282,287] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:12.282,348] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:12.782,501] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:13.282,653] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:13.782,806] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:14.280,212] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:14.282,928] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:14.783,111] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:15.283,294] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:15.783,416] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:16.280,517] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:16.283,599] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:16.783,752] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:17.283,843] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:18.280,822] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:20.281,127] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:22.281,463] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:22.283,966] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:22.284,027] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:22.784,179] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:23.284,332] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:23.784,515] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:24.281,768] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:24.284,637] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:24.784,820] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:25.285,003] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:25.785,125] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:26.282,073] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:26.285,308] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:26.785,461] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:27.285,552] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:28.282,379] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:30.282,684] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:32.282,989] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:32.285,675] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:32.285,736] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:32.785,888] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:33.286,041] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:33.786,193] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:34.283,294] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:34.286,315] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:34.786,499] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:35.286,682] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:35.786,804] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:36.283,599] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:36.286,987] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:36.787,139] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:37.287,231] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:38.283,905] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:40.284,210] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:42.284,515] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:42.287,353] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:42.287,414] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:42.787,567] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:43.287,719] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:43.787,902] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:44.284,820] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:44.288,024] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:44.788,208] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:45.288,391] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:45.788,513] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:46.285,125] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:46.288,696] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:46.788,848] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:47.288,940] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:48.285,430] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:50.285,736] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:52.286,041] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:52.289,062] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:03:52.289,123] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:52.789,276] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:53.289,428] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:53.789,581] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:54.286,346] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:54.289,703] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:54.789,886] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:55.290,069] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:55.790,191] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:56.286,651] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:03:56.290,374] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:56.790,527] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:03:57.290,618] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:03:58.286,956] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:00.287,261] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:02.287,567] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:02.290,740] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:02.290,802] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:02.790,954] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:03.291,107] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:03.791,290] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:04.287,872] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:04.291,412] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:04.791,595] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:05.291,778] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:05.791,900] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:06.288,177] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:06.292,083] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:06.792,236] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:07.292,327] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:08.288,482] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:10.288,787] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:12.289,093] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:12.292,449] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:12.292,510] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:12.792,663] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:13.292,816] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:13.792,968] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:14.289,398] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:14.293,090] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:14.793,273] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:15.293,457] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:15.793,579] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:16.289,703] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:16.293,762] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:16.793,914] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:17.294,006] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:18.290,008] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:20.290,313] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:22.290,618] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:22.294,128] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:22.294,189] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:22.794,342] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:23.294,494] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:23.794,677] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:24.290,924] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:24.294,799] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:24.794,982] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:25.295,166] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:25.795,288] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:26.291,229] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:26.295,471] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:26.795,623] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:27.295,715] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:28.291,534] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:30.291,839] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:32.292,144] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:32.295,837] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:32.295,898] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:32.796,051] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:33.296,203] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:33.796,356] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:34.292,449] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:34.296,478] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:34.796,661] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:35.296,844] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:35.796,966] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:36.292,755] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:36.297,149] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:36.797,302] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:37.297,393] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:38.293,060] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:40.293,365] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:42.293,670] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:42.297,515] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:42.297,576] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:42.797,729] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:43.297,882] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:43.798,034] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:44.293,975] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:44.298,156] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:44.798,339] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:45.298,522] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:45.798,645] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:46.294,281] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:46.298,828] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:46.798,980] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:47.299,072] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:48.294,586] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:50.294,891] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:52.295,196] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:52.299,194] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:04:52.299,255] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:52.799,407] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:53.299,560] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:53.799,713] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:54.295,501] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:54.299,835] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:54.800,018] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:55.300,201] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:55.800,323] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:56.295,806] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:04:56.300,506] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:56.800,659] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:04:57.300,750] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:04:58.296,112] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:00.296,417] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:02.296,722] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:02.300,872] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:02.300,933] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:02.801,086] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:03.301,239] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:03.801,391] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:04.297,027] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:04.301,513] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:04.801,696] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:05.301,879] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:05.802,001] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:06.297,332] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:06.302,185] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:06.802,337] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:07.302,429] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:08.297,637] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:10.297,943] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:12.298,248] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:12.302,551] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:12.302,612] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:12.802,764] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:13.302,917] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:13.803,070] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:14.298,553] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:14.303,192] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:14.803,375] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:15.303,558] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:15.803,680] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:16.298,858] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:16.303,863] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:16.804,016] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:17.304,107] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:18.299,163] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:20.299,468] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:22.299,804] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:22.304,199] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:22.304,260] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:22.804,412] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:23.304,565] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:23.804,718] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:24.300,109] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:24.304,840] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:24.805,023] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:25.305,206] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:25.805,328] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:26.300,415] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:26.305,511] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:26.805,664] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:27.305,755] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:28.300,720] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:30.301,025] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:32.301,330] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:32.305,877] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:32.305,938] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:32.806,091] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:33.306,243] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:33.806,427] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:34.301,635] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:34.306,549] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:34.806,732] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:35.306,915] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:35.807,037] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:36.301,940] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:36.307,220] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:36.807,373] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:37.307,464] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:38.302,246] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:40.302,551] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:42.302,856] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:42.307,586] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:42.307,647] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:42.807,800] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:43.307,952] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:43.808,105] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:44.303,161] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:44.308,227] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:44.808,410] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:45.308,593] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:45.808,715] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:46.303,466] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:46.308,898] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:46.809,051] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:47.309,143] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:48.303,771] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:50.304,077] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:52.304,382] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:52.309,265] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:05:52.309,326] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:52.809,478] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:53.309,631] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:53.809,814] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:54.304,687] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:54.309,936] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:54.810,119] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:55.310,302] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:55.810,424] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:56.304,992] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:05:56.310,607] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:56.810,760] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:05:57.310,852] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:05:58.305,297] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    uart:~$
    [00:06:00.305,603] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:02.305,908] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:02.310,974] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:02.311,035] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:02.811,187] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:03.311,340] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:03.811,523] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:04.306,213] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:04.311,645] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:04.811,828] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:05.312,011] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:05.812,133] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:06.306,518] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:06.312,316] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:06.812,469] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:07.312,561] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:08.306,823] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:10.307,128] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:12.307,464] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:12.312,683] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:12.312,744] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:12.812,896] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:13.313,049] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:13.813,201] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:14.307,769] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:14.313,323] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:14.813,507] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:15.313,690] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:15.813,812] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:16.308,074] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:16.313,995] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:16.814,147] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:17.314,239] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:18.308,380] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:20.308,685] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:22.308,990] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:22.314,361] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:22.314,422] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:22.814,575] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:23.314,727] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:23.814,880] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:24.309,295] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:24.315,002] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:24.815,185] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:25.315,368] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:25.815,490] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:26.309,600] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:26.315,673] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:26.815,826] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:27.315,917] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:28.309,906] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:30.310,211] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:32.310,516] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:32.316,040] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:32.316,101] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:32.816,253] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:33.316,406] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:33.816,558] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:34.310,821] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:34.316,680] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:34.816,864] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:35.317,047] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:35.817,169] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:36.311,126] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:36.317,352] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:36.817,504] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:37.317,596] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:38.311,431] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    uart:~$
    uart:~$
    [00:06:40.311,737] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:42.312,042] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:42.317,718] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:42.317,779] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:42.817,932] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:43.318,084] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:43.818,237] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:44.312,347] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:44.318,359] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:44.818,542] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:45.318,725] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:45.818,847] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:46.312,652] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:46.319,030] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:46.819,183] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:47.319,274] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:48.312,957] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:50.313,262] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:52.313,568] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:52.319,396] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:06:52.319,458] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:52.819,610] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:53.319,763] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:53.819,915] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:54.313,873] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:54.320,037] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:54.820,220] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:55.320,404] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:55.820,526] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:56.314,178] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:06:56.320,709] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:56.820,861] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:06:57.320,953] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:06:58.314,483] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:00.314,788] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:02.315,093] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:02.321,075] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:07:02.321,136] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:02.821,289] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:03.321,441] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:03.821,594] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:04.315,399] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:04.321,716] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    uart:~$
    [00:07:04.821,899] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:05.322,082] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:05.822,204] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:06.315,704] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:06.322,387] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:06.822,540] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:07.322,631] <inf> net_mqtt_publisher_sample: try_to_connect: -22 <ERROR>
    [00:07:08.316,009] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:10.316,314] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:12.316,619] <inf> net_mqtt_publisher_sample: GSM modem on callback fired
    [00:07:12.322,723] <inf> net_mqtt_publisher_sample: attempting to connect:
    [00:07:12.322,784] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    [00:07:12.822,937] <inf> net_mqtt_publisher_sample: mqtt_connect: -106 <ERROR>
    uart:~$
    
    Disconnected


  • The communication between the nRF and your modem is up and running, ie. the uart interface. You need to verify how to get your modem configured, which is a task that you have to investigate.

    Try contacting the manufacturer and ask how to get started with your specified modem and how to debug the connection.

     

    Kind regards,

    Håkon

Reply Children
No Data
Related