<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94401/nrf-connect-sdk-with-external-gsm-7600-with-nrf52840</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jan 2023 12:44:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94401/nrf-connect-sdk-with-external-gsm-7600-with-nrf52840" /><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/403578?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 12:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd1bb3a-b96d-43bd-9533-45fb24f8ca0c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Try contacting the manufacturer and ask how to get started with your specified modem&amp;nbsp;and how to debug the connection.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/403539?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 09:52:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3733b774-dbcb-4d15-9c3f-6fda208d2a02</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Yes here is the main file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2017 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(net_mqtt_publisher_sample, LOG_LEVEL_DBG);

#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/net/socket.h&amp;gt;
#include &amp;lt;zephyr/net/mqtt.h&amp;gt;
#include &amp;lt;zephyr/random/rand32.h&amp;gt;

#include &amp;lt;string.h&amp;gt;
#include &amp;lt;errno.h&amp;gt;

#include &amp;quot;config.h&amp;quot;


/////////////////////////////////////////////////////////////////// GSM

#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;
#include &amp;lt;zephyr/shell/shell.h&amp;gt;
#include &amp;lt;zephyr/drivers/uart.h&amp;gt;
#include &amp;lt;zephyr/net/net_mgmt.h&amp;gt;
#include &amp;lt;zephyr/net/net_event.h&amp;gt;
#include &amp;lt;zephyr/net/net_conn_mgr.h&amp;gt;
#include &amp;lt;zephyr/drivers/modem/gsm_ppp.h&amp;gt;
#include &amp;lt;zephyr/devicetree.h&amp;gt;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
// 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 &amp;lt;zephyr/app_memory/app_memdomain.h&amp;gt;
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 &amp;quot;test_certs.h&amp;quot;

#define TLS_SNI_HOSTNAME &amp;quot;localhost&amp;quot;
#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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register public certificate: %d&amp;quot;, 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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK: %d&amp;quot;, err);
		return err;
	}

	err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK_ID,
				 client_psk_id, sizeof(client_psk_id) - 1);
	if (err &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK ID: %d&amp;quot;, 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, &amp;quot;Modem is already stopped.\n&amp;quot;);
		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, &amp;quot;Modem is already started.\n&amp;quot;);
		return -ENOEXEC;
	}

	gsm_ppp_start(gsm_dev);
	starting = true;

	return 0;
}

SHELL_STATIC_SUBCMD_SET_CREATE(sample_commands,
	SHELL_CMD(resume, NULL,
		  &amp;quot;Resume the modem\n&amp;quot;,
		  cmd_sample_modem_resume),
	SHELL_CMD(suspend, NULL,
		  &amp;quot;Suspend the modem\n&amp;quot;,
		  cmd_sample_modem_suspend),
	SHELL_SUBCMD_SET_END
);

SHELL_CMD_REGISTER(sample, &amp;amp;sample_commands,
		   &amp;quot;Sample application commands&amp;quot;, 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 &amp;amp; (NET_EVENT_L4_CONNECTED
			   | NET_EVENT_L4_DISCONNECTED)) != mgmt_event) {
		return;
	}

	if (mgmt_event == NET_EVENT_L4_CONNECTED) {
		LOG_INF(&amp;quot;Network connected&amp;quot;);
		return;
	}

	if (mgmt_event == NET_EVENT_L4_DISCONNECTED) {
		LOG_INF(&amp;quot;Network disconnected&amp;quot;);
		return;
	}
}

static void modem_on_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem on callback fired&amp;quot;);
}

static void modem_off_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem off callback fired&amp;quot;);
}

/////////////////////////////////////////////////////////////////// GSM

static void prepare_fds(struct mqtt_client *client)
{
	if (client-&amp;gt;transport.type == MQTT_TRANSPORT_NON_SECURE) {
		fds[0].fd = client-&amp;gt;transport.tcp.sock;
	}
#if defined(CONFIG_MQTT_LIB_TLS)
	else if (client-&amp;gt;transport.type == MQTT_TRANSPORT_SECURE) {
		fds[0].fd = client-&amp;gt;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 &amp;gt; 0) {
		ret = zsock_poll(fds, nfds, timeout);
		if (ret &amp;lt; 0) {
			LOG_ERR(&amp;quot;poll error: %d&amp;quot;, errno);
		}
	}

	return ret;
}

void mqtt_evt_handler(struct mqtt_client *const client,
		      const struct mqtt_evt *evt)
{
	int err;

	switch (evt-&amp;gt;type) {
	case MQTT_EVT_CONNACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT connect failed %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		connected = true;
		LOG_INF(&amp;quot;MQTT client connected!&amp;quot;);

		break;

	case MQTT_EVT_DISCONNECT:
		LOG_INF(&amp;quot;MQTT client disconnected %d&amp;quot;, evt-&amp;gt;result);

		connected = false;
		clear_fds();

		break;

	case MQTT_EVT_PUBACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBACK error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBACK packet id: %u&amp;quot;, evt-&amp;gt;param.puback.message_id);

		break;

	case MQTT_EVT_PUBREC:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBREC error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBREC packet id: %u&amp;quot;, evt-&amp;gt;param.pubrec.message_id);

		const struct mqtt_pubrel_param rel_param = {
			.message_id = evt-&amp;gt;param.pubrec.message_id
		};

		err = mqtt_publish_qos2_release(client, &amp;amp;rel_param);
		if (err != 0) {
			LOG_ERR(&amp;quot;Failed to send MQTT PUBREL: %d&amp;quot;, err);
		}

		break;

	case MQTT_EVT_PUBCOMP:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBCOMP error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBCOMP packet id: %u&amp;quot;,
			evt-&amp;gt;param.pubcomp.message_id);

		break;

	case MQTT_EVT_PINGRESP:
		LOG_INF(&amp;quot;PINGRESP packet&amp;quot;);
		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), &amp;quot;{d:{temperature:%d}}&amp;quot;,
		 (uint8_t)sys_rand32_get());
#else
	static APP_DMEM char payload[] = &amp;quot;DOORS:OPEN_QoSx&amp;quot;;

	payload[strlen(payload) - 1] = &amp;#39;0&amp;#39; + qos;
#endif

	return payload;
}

static char *get_mqtt_topic(void)
{
#if APP_BLUEMIX_TOPIC
	return &amp;quot;iot-2/type/&amp;quot;BLUEMIX_DEVTYPE&amp;quot;/id/&amp;quot;BLUEMIX_DEVID
	       &amp;quot;/evt/&amp;quot;BLUEMIX_EVENT&amp;quot;/fmt/&amp;quot;BLUEMIX_FORMAT;
#else
	return &amp;quot;sensors&amp;quot;;
#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, &amp;amp;param);
}

#define RC_STR(rc) ((rc) == 0 ? &amp;quot;OK&amp;quot; : &amp;quot;ERROR&amp;quot;)

#define PRINT_RESULT(func, rc) \
	LOG_INF(&amp;quot;%s: %d &amp;lt;%s&amp;gt;&amp;quot;, (func), rc, RC_STR(rc))

static void broker_init(void)
{
#if defined(CONFIG_NET_IPV6)
	struct sockaddr_in6 *broker6 = (struct sockaddr_in6 *)&amp;amp;broker;

	broker6-&amp;gt;sin6_family = AF_INET6;
	broker6-&amp;gt;sin6_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET6, SERVER_ADDR, &amp;amp;broker6-&amp;gt;sin6_addr);

#if defined(CONFIG_SOCKS)
	struct sockaddr_in6 *proxy6 = (struct sockaddr_in6 *)&amp;amp;socks5_proxy;

	proxy6-&amp;gt;sin6_family = AF_INET6;
	proxy6-&amp;gt;sin6_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET6, SOCKS5_PROXY_ADDR, &amp;amp;proxy6-&amp;gt;sin6_addr);
#endif
#else
	struct sockaddr_in *broker4 = (struct sockaddr_in *)&amp;amp;broker;

	broker4-&amp;gt;sin_family = AF_INET;
	broker4-&amp;gt;sin_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET, SERVER_ADDR, &amp;amp;broker4-&amp;gt;sin_addr);
#if defined(CONFIG_SOCKS)
	struct sockaddr_in *proxy4 = (struct sockaddr_in *)&amp;amp;socks5_proxy;

	proxy4-&amp;gt;sin_family = AF_INET;
	proxy4-&amp;gt;sin_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET, SOCKS5_PROXY_ADDR, &amp;amp;proxy4-&amp;gt;sin_addr);
#endif
#endif
}

static void client_init(struct mqtt_client *client)
{

struct mqtt_utf8 pass,name;

pass.size = strlen(&amp;quot;dnTdLm8qndcg&amp;quot;);
pass.utf8 = (uint8_t*)&amp;quot;dnTdLm8qndcg&amp;quot;;
name.size = strlen(&amp;quot;nnrhlnnv&amp;quot;);
name.utf8 = (uint8_t *)&amp;quot;nnrhlnnv&amp;quot;;


	mqtt_client_init(client);

	broker_init();

	/* MQTT client configuration */
	client-&amp;gt;broker = (uint8_t*)&amp;quot;driver.cloudmqtt.com&amp;quot;; //&amp;amp;broker;
	client-&amp;gt;evt_cb = mqtt_evt_handler;
	client-&amp;gt;client_id.utf8 = (uint8_t *)MQTT_CLIENTID;
	client-&amp;gt;client_id.size = strlen(MQTT_CLIENTID);
	client-&amp;gt;password = &amp;amp;pass;
	client-&amp;gt;user_name = &amp;amp;name;

	// client-&amp;gt;password = &amp;quot;dnTdLm8qndcg&amp;quot;;
	// client-&amp;gt;user_name = &amp;quot;nnrhlnnv&amp;quot;;
	client-&amp;gt;protocol_version = MQTT_VERSION_3_1_1;

	/* MQTT buffers configuration */
	client-&amp;gt;rx_buf = rx_buffer;
	client-&amp;gt;rx_buf_size = sizeof(rx_buffer);
	client-&amp;gt;tx_buf = tx_buffer;
	client-&amp;gt;tx_buf_size = sizeof(tx_buffer);

	/* MQTT transport configuration */
#if defined(CONFIG_MQTT_LIB_TLS)
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE;
#endif

	struct mqtt_sec_config *tls_config = &amp;amp;client-&amp;gt;transport.tls.config;

	tls_config-&amp;gt;peer_verify = TLS_PEER_VERIFY_REQUIRED;
	tls_config-&amp;gt;cipher_list = NULL;
	tls_config-&amp;gt;sec_tag_list = m_sec_tags;
	tls_config-&amp;gt;sec_tag_count = ARRAY_SIZE(m_sec_tags);
#if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(CONFIG_NET_SOCKETS_OFFLOAD)
	tls_config-&amp;gt;hostname = TLS_SNI_HOSTNAME;
#else
	tls_config-&amp;gt;hostname = NULL;
#endif

#else
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE;
#endif
#endif

#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.websocket.config.host = SERVER_ADDR;
	client-&amp;gt;transport.websocket.config.url = &amp;quot;/mqtt&amp;quot;;
	client-&amp;gt;transport.websocket.config.tmp_buf = temp_ws_rx_buf;
	client-&amp;gt;transport.websocket.config.tmp_buf_len =
						sizeof(temp_ws_rx_buf);
	client-&amp;gt;transport.websocket.timeout = 5 * MSEC_PER_SEC;
#endif

#if defined(CONFIG_SOCKS)
	mqtt_client_set_proxy(client, &amp;amp;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++ &amp;lt; APP_CONNECT_TRIES &amp;amp;&amp;amp; !connected) {

		client_init(client);

		rc = mqtt_connect(client);
		if (rc != 0) {
			PRINT_RESULT(&amp;quot;mqtt_connect&amp;quot;, 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 &amp;gt; 0 &amp;amp;&amp;amp; connected) {
		if (wait(remaining)) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, rc);
				return rc;
			}
		}

		rc = mqtt_live(client);
		if (rc != 0 &amp;amp;&amp;amp; rc != -EAGAIN) {
			PRINT_RESULT(&amp;quot;mqtt_live&amp;quot;, rc);
			return rc;
		} else if (rc == 0) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, 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(&amp;quot;attempting to connect: &amp;quot;);
	rc = try_to_connect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;try_to_connect&amp;quot;, rc);
	SUCCESS_OR_EXIT(rc);

	i = 0;
	while (i++ &amp;lt; CONFIG_NET_SAMPLE_APP_MAX_ITERATIONS &amp;amp;&amp;amp; connected) {
		r = -1;

		rc = mqtt_ping(&amp;amp;client_ctx);
		PRINT_RESULT(&amp;quot;mqtt_ping&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_0_AT_MOST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_1_AT_LEAST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_2_EXACTLY_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		r = 0;
	}

	rc = mqtt_disconnect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;mqtt_disconnect&amp;quot;, rc);

	LOG_INF(&amp;quot;Bye!&amp;quot;);

	return r;
}

static int start_app(void)
{
	int r = 0, i = 0;

	while (!CONFIG_NET_SAMPLE_APP_MAX_CONNECTIONS ||
	       i++ &amp;lt; 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(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
		CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
		uart_dev-&amp;gt;name, uart_dev, gsm_dev-&amp;gt;name);

	net_mgmt_init_event_callback(&amp;amp;mgmt_cb, event_handler,
				     NET_EVENT_L4_CONNECTED |
				     NET_EVENT_L4_DISCONNECTED);
	net_mgmt_add_event_callback(&amp;amp;mgmt_cb);

////////////////////////////////////////////////////////////////////////////// GSM
#if defined(CONFIG_MQTT_LIB_TLS)
	int rc;

	rc = tls_init();
	PRINT_RESULT(&amp;quot;tls_init&amp;quot;, rc);
#endif

#if defined(CONFIG_USERSPACE)
	int ret;

	struct k_mem_partition *parts[] = {
#if Z_LIBC_PARTITION_EXISTS
		&amp;amp;z_libc_partition,
#endif
		&amp;amp;app_partition
	};

	ret = k_mem_domain_init(&amp;amp;app_domain, ARRAY_SIZE(parts), parts);
	__ASSERT(ret == 0, &amp;quot;k_mem_domain_init() failed %d&amp;quot;, ret);
	ARG_UNUSED(ret);

	k_mem_domain_add_thread(&amp;amp;app_domain, app_thread);
	k_thread_heap_assign(app_thread, &amp;amp;app_mem_pool);

	k_thread_start(app_thread);
	k_thread_join(app_thread, K_FOREVER);
#else
	exit(start_app());
#endif



}
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and here is the log file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;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] &amp;lt;err&amp;gt; net_config: Timeout while waiting network interface
[00:00:30.256,805] &amp;lt;err&amp;gt; net_config: Network initialization failed (-115)
[00:00:32.255,371] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:32.255,615] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: Board &amp;#39;nrf52840dk_nrf52840&amp;#39; APN &amp;#39;internet&amp;#39; UART &amp;#39;uart@40028000&amp;#39; device 0x30d88 (gsm-modem)
[00:00:32.255,615] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:00:32.255,706] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:32.755,859] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:33.255,981] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:33.756,164] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:34.255,706] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:34.256,317] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:34.756,439] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:35.256,622] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:35.756,774] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:36.256,011] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:36.256,896] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:36.757,080] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:37.257,202] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:00:38.256,317] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:40.256,622] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:42.256,927] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:42.257,293] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:00:42.257,354] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:42.757,507] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:43.257,629] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:43.757,812] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:44.257,232] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:44.257,965] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:44.758,087] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:45.258,270] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:45.758,422] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:46.257,537] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:46.258,544] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:46.758,728] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:47.258,850] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:00:48.257,843] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:50.258,148] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:52.258,453] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:52.258,941] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:00:52.259,002] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:52.759,155] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:53.259,277] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:53.759,460] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:54.258,758] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:54.259,613] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:54.759,735] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:55.259,918] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:55.760,070] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:56.259,063] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:00:56.260,192] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:56.760,375] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:00:57.260,498] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:00:58.259,368] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:00.259,674] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:02.259,979] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:02.260,589] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:01:02.260,650] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:02.760,803] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:03.260,925] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:03.761,108] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:04.260,284] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:04.261,260] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:04.761,383] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:05.261,566] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:05.761,718] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:06.260,589] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:06.261,840] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:06.762,023] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:07.262,145] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:01:08.260,894] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:10.261,199] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:12.261,535] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:12.262,237] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:01:12.262,298] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:12.762,451] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:13.262,573] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:13.762,756] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:14.261,840] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:14.262,908] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:14.763,031] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:15.263,214] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:15.763,366] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:16.262,145] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:16.263,488] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:16.763,671] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:17.263,793] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:01:18.262,451] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:20.262,756] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:22.263,061] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:22.263,885] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:01:22.263,946] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:22.764,099] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:23.264,221] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:23.764,404] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:24.263,366] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:24.264,556] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:24.764,678] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:25.264,862] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:25.765,014] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:26.263,671] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:26.265,136] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:26.765,319] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:27.265,441] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:01:28.263,977] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:30.264,312] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:32.264,617] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:32.265,533] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:01:32.265,594] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:32.765,747] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:33.265,869] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:33.766,052] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:34.264,923] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:34.266,204] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:34.766,326] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:35.266,510] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:35.766,662] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:36.265,228] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:36.266,784] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:36.766,967] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:37.267,089] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:01:38.265,533] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:40.265,838] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:42.266,143] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:42.267,181] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:01:42.267,242] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:42.767,395] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:43.267,517] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:43.767,700] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:44.266,448] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:44.267,852] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:44.767,974] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:45.268,157] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:45.768,310] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:46.266,754] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:46.268,432] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:46.768,615] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:47.268,737] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:01:48.267,059] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:50.267,364] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:52.267,700] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:52.268,829] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:01:52.268,890] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:52.769,042] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:53.269,165] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:53.769,348] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:54.268,005] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:54.269,470] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:54.769,653] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:55.269,836] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:55.769,958] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:56.268,310] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:01:56.270,141] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:56.770,294] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:01:57.270,385] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:01:58.268,615] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:00.268,920] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:02.269,226] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:02.270,507] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:02:02.270,568] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:02.770,721] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:03.270,843] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:03.771,026] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:04.269,531] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:04.271,148] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:04.771,331] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:05.271,514] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:05.771,636] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:06.269,836] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:06.271,820] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:06.771,972] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:07.272,064] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:02:08.270,141] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:10.270,446] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:12.270,751] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:12.272,186] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:02:12.272,247] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:12.772,430] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:13.272,583] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:13.772,766] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:14.271,057] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:14.272,888] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:14.773,071] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:15.273,254] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:15.773,376] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:16.271,362] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:16.273,559] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:16.773,712] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:17.273,803] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:02:18.271,667] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:20.271,972] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:22.272,277] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:22.273,925] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:02:22.273,986] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:22.774,139] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:23.274,291] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:23.774,444] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:24.272,583] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:24.274,566] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:24.774,749] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:25.274,932] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:25.775,054] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:26.272,888] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:26.275,238] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:26.775,390] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:27.275,482] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:02:28.273,193] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:30.273,498] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:32.273,803] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:32.275,604] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:02:32.275,665] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:32.775,817] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:33.275,939] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:33.776,123] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:34.274,108] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:34.276,245] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:34.776,428] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:35.276,611] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:35.776,733] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:36.274,414] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:36.276,916] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:36.777,069] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:37.277,160] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:02:38.274,719] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:40.275,024] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:42.275,329] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:42.277,282] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:02:42.277,343] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:42.777,496] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:43.277,648] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:43.777,801] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:44.275,634] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:44.277,923] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:44.778,106] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:45.278,289] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:45.778,411] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:46.275,939] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:46.278,594] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:46.778,747] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:47.278,839] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:02:48.276,245] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:50.276,550] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:52.276,855] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:52.278,930] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:02:52.278,991] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:52.779,144] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:53.279,296] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:53.779,449] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:54.277,160] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:54.279,571] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:54.779,754] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:55.279,937] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:55.780,059] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:56.277,465] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:02:56.280,242] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:56.780,395] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:02:57.280,487] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:02:58.277,770] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:00.278,076] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:02.278,381] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:02.280,609] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:03:02.280,670] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:02.780,822] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:03.280,944] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:03.781,127] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:04.278,686] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:04.281,250] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:04.781,433] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:05.281,616] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:05.781,738] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:06.278,991] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:06.281,921] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:06.782,073] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:07.282,196] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:03:08.279,296] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:10.279,602] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:12.279,907] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:12.282,287] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:03:12.282,348] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:12.782,501] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:13.282,653] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:13.782,806] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:14.280,212] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:14.282,928] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:14.783,111] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:15.283,294] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:15.783,416] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:16.280,517] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:16.283,599] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:16.783,752] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:17.283,843] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:03:18.280,822] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:20.281,127] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:22.281,463] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:22.283,966] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:03:22.284,027] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:22.784,179] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:23.284,332] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:23.784,515] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:24.281,768] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:24.284,637] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:24.784,820] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:25.285,003] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:25.785,125] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:26.282,073] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:26.285,308] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:26.785,461] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:27.285,552] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:03:28.282,379] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:30.282,684] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:32.282,989] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:32.285,675] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:03:32.285,736] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:32.785,888] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:33.286,041] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:33.786,193] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:34.283,294] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:34.286,315] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:34.786,499] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:35.286,682] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:35.786,804] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:36.283,599] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:36.286,987] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:36.787,139] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:37.287,231] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:03:38.283,905] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:40.284,210] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:42.284,515] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:42.287,353] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:03:42.287,414] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:42.787,567] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:43.287,719] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:43.787,902] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:44.284,820] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:44.288,024] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:44.788,208] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:45.288,391] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:45.788,513] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:46.285,125] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:46.288,696] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:46.788,848] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:47.288,940] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:03:48.285,430] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:50.285,736] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:52.286,041] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:52.289,062] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:03:52.289,123] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:52.789,276] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:53.289,428] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:53.789,581] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:54.286,346] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:54.289,703] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:54.789,886] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:55.290,069] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:55.790,191] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:56.286,651] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:03:56.290,374] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:56.790,527] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:03:57.290,618] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:03:58.286,956] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:00.287,261] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:02.287,567] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:02.290,740] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:04:02.290,802] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:02.790,954] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:03.291,107] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:03.791,290] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:04.287,872] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:04.291,412] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:04.791,595] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:05.291,778] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:05.791,900] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:06.288,177] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:06.292,083] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:06.792,236] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:07.292,327] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:04:08.288,482] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:10.288,787] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:12.289,093] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:12.292,449] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:04:12.292,510] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:12.792,663] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:13.292,816] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:13.792,968] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:14.289,398] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:14.293,090] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:14.793,273] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:15.293,457] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:15.793,579] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:16.289,703] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:16.293,762] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:16.793,914] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:17.294,006] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:04:18.290,008] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:20.290,313] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:22.290,618] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:22.294,128] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:04:22.294,189] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:22.794,342] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:23.294,494] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:23.794,677] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:24.290,924] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:24.294,799] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:24.794,982] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:25.295,166] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:25.795,288] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:26.291,229] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:26.295,471] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:26.795,623] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:27.295,715] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:04:28.291,534] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:30.291,839] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:32.292,144] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:32.295,837] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:04:32.295,898] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:32.796,051] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:33.296,203] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:33.796,356] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:34.292,449] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:34.296,478] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:34.796,661] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:35.296,844] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:35.796,966] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:36.292,755] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:36.297,149] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:36.797,302] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:37.297,393] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:04:38.293,060] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:40.293,365] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:42.293,670] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:42.297,515] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:04:42.297,576] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:42.797,729] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:43.297,882] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:43.798,034] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:44.293,975] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:44.298,156] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:44.798,339] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:45.298,522] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:45.798,645] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:46.294,281] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:46.298,828] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:46.798,980] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:47.299,072] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:04:48.294,586] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:50.294,891] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:52.295,196] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:52.299,194] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:04:52.299,255] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:52.799,407] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:53.299,560] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:53.799,713] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:54.295,501] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:54.299,835] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:54.800,018] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:55.300,201] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:55.800,323] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:56.295,806] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:04:56.300,506] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:56.800,659] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:04:57.300,750] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:04:58.296,112] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:00.296,417] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:02.296,722] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:02.300,872] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:05:02.300,933] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:02.801,086] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:03.301,239] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:03.801,391] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:04.297,027] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:04.301,513] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:04.801,696] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:05.301,879] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:05.802,001] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:06.297,332] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:06.302,185] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:06.802,337] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:07.302,429] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:05:08.297,637] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:10.297,943] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:12.298,248] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:12.302,551] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:05:12.302,612] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:12.802,764] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:13.302,917] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:13.803,070] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:14.298,553] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:14.303,192] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:14.803,375] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:15.303,558] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:15.803,680] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:16.298,858] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:16.303,863] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:16.804,016] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:17.304,107] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:05:18.299,163] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:20.299,468] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:22.299,804] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:22.304,199] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:05:22.304,260] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:22.804,412] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:23.304,565] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:23.804,718] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:24.300,109] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:24.304,840] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:24.805,023] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:25.305,206] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:25.805,328] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:26.300,415] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:26.305,511] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:26.805,664] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:27.305,755] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:05:28.300,720] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:30.301,025] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:32.301,330] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:32.305,877] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:05:32.305,938] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:32.806,091] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:33.306,243] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:33.806,427] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:34.301,635] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:34.306,549] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:34.806,732] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:35.306,915] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:35.807,037] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:36.301,940] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:36.307,220] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:36.807,373] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:37.307,464] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:05:38.302,246] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:40.302,551] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:42.302,856] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:42.307,586] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:05:42.307,647] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:42.807,800] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:43.307,952] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:43.808,105] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:44.303,161] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:44.308,227] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:44.808,410] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:45.308,593] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:45.808,715] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:46.303,466] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:46.308,898] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:46.809,051] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:47.309,143] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:05:48.303,771] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:50.304,077] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:52.304,382] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:52.309,265] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:05:52.309,326] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:52.809,478] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:53.309,631] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:53.809,814] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:54.304,687] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:54.309,936] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:54.810,119] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:55.310,302] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:55.810,424] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:56.304,992] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:05:56.310,607] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:56.810,760] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:05:57.310,852] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:05:58.305,297] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
uart:~$
[00:06:00.305,603] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:02.305,908] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:02.310,974] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:06:02.311,035] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:02.811,187] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:03.311,340] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:03.811,523] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:04.306,213] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:04.311,645] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:04.811,828] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:05.312,011] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:05.812,133] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:06.306,518] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:06.312,316] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:06.812,469] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:07.312,561] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:06:08.306,823] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:10.307,128] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:12.307,464] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:12.312,683] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:06:12.312,744] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:12.812,896] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:13.313,049] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:13.813,201] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:14.307,769] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:14.313,323] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:14.813,507] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:15.313,690] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:15.813,812] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:16.308,074] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:16.313,995] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:16.814,147] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:17.314,239] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:06:18.308,380] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:20.308,685] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:22.308,990] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:22.314,361] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:06:22.314,422] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:22.814,575] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:23.314,727] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:23.814,880] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:24.309,295] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:24.315,002] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:24.815,185] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:25.315,368] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:25.815,490] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:26.309,600] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:26.315,673] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:26.815,826] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:27.315,917] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:06:28.309,906] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:30.310,211] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:32.310,516] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:32.316,040] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:06:32.316,101] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:32.816,253] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:33.316,406] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:33.816,558] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:34.310,821] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:34.316,680] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:34.816,864] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:35.317,047] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:35.817,169] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:36.311,126] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:36.317,352] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:36.817,504] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:37.317,596] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:06:38.311,431] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
uart:~$
uart:~$
[00:06:40.311,737] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:42.312,042] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:42.317,718] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:06:42.317,779] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:42.817,932] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:43.318,084] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:43.818,237] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:44.312,347] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:44.318,359] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:44.818,542] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:45.318,725] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:45.818,847] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:46.312,652] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:46.319,030] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:46.819,183] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:47.319,274] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:06:48.312,957] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:50.313,262] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:52.313,568] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:52.319,396] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:06:52.319,458] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:52.819,610] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:53.319,763] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:53.819,915] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:54.313,873] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:54.320,037] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:54.820,220] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:55.320,404] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:55.820,526] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:56.314,178] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:06:56.320,709] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:56.820,861] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:06:57.320,953] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:06:58.314,483] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:00.314,788] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:02.315,093] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:02.321,075] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:07:02.321,136] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:02.821,289] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:03.321,441] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:03.821,594] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:04.315,399] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:04.321,716] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
uart:~$
[00:07:04.821,899] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:05.322,082] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:05.822,204] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:06.315,704] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:06.322,387] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:06.822,540] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:07.322,631] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: try_to_connect: -22 &amp;lt;ERROR&amp;gt;
[00:07:08.316,009] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:10.316,314] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:12.316,619] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: GSM modem on callback fired
[00:07:12.322,723] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: attempting to connect:
[00:07:12.322,784] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
[00:07:12.822,937] &amp;lt;inf&amp;gt; net_mqtt_publisher_sample: mqtt_connect: -106 &amp;lt;ERROR&amp;gt;
uart:~$

Disconnected&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/terminal_5F00_output_5F00_2023_2D00_01_2D00_06T09_2D00_50_2D00_50.836Z.txt"&gt;devzone.nordicsemi.com/.../terminal_5F00_output_5F00_2023_2D00_01_2D00_06T09_2D00_50_2D00_50.836Z.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/403377?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 12:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957048e1-c256-4979-b01d-3a8fa0ca5f98</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Can you please post your full log?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/403192?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2023 13:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5d318a5-d767-4f35-96c9-499fcae0eccd</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;br /&gt;The First GSM_Moodem test code was working fine but now getting error for both examples&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672838469258v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/400594?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 11:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39cd7936-bb59-44fb-81f3-6ce60edf32b5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="muqarrab_rahman"]That is defined in&amp;nbsp;&lt;strong&gt;autoconf.h&amp;nbsp;&lt;/strong&gt;if I add this file I am getting following errors.[/quote]
&lt;p&gt;autoconf is automatically generated based on your local configuration, and shall newer be directly included by your source code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Each time you add a configuration, this shall be done in your project configuration, ie. the my_application/prj.conf file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you get to know the fundamentals of NCS, by looking at our nordic academy:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/"&gt;https://academy.nordicsemi.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/400566?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 10:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335ef653-f791-4334-8f92-14b90d13505c</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;That is defined in&amp;nbsp;&lt;strong&gt;autoconf.h&amp;nbsp;&lt;/strong&gt;if I add this file I am getting following errors.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1671012657332v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;* Executing task: nRF Connect: Build: mqtt_publisher_test/build (active)&lt;/p&gt;
&lt;p&gt;Building mqtt_publisher_test&lt;br /&gt;west build --build-dir f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build f:\Development\nordicsemi\Myapps\mqtt_publisher_test&lt;/p&gt;
&lt;p&gt;[1/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_help.c.obj&lt;br /&gt;[2/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj&lt;br /&gt;[3/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_misc.c.obj&lt;br /&gt;[4/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_log_backend.c.obj&lt;br /&gt;[5/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getnameinfo.c.obj&lt;br /&gt;[6/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_history.c.obj&lt;br /&gt;[7/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj&lt;br /&gt;[8/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj&lt;br /&gt;[9/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_cmds.c.obj&lt;br /&gt;[10/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_wildcard.c.obj&lt;br /&gt;[11/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj&lt;br /&gt;[12/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj&lt;br /&gt;[13/282] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj&lt;br /&gt;[14/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj&lt;br /&gt;[15/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getaddrinfo.c.obj&lt;br /&gt;[16/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj&lt;br /&gt;[17/282] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj&lt;br /&gt;[18/282] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj&lt;br /&gt;[19/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_select.c.obj&lt;br /&gt;[20/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj&lt;br /&gt;[21/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj&lt;br /&gt;[22/282] Generating linker_zephyr_pre1.cmd&lt;br /&gt;[23/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj&lt;br /&gt;[24/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj&lt;br /&gt;[25/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj&lt;br /&gt;[26/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj&lt;br /&gt;[27/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj&lt;br /&gt;[28/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj&lt;br /&gt;[29/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj&lt;br /&gt;[30/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_ops.c.obj&lt;br /&gt;[31/282] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj&lt;br /&gt;[32/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets.c.obj&lt;br /&gt;[33/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj&lt;br /&gt;[34/282] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a&lt;br /&gt;[35/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj&lt;br /&gt;[36/282] Building C object modules/segger/CMakeFiles/modules__segger.dir/F_/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj&lt;br /&gt;[37/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj&lt;br /&gt;[38/282] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj&lt;br /&gt;[39/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_ppi.c.obj&lt;br /&gt;[40/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj&lt;br /&gt;[41/282] Linking C static library modules\segger\libmodules__segger.a&lt;br /&gt;[42/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj&lt;br /&gt;[43/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj&lt;br /&gt;[44/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj&lt;br /&gt;[45/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj&lt;br /&gt;[46/282] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a&lt;br /&gt;[47/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj&lt;br /&gt;[48/282] Building C object CMakeFiles/app.dir/src/main.c.obj&lt;br /&gt;In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:&lt;br /&gt;F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:7: warning: &amp;quot;CONFIG_BOARD&amp;quot; redefined&lt;br /&gt; 7 | #define CONFIG_BOARD &amp;quot;nrf21540dk_nrf52840&amp;quot;&lt;br /&gt; | &lt;br /&gt;In file included from &amp;lt;command-line&amp;gt;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:8: note: this is the location of the previous definition&lt;br /&gt; 8 | #define CONFIG_BOARD &amp;quot;nrf52840dk_nrf52840&amp;quot;&lt;br /&gt; | &lt;br /&gt;In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:&lt;br /&gt;F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:554: warning: &amp;quot;CONFIG_NET_MAX_ROUTERS&amp;quot; redefined&lt;br /&gt; 554 | #define CONFIG_NET_MAX_ROUTERS 1&lt;br /&gt; | &lt;br /&gt;In file included from &amp;lt;command-line&amp;gt;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:593: note: this is the location of the previous definition&lt;br /&gt; 593 | #define CONFIG_NET_MAX_ROUTERS 2&lt;br /&gt; | &lt;br /&gt;In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:&lt;br /&gt;F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:559: warning: &amp;quot;CONFIG_NET_MAX_CONN&amp;quot; redefined&lt;br /&gt; 559 | #define CONFIG_NET_MAX_CONN 4&lt;br /&gt; | &lt;br /&gt;In file included from &amp;lt;command-line&amp;gt;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:615: note: this is the location of the previous definition&lt;br /&gt; 615 | #define CONFIG_NET_MAX_CONN 8&lt;br /&gt; | &lt;br /&gt;In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:&lt;br /&gt;F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:566: warning: &amp;quot;CONFIG_NET_BUF_DATA_SIZE&amp;quot; redefined&lt;br /&gt; 566 | #define CONFIG_NET_BUF_DATA_SIZE 128&lt;br /&gt; | &lt;br /&gt;In file included from &amp;lt;command-line&amp;gt;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:622: note: this is the location of the previous definition&lt;br /&gt; 622 | #define CONFIG_NET_BUF_DATA_SIZE 256&lt;br /&gt; | &lt;br /&gt;[49/282] Linking C static library app\libapp.a&lt;br /&gt;[50/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj&lt;br /&gt;[51/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj&lt;br /&gt;[52/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj&lt;br /&gt;[53/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj&lt;br /&gt;[54/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj&lt;br /&gt;[55/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj&lt;br /&gt;[56/282] Linking C static library zephyr\libzephyr.a&lt;br /&gt;[57/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj&lt;br /&gt;[58/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj&lt;br /&gt;[59/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj&lt;br /&gt;[60/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj&lt;br /&gt;[61/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj&lt;br /&gt;[62/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj&lt;br /&gt;[63/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj&lt;br /&gt;[64/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj&lt;br /&gt;[65/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj&lt;br /&gt;[66/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj&lt;br /&gt;[67/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj&lt;br /&gt;[68/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj&lt;br /&gt;[69/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/poll.c.obj&lt;br /&gt;[70/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj&lt;br /&gt;[71/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj&lt;br /&gt;[72/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj&lt;br /&gt;[73/282] Generating linker_zephyr_pre0.cmd&lt;br /&gt;[74/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj&lt;br /&gt;[75/282] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj&lt;br /&gt;[76/282] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj&lt;br /&gt;[77/282] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj&lt;br /&gt;[78/282] Linking C static library zephyr\arch\common\libisr_tables.a&lt;br /&gt;[79/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj&lt;br /&gt;[80/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj&lt;br /&gt;[81/282] Linking C static library zephyr\arch\common\libarch__common.a&lt;br /&gt;[82/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj&lt;br /&gt;[83/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj&lt;br /&gt;[84/282] Linking C static library zephyr\kernel\libkernel.a&lt;br /&gt;[85/282] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a&lt;br /&gt;[86/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj&lt;br /&gt;[87/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj&lt;br /&gt;[88/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj&lt;br /&gt;[89/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj&lt;br /&gt;[90/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj&lt;br /&gt;[91/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj&lt;br /&gt;[92/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj&lt;br /&gt;[93/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj&lt;br /&gt;[94/282] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a&lt;br /&gt;[95/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj&lt;br /&gt;[96/282] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/power.c.obj&lt;br /&gt;[97/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj&lt;br /&gt;[98/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj&lt;br /&gt;[99/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj&lt;br /&gt;[100/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj&lt;br /&gt;[101/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj&lt;br /&gt;[102/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj&lt;br /&gt;[103/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj&lt;br /&gt;[104/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj&lt;br /&gt;[105/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj&lt;br /&gt;[106/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj&lt;br /&gt;[107/282] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj&lt;br /&gt;[108/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj&lt;br /&gt;[109/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj&lt;br /&gt;[110/282] Linking C static library zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a&lt;br /&gt;[111/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj&lt;br /&gt;[112/282] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/perror.c.obj&lt;br /&gt;[113/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj&lt;br /&gt;[114/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj&lt;br /&gt;[115/282] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj&lt;br /&gt;[116/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj&lt;br /&gt;[117/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj&lt;br /&gt;[118/282] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a&lt;br /&gt;[119/282] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a&lt;br /&gt;[120/282] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj&lt;br /&gt;[121/282] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj&lt;br /&gt;[122/282] Linking C static library zephyr\lib\posix\liblib__posix.a&lt;br /&gt;[123/282] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj&lt;br /&gt;[124/282] Linking C static library zephyr\subsys\net\libsubsys__net.a&lt;br /&gt;[125/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj&lt;br /&gt;[126/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj&lt;br /&gt;[127/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj&lt;br /&gt;[128/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj&lt;br /&gt;[129/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj&lt;br /&gt;[130/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj&lt;br /&gt;[131/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj&lt;br /&gt;[132/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj&lt;br /&gt;[133/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj&lt;br /&gt;[134/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj&lt;br /&gt;[135/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj&lt;br /&gt;[136/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj&lt;br /&gt;[137/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj&lt;br /&gt;[138/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj&lt;br /&gt;[139/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj&lt;br /&gt;[140/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_decoder.c.obj&lt;br /&gt;[141/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_rx.c.obj&lt;br /&gt;[142/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_encoder.c.obj&lt;br /&gt;[143/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj&lt;br /&gt;[144/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport_socket_tcp.c.obj&lt;br /&gt;[145/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport_socket_tls.c.obj&lt;br /&gt;[146/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport.c.obj&lt;br /&gt;[147/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj&lt;br /&gt;[148/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_shell.c.obj&lt;br /&gt;[149/282] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj&lt;br /&gt;[150/282] Linking C static library zephyr\subsys\random\libsubsys__random.a&lt;br /&gt;[151/282] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj&lt;br /&gt;[152/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt.c.obj&lt;br /&gt;[153/282] Building C object zephyr/subsys/net/lib/config/CMakeFiles/subsys__net__lib__config.dir/init.c.obj&lt;br /&gt;[154/282] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj&lt;br /&gt;[155/282] Linking C static library zephyr\drivers\console\libdrivers__console.a&lt;br /&gt;[156/282] Linking C static library zephyr\subsys\net\lib\config\libsubsys__net__lib__config.a&lt;br /&gt;[157/282] Linking C static library zephyr\subsys\net\lib\mqtt\libsubsys__net__lib__mqtt.a&lt;br /&gt;[158/282] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/F_/Development/nordicsemi/v2.1.2/nrf/drivers/entropy/entropy_cc3xx.c.obj&lt;br /&gt;[159/282] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/entropy_nrf5.c.obj&lt;br /&gt;[160/282] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a&lt;br /&gt;[161/282] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj&lt;br /&gt;[162/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/tcp.c.obj&lt;br /&gt;[163/282] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a&lt;br /&gt;[164/282] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a&lt;br /&gt;[165/282] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj&lt;br /&gt;[166/282] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj&lt;br /&gt;[167/282] Linking C static library zephyr\subsys\net\ip\libsubsys__net__ip.a&lt;br /&gt;[168/282] Linking C static library zephyr\drivers\serial\libdrivers__serial.a&lt;br /&gt;[169/282] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj&lt;br /&gt;[170/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/aria.c.obj&lt;br /&gt;[171/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/aesni.c.obj&lt;br /&gt;[172/282] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj&lt;br /&gt;[173/282] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj&lt;br /&gt;[174/282] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj&lt;br /&gt;[175/282] Linking C static library zephyr\drivers\timer\libdrivers__timer.a&lt;br /&gt;[176/282] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a&lt;br /&gt;[177/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/zephyr_init.c.obj&lt;br /&gt;[178/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/camellia.c.obj&lt;br /&gt;[179/282] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj&lt;br /&gt;[180/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ccm.c.obj&lt;br /&gt;[181/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/chacha20.c.obj&lt;br /&gt;[182/282] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a&lt;br /&gt;[183/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/aes.c.obj&lt;br /&gt;[184/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/asn1write.c.obj&lt;br /&gt;[185/282] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a&lt;br /&gt;[186/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/base64.c.obj&lt;br /&gt;[187/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/chachapoly.c.obj&lt;br /&gt;[188/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/cmac.c.obj&lt;br /&gt;[189/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/debug.c.obj&lt;br /&gt;[190/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecdsa.c.obj&lt;br /&gt;[191/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/asn1parse.c.obj&lt;br /&gt;[192/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ctr_drbg.c.obj&lt;br /&gt;[193/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/cipher_wrap.c.obj&lt;br /&gt;[194/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/constant_time.c.obj&lt;br /&gt;[195/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/cipher.c.obj&lt;br /&gt;[196/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecp.c.obj&lt;br /&gt;[197/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecdh.c.obj&lt;br /&gt;[198/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecjpake.c.obj&lt;br /&gt;[199/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/dhm.c.obj&lt;br /&gt;[200/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/hkdf.c.obj&lt;br /&gt;[201/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/des.c.obj&lt;br /&gt;[202/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecp_curves.c.obj&lt;br /&gt;[203/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/hmac_drbg.c.obj&lt;br /&gt;[204/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/entropy.c.obj&lt;br /&gt;[205/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/gcm.c.obj&lt;br /&gt;[206/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/error.c.obj&lt;br /&gt;[207/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/mps_trace.c.obj&lt;br /&gt;[208/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/entropy_poll.c.obj&lt;br /&gt;[209/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/bignum.c.obj&lt;br /&gt;[210/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pem.c.obj&lt;br /&gt;[211/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/net_sockets.c.obj&lt;br /&gt;[212/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/mps_reader.c.obj&lt;br /&gt;[213/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/padlock.c.obj&lt;br /&gt;[214/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/memory_buffer_alloc.c.obj&lt;br /&gt;[215/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/md5.c.obj&lt;br /&gt;[216/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/nist_kw.c.obj&lt;br /&gt;[217/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkwrite.c.obj&lt;br /&gt;[218/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pk.c.obj&lt;br /&gt;[219/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkcs12.c.obj&lt;br /&gt;[220/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/md.c.obj&lt;br /&gt;[221/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkcs5.c.obj&lt;br /&gt;[222/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/oid.c.obj&lt;br /&gt;[223/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pk_wrap.c.obj&lt;br /&gt;[224/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/platform_util.c.obj&lt;br /&gt;[225/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/poly1305.c.obj&lt;br /&gt;[226/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto.c.obj&lt;br /&gt;[227/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_aead.c.obj&lt;br /&gt;[228/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/platform.c.obj&lt;br /&gt;[229/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkparse.c.obj&lt;br /&gt;[230/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_mac.c.obj&lt;br /&gt;[231/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_cipher.c.obj&lt;br /&gt;[232/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_se.c.obj&lt;br /&gt;[233/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_rsa.c.obj&lt;br /&gt;[234/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_ecp.c.obj&lt;br /&gt;[235/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_its_file.c.obj&lt;br /&gt;[236/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_slot_management.c.obj&lt;br /&gt;[237/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_hash.c.obj&lt;br /&gt;[238/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ripemd160.c.obj&lt;br /&gt;[239/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_storage.c.obj&lt;br /&gt;[240/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa_alt_helpers.c.obj&lt;br /&gt;[241/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_client.c.obj&lt;br /&gt;[242/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cache.c.obj&lt;br /&gt;[243/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cookie.c.obj&lt;br /&gt;[244/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_driver_wrappers.c.obj&lt;br /&gt;[245/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_debug_helpers_generated.c.obj&lt;br /&gt;[246/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha256.c.obj&lt;br /&gt;[247/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha1.c.obj&lt;br /&gt;[248/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ticket.c.obj&lt;br /&gt;[249/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha512.c.obj&lt;br /&gt;[250/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_client.c.obj&lt;br /&gt;[251/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_generic.c.obj&lt;br /&gt;[252/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version_features.c.obj&lt;br /&gt;[253/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_keys.c.obj&lt;br /&gt;[254/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version.c.obj&lt;br /&gt;[255/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cli.c.obj&lt;br /&gt;[256/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_srv.c.obj&lt;br /&gt;[257/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/threading.c.obj&lt;br /&gt;[258/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ciphersuites.c.obj&lt;br /&gt;[259/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa.c.obj&lt;br /&gt;[260/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_server.c.obj&lt;br /&gt;[261/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crl.c.obj&lt;br /&gt;[262/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/timing.c.obj&lt;br /&gt;[263/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_msg.c.obj&lt;br /&gt;[264/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_csr.c.obj&lt;br /&gt;[265/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_crt.c.obj&lt;br /&gt;[266/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_create.c.obj&lt;br /&gt;[267/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_csr.c.obj&lt;br /&gt;[268/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls.c.obj&lt;br /&gt;[269/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509.c.obj&lt;br /&gt;[270/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crt.c.obj&lt;br /&gt;[271/282] Linking C static library modules\mbedtls\libmodules__mbedtls.a&lt;br /&gt;[272/282] Linking C executable zephyr\zephyr_pre0.elf&lt;br /&gt;FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map &lt;br /&gt;cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/subsys/net/libsubsys__net.a zephyr/subsys/net/ip/libsubsys__net__ip.a zephyr/subsys/net/lib/mqtt/libsubsys__net__lib__mqtt.a zephyr/subsys/net/lib/config/libsubsys__net__lib__config.a zephyr/subsys/random/libsubsys__random.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/timer/libdrivers__timer.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/mbedtls/libmodules__mbedtls.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L&amp;quot;f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/thumb/v7e-m/nofp&amp;quot; -LF:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -no-pie -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/soft-float/no-interrupts/libnrf_cc310_platform_0.9.15.a &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr &amp;amp;&amp;amp; F:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.exe -E echo &amp;quot;&amp;quot;&lt;br /&gt;f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `cmd_sample_modem_suspend&amp;#39;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:154: undefined reference to `gsm_ppp_stop&amp;#39;&lt;br /&gt;f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `cmd_sample_modem_resume&amp;#39;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:171: undefined reference to `gsm_ppp_start&amp;#39;&lt;br /&gt;f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `tls_init&amp;#39;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:115: undefined reference to `tls_credential_add&amp;#39;&lt;br /&gt;f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `main&amp;#39;:&lt;br /&gt;F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:667: undefined reference to `gsm_ppp_register_modem_power_callback&amp;#39;&lt;br /&gt;f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:683: undefined reference to `__device_dts_ord_131&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;f:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build&amp;#39;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/400466?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 17:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:105eff3a-6f03-48d2-8cfc-759b25d0c411</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You need to look at your first error message, which is this line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;config-tls-generic.h\&amp;quot; -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IF:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr -IF:/Development/nordicsemi/v2.1.2/zephyr/include -Izephyr/include/generated -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IF:/Development/nordicsemi/v2.1.2/zephyr/lib/util/fnmatch/. -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IF:/Development/nordicsemi/v2.1.2/zephyr/subsys/net/lib/sockets/. -IF:/Development/nordicsemi/v2.1.2/nrf/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/Config -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/segger/. -IF:/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/include -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/mbedtls/configs -isystem F:/Development/nordicsemi/v2.1.2/zephyr/lib/libc/minimal/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros F:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test=CMAKE_SOURCE_DIR -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
../src/main.c: In function &amp;#39;main&amp;#39;:
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: error: &amp;#39;CONFIG_MODEM_GSM_APN&amp;#39; undeclared (first use in this function)
  669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
      |                 ^~~~~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This indicates that CONFIG_MODEM_GSM_APN is not set on your end.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/400218?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 16:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b793bc64-247a-4a07-aa68-d95f52e6b57b</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Here are the updated logs.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Build: mqtt_publisher_test/build (active) 

Building mqtt_publisher_test
west build --build-dir f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build f:\Development\nordicsemi\Myapps\mqtt_publisher_test

[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: F:/Development/nordicsemi/Myapps/mqtt_publisher_test
-- Cache files will be written to: F:/Development/nordicsemi/v2.1.2/zephyr/.cache
-- Zephyr version: 3.1.99 (F:/Development/nordicsemi/v2.1.2/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found dtc: F:/Development/nordicsemi/toolchains/v2.1.2/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found BOARD.dts: F:/Development/nordicsemi/v2.1.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: f:/Development/nordicsemi/Myapps/mqtt_publisher_test/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/dts.cmake
Parsing F:/Development/nordicsemi/Myapps/mqtt_publisher_test/Kconfig
Loaded configuration &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/.config&amp;#39;
Configuration saved to &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h&amp;#39;
-- Configuring done
-- Generating done
-- Build files have been written to: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build
[1/330] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[2/330] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[3/330] Generating include/generated/offsets.h
[4/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[5/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[6/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[7/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[8/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[9/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[10/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[11/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[12/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[13/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[14/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[15/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[16/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[17/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[18/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[19/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[20/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[21/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[22/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[23/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[24/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/ring_buffer.c.obj
[25/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[26/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[27/330] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[28/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[29/330] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[30/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[31/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[32/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/util/fnmatch/fnmatch.c.obj
[33/330] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[34/330] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[35/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj
[36/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_backend_rtt.c.obj
[37/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
[38/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
[39/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_cmds.c.obj
[40/330] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj 
F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;config-tls-generic.h\&amp;quot; -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IF:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr -IF:/Development/nordicsemi/v2.1.2/zephyr/include -Izephyr/include/generated -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IF:/Development/nordicsemi/v2.1.2/zephyr/lib/util/fnmatch/. -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IF:/Development/nordicsemi/v2.1.2/zephyr/subsys/net/lib/sockets/. -IF:/Development/nordicsemi/v2.1.2/nrf/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/Config -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/segger/. -IF:/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/include -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/mbedtls/configs -isystem F:/Development/nordicsemi/v2.1.2/zephyr/lib/libc/minimal/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros F:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test=CMAKE_SOURCE_DIR -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
../src/main.c: In function &amp;#39;main&amp;#39;:
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: error: &amp;#39;CONFIG_MODEM_GSM_APN&amp;#39; undeclared (first use in this function)
  669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
      |                 ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:167:11: note: in definition of macro &amp;#39;Z_LOG_TO_PRINTK&amp;#39;
  167 |         ##__VA_ARGS__); \
      |           ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: note: each undeclared identifier is reported only once for each function it appears in
  669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
      |                 ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:167:11: note: in definition of macro &amp;#39;Z_LOG_TO_PRINTK&amp;#39;
  167 |         ##__VA_ARGS__); \
      |           ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:34,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util.h:17,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:15,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:65: error: &amp;#39;_v2&amp;#39; undeclared (first use in this function); did you mean &amp;#39;_v5&amp;#39;?
  430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
      |                                                                 ^~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:67:26: note: in definition of macro &amp;#39;__DEBRACKET&amp;#39;
   67 | #define __DEBRACKET(...) __VA_ARGS__
      |                          ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro &amp;#39;__GET_ARG2_DEBRACKET&amp;#39;
   59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro &amp;#39;__COND_CODE&amp;#39;
   56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro &amp;#39;Z_COND_CODE_0&amp;#39;
  173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:132:2: note: in expansion of macro &amp;#39;COND_CODE_0&amp;#39;
  132 |  COND_CODE_0(NUM_VA_ARGS_LESS_1(__VA_ARGS__), \
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:118:7: note: in expansion of macro &amp;#39;Z_CBPRINTF_IS_PCHAR&amp;#39;
  118 |   0 : Z_CBPRINTF_IS_PCHAR(x, flags))
      |       ^~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1055:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_IS_X_PCHAR&amp;#39;
 1055 |  fixed_arg0(idx, x, fixed_arg1)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:33:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_FIXED_ARG_EXEC&amp;#39;
   33 |  z_call(1, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:36:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_2&amp;#39;
   36 |  Z_FOR_LOOP_2(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1058:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1058 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_FIXED_ARG_EXEC, sep, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_FIXED_ARG&amp;#39;
  562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1075:2: note: in expansion of macro &amp;#39;Z_BYPASS&amp;#39;
 1075 |  fixed_arg0(x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:43:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_EXEC&amp;#39;
   43 |  z_call(3, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:569:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
  569 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, (,), Z_BYPASS, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:46: note: in expansion of macro &amp;#39;REVERSE_ARGS&amp;#39;
  562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
      |                                              ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:129:3: note: in expansion of macro &amp;#39;FOR_EACH_IDX_FIXED_ARG&amp;#39;
  129 |  (FOR_EACH_IDX_FIXED_ARG(Z_CBPRINTF_IS_X_PCHAR, (+), flags, __VA_ARGS__))
      |   ^~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:134:8: note: in expansion of macro &amp;#39;Z_CBPRINTF_HAS_PCHAR_ARGS&amp;#39;
  134 |       (Z_CBPRINTF_HAS_PCHAR_ARGS(flags, __VA_ARGS__)))
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:152:9: note: in expansion of macro &amp;#39;Z_CBPRINTF_PCHAR_COUNT&amp;#39;
  152 |   _rv = Z_CBPRINTF_PCHAR_COUNT(flags, __VA_ARGS__) &amp;gt; 0 ? 1 : 0; \
      |         ^~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:302:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_MUST_RUNTIME_PACKAGE&amp;#39;
  302 |  Z_CBPRINTF_MUST_RUNTIME_PACKAGE(flags, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:404:20: note: in expansion of macro &amp;#39;CBPRINTF_MUST_RUNTIME_PACKAGE&amp;#39;
  404 |  bool has_rw_str = CBPRINTF_MUST_RUNTIME_PACKAGE( \
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:64:53: note: in expansion of macro &amp;#39;__DEBRACKET&amp;#39;
   64 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
      |                                                     ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro &amp;#39;__GET_ARG2_DEBRACKET&amp;#39;
   59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro &amp;#39;__COND_CODE&amp;#39;
   56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro &amp;#39;Z_COND_CODE_0&amp;#39;
  173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:40: note: in expansion of macro &amp;#39;COND_CODE_0&amp;#39;
  430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
      |                                        ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_LOG_LOCAL_ARG_NAME&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:449:7: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  449 |       FOR_EACH_IDX(Z_LOG_LOCAL_ARG_NAME, (,), __VA_ARGS__)); \
      |       ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
  290 |  BUILD_ASSERT(!((sizeof(double) &amp;lt; VA_STACK_ALIGN(long double)) &amp;amp;&amp;amp; \
      |               ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:176:8: error: &amp;#39;_v&amp;#39; undeclared (first use in this function); did you mean &amp;#39;_v5&amp;#39;?
  176 |  (void)_v; \
      |        ^~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:298:23: note: in expansion of macro &amp;#39;Z_CBPRINTF_ARG_SIZE&amp;#39;
  298 |  uint32_t _arg_size = Z_CBPRINTF_ARG_SIZE(_arg); \
      |                       ^~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
  290 |  BUILD_ASSERT(!((sizeof(double) &amp;lt; VA_STACK_ALIGN(long double)) &amp;amp;&amp;amp; \
      |               ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:227:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  227 |   CBPRINTF_STATIC_PACKAGE(_msg-&amp;gt;data, _plen, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
[41/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
[42/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
[43/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service.c.obj
[44/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_fprintf.c.obj
[45/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/device_service.c.obj
[46/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/devmem_service.c.obj
[47/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/backends/shell_uart.c.obj
[48/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_utils.c.obj
[49/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;f:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/400147?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 13:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddfdfacd-4c22-4375-bc3d-2073339a0522</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Can you please post the updated compile log?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/400060?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 08:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07cedc1b-fd50-4455-9c34-6174629fc766</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;br /&gt;I have made changes but getting the above issues now. Can you please check?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399676?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 13:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea67cbc8-26b8-417d-b6f4-22db50a736c3</guid><dc:creator>Muqarrab</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/94401/nrf-connect-sdk-with-external-gsm-7600-with-nrf52840/399667"]Try moving the callback functions outside of this if preprocessor check.[/quote]
&lt;p&gt;Yes, I have removed it as shown in the above reply but still getting above issues&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399667?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d45c1a64-9f96-40a7-9d15-fafbcb2e8e40</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The functions are guarded with the symbol &amp;quot;CONFIG_MQTT_LIB_TLS&amp;quot; - which is not enabled in your code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# CONFIG_MQTT_LIB_TLS is not set&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Try moving the callback functions outside of this if preprocessor check.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399663?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bccba02-f1bb-4a60-82a4-378b14c5d3e2</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/.config.zip"&gt;devzone.nordicsemi.com/.../.config.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399655?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50fa0030-3ad4-4580-baf1-816d2f4e9e88</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2017 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef __CONFIG_H__
#define __CONFIG_H__

#ifdef CONFIG_NET_CONFIG_SETTINGS
#ifdef CONFIG_NET_IPV6
#define ZEPHYR_ADDR		CONFIG_NET_CONFIG_MY_IPV6_ADDR
#define SERVER_ADDR		CONFIG_NET_CONFIG_PEER_IPV6_ADDR
#else
#define ZEPHYR_ADDR		CONFIG_NET_CONFIG_MY_IPV4_ADDR
#define SERVER_ADDR		CONFIG_NET_CONFIG_PEER_IPV4_ADDR
#endif
#else
#ifdef CONFIG_NET_IPV6
#define ZEPHYR_ADDR		&amp;quot;2001:db8::1&amp;quot;
#define SERVER_ADDR		&amp;quot;2001:db8::2&amp;quot;
#else
#define ZEPHYR_ADDR		&amp;quot;192.168.1.101&amp;quot;
#define SERVER_ADDR		&amp;quot;192.168.1.10&amp;quot;
#endif
#endif

#if defined(CONFIG_SOCKS)
#define SOCKS5_PROXY_ADDR	SERVER_ADDR
#define SOCKS5_PROXY_PORT	1080
#endif

#ifdef CONFIG_MQTT_LIB_TLS
#ifdef CONFIG_MQTT_LIB_WEBSOCKET
#define SERVER_PORT		9001
#else
#define SERVER_PORT		18877
#endif /* CONFIG_MQTT_LIB_WEBSOCKET */
#else
#ifdef CONFIG_MQTT_LIB_WEBSOCKET
#define SERVER_PORT		9001
#else
#define SERVER_PORT		18877
#endif /* CONFIG_MQTT_LIB_WEBSOCKET */
#endif

#define APP_CONNECT_TIMEOUT_MS	2000
#define APP_SLEEP_MSECS		500

#define APP_CONNECT_TRIES	10

#define APP_MQTT_BUFFER_SIZE	128

#define MQTT_CLIENTID		&amp;quot;zephyr_publisher&amp;quot;

/* Set the following to 1 to enable the Bluemix topic format */
#define APP_BLUEMIX_TOPIC	0

/* These are the parameters for the Bluemix topic format */
#if APP_BLUEMIX_TOPIC
#define BLUEMIX_DEVTYPE		&amp;quot;sensor&amp;quot;
#define BLUEMIX_DEVID		&amp;quot;carbon&amp;quot;
#define BLUEMIX_EVENT		&amp;quot;status&amp;quot;
#define BLUEMIX_FORMAT		&amp;quot;json&amp;quot;
#endif

#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/94401/nrf-connect-sdk-with-external-gsm-7600-with-nrf52840/399637"]You seem to have guarded these functions with &amp;quot;#if defined(CONFIG_MQTT_LIB_TLS)&amp;quot; - is this symbol defined at your end?[/quote]
&lt;p&gt;@hakon you are right about this I have mistakenly add this I have corrected this and attached main and logs below now.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2017 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(net_mqtt_publisher_sample, LOG_LEVEL_DBG);

#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/net/socket.h&amp;gt;
#include &amp;lt;zephyr/net/mqtt.h&amp;gt;
#include &amp;lt;zephyr/random/rand32.h&amp;gt;

#include &amp;lt;string.h&amp;gt;
#include &amp;lt;errno.h&amp;gt;

#include &amp;quot;config.h&amp;quot;


/////////////////////////////////////////////////////////////////// GSM


#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;
#include &amp;lt;zephyr/shell/shell.h&amp;gt;
#include &amp;lt;zephyr/drivers/uart.h&amp;gt;
#include &amp;lt;zephyr/net/net_mgmt.h&amp;gt;
#include &amp;lt;zephyr/net/net_event.h&amp;gt;
#include &amp;lt;zephyr/net/net_conn_mgr.h&amp;gt;
#include &amp;lt;zephyr/drivers/modem/gsm_ppp.h&amp;gt;
#include &amp;lt;zephyr/devicetree.h&amp;gt;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
// 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 &amp;lt;zephyr/app_memory/app_memdomain.h&amp;gt;
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 &amp;quot;test_certs.h&amp;quot;

#define TLS_SNI_HOSTNAME &amp;quot;localhost&amp;quot;
#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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register public certificate: %d&amp;quot;, 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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK: %d&amp;quot;, err);
		return err;
	}

	err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK_ID,
				 client_psk_id, sizeof(client_psk_id) - 1);
	if (err &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK ID: %d&amp;quot;, 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, &amp;quot;Modem is already stopped.\n&amp;quot;);
		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, &amp;quot;Modem is already started.\n&amp;quot;);
		return -ENOEXEC;
	}

	gsm_ppp_start(gsm_dev);
	starting = true;

	return 0;
}

SHELL_STATIC_SUBCMD_SET_CREATE(sample_commands,
	SHELL_CMD(resume, NULL,
		  &amp;quot;Resume the modem\n&amp;quot;,
		  cmd_sample_modem_resume),
	SHELL_CMD(suspend, NULL,
		  &amp;quot;Suspend the modem\n&amp;quot;,
		  cmd_sample_modem_suspend),
	SHELL_SUBCMD_SET_END
);

SHELL_CMD_REGISTER(sample, &amp;amp;sample_commands,
		   &amp;quot;Sample application commands&amp;quot;, 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 &amp;amp; (NET_EVENT_L4_CONNECTED
			   | NET_EVENT_L4_DISCONNECTED)) != mgmt_event) {
		return;
	}

	if (mgmt_event == NET_EVENT_L4_CONNECTED) {
		LOG_INF(&amp;quot;Network connected&amp;quot;);
		return;
	}

	if (mgmt_event == NET_EVENT_L4_DISCONNECTED) {
		LOG_INF(&amp;quot;Network disconnected&amp;quot;);
		return;
	}
}

static void modem_on_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem on callback fired&amp;quot;);
}

static void modem_off_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem off callback fired&amp;quot;);
}

/////////////////////////////////////////////////////////////////// GSM

static void prepare_fds(struct mqtt_client *client)
{
	if (client-&amp;gt;transport.type == MQTT_TRANSPORT_NON_SECURE) {
		fds[0].fd = client-&amp;gt;transport.tcp.sock;
	}
#if defined(CONFIG_MQTT_LIB_TLS)
	else if (client-&amp;gt;transport.type == MQTT_TRANSPORT_SECURE) {
		fds[0].fd = client-&amp;gt;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 &amp;gt; 0) {
		ret = zsock_poll(fds, nfds, timeout);
		if (ret &amp;lt; 0) {
			LOG_ERR(&amp;quot;poll error: %d&amp;quot;, errno);
		}
	}

	return ret;
}

void mqtt_evt_handler(struct mqtt_client *const client,
		      const struct mqtt_evt *evt)
{
	int err;

	switch (evt-&amp;gt;type) {
	case MQTT_EVT_CONNACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT connect failed %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		connected = true;
		LOG_INF(&amp;quot;MQTT client connected!&amp;quot;);

		break;

	case MQTT_EVT_DISCONNECT:
		LOG_INF(&amp;quot;MQTT client disconnected %d&amp;quot;, evt-&amp;gt;result);

		connected = false;
		clear_fds();

		break;

	case MQTT_EVT_PUBACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBACK error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBACK packet id: %u&amp;quot;, evt-&amp;gt;param.puback.message_id);

		break;

	case MQTT_EVT_PUBREC:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBREC error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBREC packet id: %u&amp;quot;, evt-&amp;gt;param.pubrec.message_id);

		const struct mqtt_pubrel_param rel_param = {
			.message_id = evt-&amp;gt;param.pubrec.message_id
		};

		err = mqtt_publish_qos2_release(client, &amp;amp;rel_param);
		if (err != 0) {
			LOG_ERR(&amp;quot;Failed to send MQTT PUBREL: %d&amp;quot;, err);
		}

		break;

	case MQTT_EVT_PUBCOMP:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBCOMP error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBCOMP packet id: %u&amp;quot;,
			evt-&amp;gt;param.pubcomp.message_id);

		break;

	case MQTT_EVT_PINGRESP:
		LOG_INF(&amp;quot;PINGRESP packet&amp;quot;);
		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), &amp;quot;{d:{temperature:%d}}&amp;quot;,
		 (uint8_t)sys_rand32_get());
#else
	static APP_DMEM char payload[] = &amp;quot;DOORS:OPEN_QoSx&amp;quot;;

	payload[strlen(payload) - 1] = &amp;#39;0&amp;#39; + qos;
#endif

	return payload;
}

static char *get_mqtt_topic(void)
{
#if APP_BLUEMIX_TOPIC
	return &amp;quot;iot-2/type/&amp;quot;BLUEMIX_DEVTYPE&amp;quot;/id/&amp;quot;BLUEMIX_DEVID
	       &amp;quot;/evt/&amp;quot;BLUEMIX_EVENT&amp;quot;/fmt/&amp;quot;BLUEMIX_FORMAT;
#else
	return &amp;quot;sensors&amp;quot;;
#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, &amp;amp;param);
}

#define RC_STR(rc) ((rc) == 0 ? &amp;quot;OK&amp;quot; : &amp;quot;ERROR&amp;quot;)

#define PRINT_RESULT(func, rc) \
	LOG_INF(&amp;quot;%s: %d &amp;lt;%s&amp;gt;&amp;quot;, (func), rc, RC_STR(rc))

static void broker_init(void)
{
#if defined(CONFIG_NET_IPV6)
	struct sockaddr_in6 *broker6 = (struct sockaddr_in6 *)&amp;amp;broker;

	broker6-&amp;gt;sin6_family = AF_INET6;
	broker6-&amp;gt;sin6_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET6, SERVER_ADDR, &amp;amp;broker6-&amp;gt;sin6_addr);

#if defined(CONFIG_SOCKS)
	struct sockaddr_in6 *proxy6 = (struct sockaddr_in6 *)&amp;amp;socks5_proxy;

	proxy6-&amp;gt;sin6_family = AF_INET6;
	proxy6-&amp;gt;sin6_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET6, SOCKS5_PROXY_ADDR, &amp;amp;proxy6-&amp;gt;sin6_addr);
#endif
#else
	struct sockaddr_in *broker4 = (struct sockaddr_in *)&amp;amp;broker;

	broker4-&amp;gt;sin_family = AF_INET;
	broker4-&amp;gt;sin_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET, SERVER_ADDR, &amp;amp;broker4-&amp;gt;sin_addr);
#if defined(CONFIG_SOCKS)
	struct sockaddr_in *proxy4 = (struct sockaddr_in *)&amp;amp;socks5_proxy;

	proxy4-&amp;gt;sin_family = AF_INET;
	proxy4-&amp;gt;sin_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET, SOCKS5_PROXY_ADDR, &amp;amp;proxy4-&amp;gt;sin_addr);
#endif
#endif
}

static void client_init(struct mqtt_client *client)
{

struct mqtt_utf8 pass,name;

pass.size = strlen(&amp;quot;dnTdLm8qndcg&amp;quot;);
pass.utf8 = (uint8_t*)&amp;quot;dnTdLm8qndcg&amp;quot;;
name.size = strlen(&amp;quot;nnrhlnnv&amp;quot;);
name.utf8 = (uint8_t *)&amp;quot;nnrhlnnv&amp;quot;;


	mqtt_client_init(client);

	broker_init();

	/* MQTT client configuration */
	client-&amp;gt;broker = (uint8_t*)&amp;quot;driver.cloudmqtt.com&amp;quot;; //&amp;amp;broker;
	client-&amp;gt;evt_cb = mqtt_evt_handler;
	client-&amp;gt;client_id.utf8 = (uint8_t *)MQTT_CLIENTID;
	client-&amp;gt;client_id.size = strlen(MQTT_CLIENTID);
	client-&amp;gt;password = &amp;amp;pass;
	client-&amp;gt;user_name = &amp;amp;name;

	// client-&amp;gt;password = &amp;quot;dnTdLm8qndcg&amp;quot;;
	// client-&amp;gt;user_name = &amp;quot;nnrhlnnv&amp;quot;;
	client-&amp;gt;protocol_version = MQTT_VERSION_3_1_1;

	/* MQTT buffers configuration */
	client-&amp;gt;rx_buf = rx_buffer;
	client-&amp;gt;rx_buf_size = sizeof(rx_buffer);
	client-&amp;gt;tx_buf = tx_buffer;
	client-&amp;gt;tx_buf_size = sizeof(tx_buffer);

	/* MQTT transport configuration */
#if defined(CONFIG_MQTT_LIB_TLS)
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE;
#endif

	struct mqtt_sec_config *tls_config = &amp;amp;client-&amp;gt;transport.tls.config;

	tls_config-&amp;gt;peer_verify = TLS_PEER_VERIFY_REQUIRED;
	tls_config-&amp;gt;cipher_list = NULL;
	tls_config-&amp;gt;sec_tag_list = m_sec_tags;
	tls_config-&amp;gt;sec_tag_count = ARRAY_SIZE(m_sec_tags);
#if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(CONFIG_NET_SOCKETS_OFFLOAD)
	tls_config-&amp;gt;hostname = TLS_SNI_HOSTNAME;
#else
	tls_config-&amp;gt;hostname = NULL;
#endif

#else
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE;
#endif
#endif

#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.websocket.config.host = SERVER_ADDR;
	client-&amp;gt;transport.websocket.config.url = &amp;quot;/mqtt&amp;quot;;
	client-&amp;gt;transport.websocket.config.tmp_buf = temp_ws_rx_buf;
	client-&amp;gt;transport.websocket.config.tmp_buf_len =
						sizeof(temp_ws_rx_buf);
	client-&amp;gt;transport.websocket.timeout = 5 * MSEC_PER_SEC;
#endif

#if defined(CONFIG_SOCKS)
	mqtt_client_set_proxy(client, &amp;amp;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++ &amp;lt; APP_CONNECT_TRIES &amp;amp;&amp;amp; !connected) {

		client_init(client);

		rc = mqtt_connect(client);
		if (rc != 0) {
			PRINT_RESULT(&amp;quot;mqtt_connect&amp;quot;, 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 &amp;gt; 0 &amp;amp;&amp;amp; connected) {
		if (wait(remaining)) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, rc);
				return rc;
			}
		}

		rc = mqtt_live(client);
		if (rc != 0 &amp;amp;&amp;amp; rc != -EAGAIN) {
			PRINT_RESULT(&amp;quot;mqtt_live&amp;quot;, rc);
			return rc;
		} else if (rc == 0) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, 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(&amp;quot;attempting to connect: &amp;quot;);
	rc = try_to_connect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;try_to_connect&amp;quot;, rc);
	SUCCESS_OR_EXIT(rc);

	i = 0;
	while (i++ &amp;lt; CONFIG_NET_SAMPLE_APP_MAX_ITERATIONS &amp;amp;&amp;amp; connected) {
		r = -1;

		rc = mqtt_ping(&amp;amp;client_ctx);
		PRINT_RESULT(&amp;quot;mqtt_ping&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_0_AT_MOST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_1_AT_LEAST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_2_EXACTLY_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		r = 0;
	}

	rc = mqtt_disconnect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;mqtt_disconnect&amp;quot;, rc);

	LOG_INF(&amp;quot;Bye!&amp;quot;);

	return r;
}

static int start_app(void)
{
	int r = 0, i = 0;

	while (!CONFIG_NET_SAMPLE_APP_MAX_CONNECTIONS ||
	       i++ &amp;lt; 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(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
		CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
		uart_dev-&amp;gt;name, uart_dev, gsm_dev-&amp;gt;name);

	net_mgmt_init_event_callback(&amp;amp;mgmt_cb, event_handler,
				     NET_EVENT_L4_CONNECTED |
				     NET_EVENT_L4_DISCONNECTED);
	net_mgmt_add_event_callback(&amp;amp;mgmt_cb);

////////////////////////////////////////////////////////////////////////////// GSM
#if defined(CONFIG_MQTT_LIB_TLS)
	int rc;

	rc = tls_init();
	PRINT_RESULT(&amp;quot;tls_init&amp;quot;, rc);
#endif

#if defined(CONFIG_USERSPACE)
	int ret;

	struct k_mem_partition *parts[] = {
#if Z_LIBC_PARTITION_EXISTS
		&amp;amp;z_libc_partition,
#endif
		&amp;amp;app_partition
	};

	ret = k_mem_domain_init(&amp;amp;app_domain, ARRAY_SIZE(parts), parts);
	__ASSERT(ret == 0, &amp;quot;k_mem_domain_init() failed %d&amp;quot;, ret);
	ARG_UNUSED(ret);

	k_mem_domain_add_thread(&amp;amp;app_domain, app_thread);
	k_thread_heap_assign(app_thread, &amp;amp;app_mem_pool);

	k_thread_start(app_thread);
	k_thread_join(app_thread, K_FOREVER);
#else
	exit(start_app());
#endif



}
&lt;/pre&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2017 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(net_mqtt_publisher_sample, LOG_LEVEL_DBG);

#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/net/socket.h&amp;gt;
#include &amp;lt;zephyr/net/mqtt.h&amp;gt;
#include &amp;lt;zephyr/random/rand32.h&amp;gt;

#include &amp;lt;string.h&amp;gt;
#include &amp;lt;errno.h&amp;gt;

#include &amp;quot;config.h&amp;quot;


/////////////////////////////////////////////////////////////////// GSM


#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;
#include &amp;lt;zephyr/shell/shell.h&amp;gt;
#include &amp;lt;zephyr/drivers/uart.h&amp;gt;
#include &amp;lt;zephyr/net/net_mgmt.h&amp;gt;
#include &amp;lt;zephyr/net/net_event.h&amp;gt;
#include &amp;lt;zephyr/net/net_conn_mgr.h&amp;gt;
#include &amp;lt;zephyr/drivers/modem/gsm_ppp.h&amp;gt;
#include &amp;lt;zephyr/devicetree.h&amp;gt;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
// 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 &amp;lt;zephyr/app_memory/app_memdomain.h&amp;gt;
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 &amp;quot;test_certs.h&amp;quot;

#define TLS_SNI_HOSTNAME &amp;quot;localhost&amp;quot;
#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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register public certificate: %d&amp;quot;, 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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK: %d&amp;quot;, err);
		return err;
	}

	err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK_ID,
				 client_psk_id, sizeof(client_psk_id) - 1);
	if (err &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK ID: %d&amp;quot;, 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, &amp;quot;Modem is already stopped.\n&amp;quot;);
		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, &amp;quot;Modem is already started.\n&amp;quot;);
		return -ENOEXEC;
	}

	gsm_ppp_start(gsm_dev);
	starting = true;

	return 0;
}

SHELL_STATIC_SUBCMD_SET_CREATE(sample_commands,
	SHELL_CMD(resume, NULL,
		  &amp;quot;Resume the modem\n&amp;quot;,
		  cmd_sample_modem_resume),
	SHELL_CMD(suspend, NULL,
		  &amp;quot;Suspend the modem\n&amp;quot;,
		  cmd_sample_modem_suspend),
	SHELL_SUBCMD_SET_END
);

SHELL_CMD_REGISTER(sample, &amp;amp;sample_commands,
		   &amp;quot;Sample application commands&amp;quot;, 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 &amp;amp; (NET_EVENT_L4_CONNECTED
			   | NET_EVENT_L4_DISCONNECTED)) != mgmt_event) {
		return;
	}

	if (mgmt_event == NET_EVENT_L4_CONNECTED) {
		LOG_INF(&amp;quot;Network connected&amp;quot;);
		return;
	}

	if (mgmt_event == NET_EVENT_L4_DISCONNECTED) {
		LOG_INF(&amp;quot;Network disconnected&amp;quot;);
		return;
	}
}

static void modem_on_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem on callback fired&amp;quot;);
}

static void modem_off_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem off callback fired&amp;quot;);
}

/////////////////////////////////////////////////////////////////// GSM

static void prepare_fds(struct mqtt_client *client)
{
	if (client-&amp;gt;transport.type == MQTT_TRANSPORT_NON_SECURE) {
		fds[0].fd = client-&amp;gt;transport.tcp.sock;
	}
#if defined(CONFIG_MQTT_LIB_TLS)
	else if (client-&amp;gt;transport.type == MQTT_TRANSPORT_SECURE) {
		fds[0].fd = client-&amp;gt;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 &amp;gt; 0) {
		ret = zsock_poll(fds, nfds, timeout);
		if (ret &amp;lt; 0) {
			LOG_ERR(&amp;quot;poll error: %d&amp;quot;, errno);
		}
	}

	return ret;
}

void mqtt_evt_handler(struct mqtt_client *const client,
		      const struct mqtt_evt *evt)
{
	int err;

	switch (evt-&amp;gt;type) {
	case MQTT_EVT_CONNACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT connect failed %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		connected = true;
		LOG_INF(&amp;quot;MQTT client connected!&amp;quot;);

		break;

	case MQTT_EVT_DISCONNECT:
		LOG_INF(&amp;quot;MQTT client disconnected %d&amp;quot;, evt-&amp;gt;result);

		connected = false;
		clear_fds();

		break;

	case MQTT_EVT_PUBACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBACK error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBACK packet id: %u&amp;quot;, evt-&amp;gt;param.puback.message_id);

		break;

	case MQTT_EVT_PUBREC:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBREC error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBREC packet id: %u&amp;quot;, evt-&amp;gt;param.pubrec.message_id);

		const struct mqtt_pubrel_param rel_param = {
			.message_id = evt-&amp;gt;param.pubrec.message_id
		};

		err = mqtt_publish_qos2_release(client, &amp;amp;rel_param);
		if (err != 0) {
			LOG_ERR(&amp;quot;Failed to send MQTT PUBREL: %d&amp;quot;, err);
		}

		break;

	case MQTT_EVT_PUBCOMP:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBCOMP error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBCOMP packet id: %u&amp;quot;,
			evt-&amp;gt;param.pubcomp.message_id);

		break;

	case MQTT_EVT_PINGRESP:
		LOG_INF(&amp;quot;PINGRESP packet&amp;quot;);
		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), &amp;quot;{d:{temperature:%d}}&amp;quot;,
		 (uint8_t)sys_rand32_get());
#else
	static APP_DMEM char payload[] = &amp;quot;DOORS:OPEN_QoSx&amp;quot;;

	payload[strlen(payload) - 1] = &amp;#39;0&amp;#39; + qos;
#endif

	return payload;
}

static char *get_mqtt_topic(void)
{
#if APP_BLUEMIX_TOPIC
	return &amp;quot;iot-2/type/&amp;quot;BLUEMIX_DEVTYPE&amp;quot;/id/&amp;quot;BLUEMIX_DEVID
	       &amp;quot;/evt/&amp;quot;BLUEMIX_EVENT&amp;quot;/fmt/&amp;quot;BLUEMIX_FORMAT;
#else
	return &amp;quot;sensors&amp;quot;;
#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, &amp;amp;param);
}

#define RC_STR(rc) ((rc) == 0 ? &amp;quot;OK&amp;quot; : &amp;quot;ERROR&amp;quot;)

#define PRINT_RESULT(func, rc) \
	LOG_INF(&amp;quot;%s: %d &amp;lt;%s&amp;gt;&amp;quot;, (func), rc, RC_STR(rc))

static void broker_init(void)
{
#if defined(CONFIG_NET_IPV6)
	struct sockaddr_in6 *broker6 = (struct sockaddr_in6 *)&amp;amp;broker;

	broker6-&amp;gt;sin6_family = AF_INET6;
	broker6-&amp;gt;sin6_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET6, SERVER_ADDR, &amp;amp;broker6-&amp;gt;sin6_addr);

#if defined(CONFIG_SOCKS)
	struct sockaddr_in6 *proxy6 = (struct sockaddr_in6 *)&amp;amp;socks5_proxy;

	proxy6-&amp;gt;sin6_family = AF_INET6;
	proxy6-&amp;gt;sin6_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET6, SOCKS5_PROXY_ADDR, &amp;amp;proxy6-&amp;gt;sin6_addr);
#endif
#else
	struct sockaddr_in *broker4 = (struct sockaddr_in *)&amp;amp;broker;

	broker4-&amp;gt;sin_family = AF_INET;
	broker4-&amp;gt;sin_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET, SERVER_ADDR, &amp;amp;broker4-&amp;gt;sin_addr);
#if defined(CONFIG_SOCKS)
	struct sockaddr_in *proxy4 = (struct sockaddr_in *)&amp;amp;socks5_proxy;

	proxy4-&amp;gt;sin_family = AF_INET;
	proxy4-&amp;gt;sin_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET, SOCKS5_PROXY_ADDR, &amp;amp;proxy4-&amp;gt;sin_addr);
#endif
#endif
}

static void client_init(struct mqtt_client *client)
{

struct mqtt_utf8 pass,name;

pass.size = strlen(&amp;quot;dnTdLm8qndcg&amp;quot;);
pass.utf8 = (uint8_t*)&amp;quot;dnTdLm8qndcg&amp;quot;;
name.size = strlen(&amp;quot;nnrhlnnv&amp;quot;);
name.utf8 = (uint8_t *)&amp;quot;nnrhlnnv&amp;quot;;


	mqtt_client_init(client);

	broker_init();

	/* MQTT client configuration */
	client-&amp;gt;broker = (uint8_t*)&amp;quot;driver.cloudmqtt.com&amp;quot;; //&amp;amp;broker;
	client-&amp;gt;evt_cb = mqtt_evt_handler;
	client-&amp;gt;client_id.utf8 = (uint8_t *)MQTT_CLIENTID;
	client-&amp;gt;client_id.size = strlen(MQTT_CLIENTID);
	client-&amp;gt;password = &amp;amp;pass;
	client-&amp;gt;user_name = &amp;amp;name;

	// client-&amp;gt;password = &amp;quot;dnTdLm8qndcg&amp;quot;;
	// client-&amp;gt;user_name = &amp;quot;nnrhlnnv&amp;quot;;
	client-&amp;gt;protocol_version = MQTT_VERSION_3_1_1;

	/* MQTT buffers configuration */
	client-&amp;gt;rx_buf = rx_buffer;
	client-&amp;gt;rx_buf_size = sizeof(rx_buffer);
	client-&amp;gt;tx_buf = tx_buffer;
	client-&amp;gt;tx_buf_size = sizeof(tx_buffer);

	/* MQTT transport configuration */
#if defined(CONFIG_MQTT_LIB_TLS)
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE;
#endif

	struct mqtt_sec_config *tls_config = &amp;amp;client-&amp;gt;transport.tls.config;

	tls_config-&amp;gt;peer_verify = TLS_PEER_VERIFY_REQUIRED;
	tls_config-&amp;gt;cipher_list = NULL;
	tls_config-&amp;gt;sec_tag_list = m_sec_tags;
	tls_config-&amp;gt;sec_tag_count = ARRAY_SIZE(m_sec_tags);
#if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(CONFIG_NET_SOCKETS_OFFLOAD)
	tls_config-&amp;gt;hostname = TLS_SNI_HOSTNAME;
#else
	tls_config-&amp;gt;hostname = NULL;
#endif

#else
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE;
#endif
#endif

#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.websocket.config.host = SERVER_ADDR;
	client-&amp;gt;transport.websocket.config.url = &amp;quot;/mqtt&amp;quot;;
	client-&amp;gt;transport.websocket.config.tmp_buf = temp_ws_rx_buf;
	client-&amp;gt;transport.websocket.config.tmp_buf_len =
						sizeof(temp_ws_rx_buf);
	client-&amp;gt;transport.websocket.timeout = 5 * MSEC_PER_SEC;
#endif

#if defined(CONFIG_SOCKS)
	mqtt_client_set_proxy(client, &amp;amp;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++ &amp;lt; APP_CONNECT_TRIES &amp;amp;&amp;amp; !connected) {

		client_init(client);

		rc = mqtt_connect(client);
		if (rc != 0) {
			PRINT_RESULT(&amp;quot;mqtt_connect&amp;quot;, 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 &amp;gt; 0 &amp;amp;&amp;amp; connected) {
		if (wait(remaining)) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, rc);
				return rc;
			}
		}

		rc = mqtt_live(client);
		if (rc != 0 &amp;amp;&amp;amp; rc != -EAGAIN) {
			PRINT_RESULT(&amp;quot;mqtt_live&amp;quot;, rc);
			return rc;
		} else if (rc == 0) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, 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(&amp;quot;attempting to connect: &amp;quot;);
	rc = try_to_connect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;try_to_connect&amp;quot;, rc);
	SUCCESS_OR_EXIT(rc);

	i = 0;
	while (i++ &amp;lt; CONFIG_NET_SAMPLE_APP_MAX_ITERATIONS &amp;amp;&amp;amp; connected) {
		r = -1;

		rc = mqtt_ping(&amp;amp;client_ctx);
		PRINT_RESULT(&amp;quot;mqtt_ping&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_0_AT_MOST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_1_AT_LEAST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_2_EXACTLY_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		r = 0;
	}

	rc = mqtt_disconnect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;mqtt_disconnect&amp;quot;, rc);

	LOG_INF(&amp;quot;Bye!&amp;quot;);

	return r;
}

static int start_app(void)
{
	int r = 0, i = 0;

	while (!CONFIG_NET_SAMPLE_APP_MAX_CONNECTIONS ||
	       i++ &amp;lt; 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(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
		CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
		uart_dev-&amp;gt;name, uart_dev, gsm_dev-&amp;gt;name);

	net_mgmt_init_event_callback(&amp;amp;mgmt_cb, event_handler,
				     NET_EVENT_L4_CONNECTED |
				     NET_EVENT_L4_DISCONNECTED);
	net_mgmt_add_event_callback(&amp;amp;mgmt_cb);

////////////////////////////////////////////////////////////////////////////// GSM
#if defined(CONFIG_MQTT_LIB_TLS)
	int rc;

	rc = tls_init();
	PRINT_RESULT(&amp;quot;tls_init&amp;quot;, rc);
#endif

#if defined(CONFIG_USERSPACE)
	int ret;

	struct k_mem_partition *parts[] = {
#if Z_LIBC_PARTITION_EXISTS
		&amp;amp;z_libc_partition,
#endif
		&amp;amp;app_partition
	};

	ret = k_mem_domain_init(&amp;amp;app_domain, ARRAY_SIZE(parts), parts);
	__ASSERT(ret == 0, &amp;quot;k_mem_domain_init() failed %d&amp;quot;, ret);
	ARG_UNUSED(ret);

	k_mem_domain_add_thread(&amp;amp;app_domain, app_thread);
	k_thread_heap_assign(app_thread, &amp;amp;app_mem_pool);

	k_thread_start(app_thread);
	k_thread_join(app_thread, K_FOREVER);
#else
	exit(start_app());
#endif



}
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building mqtt_publisher_test
west build --build-dir f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build f:\Development\nordicsemi\Myapps\mqtt_publisher_test --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DBOARD_ROOT:STRING=&amp;quot;f:/Development/nordicsemi/Myapps/peripheral_test;f:/Development/nordicsemi/Myapps/gsm_modem_test;f:/Development/nordicsemi/Myapps/mqtt_publisher_test&amp;quot; -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=&amp;quot;y&amp;quot; -DCONFIG_DEBUG_THREAD_INFO:STRING=&amp;quot;y&amp;quot; -DDTC_OVERLAY_FILE:STRING=&amp;quot;f:/Development/nordicsemi/Myapps/mqtt_publisher_test/nrf52840dk_nrf52840.overlay&amp;quot; -DCONF_FILE:STRING=&amp;quot;f:/Development/nordicsemi/Myapps/mqtt_publisher_test/prj.conf&amp;quot;

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: F:/Development/nordicsemi/Myapps/mqtt_publisher_test
-- Found Python3: F:/Development/nordicsemi/toolchains/v2.1.2/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: F:/Development/nordicsemi/v2.1.2/zephyr/.cache
-- Zephyr version: 3.1.99 (F:/Development/nordicsemi/v2.1.2/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found dtc: F:/Development/nordicsemi/toolchains/v2.1.2/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found BOARD.dts: F:/Development/nordicsemi/v2.1.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: f:/Development/nordicsemi/Myapps/mqtt_publisher_test/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/dts.cmake
Parsing F:/Development/nordicsemi/Myapps/mqtt_publisher_test/Kconfig
Loaded configuration &amp;#39;F:/Development/nordicsemi/v2.1.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;f:/Development/nordicsemi/Myapps/mqtt_publisher_test/prj.conf&amp;#39;
Merged configuration &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build
-- west build: building application
[1/334] Generating include/generated/version.h
-- Zephyr version: 3.1.99 (F:/Development/nordicsemi/v2.1.2/zephyr), build: v3.1.99-ncs1-1
[2/334] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[3/334] Generating include/generated/driver-validation.h
[4/334] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/334] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/334] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[7/334] Generating include/generated/offsets.h
[8/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/device_service.c.obj
[9/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_log_backend.c.obj
[10/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_fprintf.c.obj
[11/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/backends/shell_uart.c.obj
[12/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_utils.c.obj
[13/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell.c.obj
[14/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service.c.obj
[15/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_ops.c.obj
[16/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_help.c.obj
[17/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/devmem_service.c.obj
[18/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
[19/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_history.c.obj
[20/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_wildcard.c.obj
[21/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_cmds.c.obj
[22/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getaddrinfo.c.obj
[23/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_select.c.obj
[24/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
[25/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[26/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_misc.c.obj
[27/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[28/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[29/334] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[30/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getnameinfo.c.obj
[31/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[32/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[33/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[34/334] Generating linker_zephyr_pre1.cmd
[35/334] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
[36/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[37/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[38/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[39/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets.c.obj
[40/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[41/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_ecp.c.obj
[42/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_mac.c.obj
[43/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[44/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[45/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[46/334] Generating linker_zephyr_pre0.cmd
[47/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_hash.c.obj
[48/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_client.c.obj
[49/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_slot_management.c.obj
[50/334] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[51/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_storage.c.obj
[52/334] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[53/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_rsa.c.obj
[54/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_driver_wrappers.c.obj
[55/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_se.c.obj
[56/334] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[57/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_its_file.c.obj
[58/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ripemd160.c.obj
[59/334] Linking C static library zephyr\arch\common\libisr_tables.a
[60/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa_alt_helpers.c.obj
[61/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cookie.c.obj
[62/334] Linking C static library zephyr\arch\common\libarch__common.a
[63/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha256.c.obj
[64/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cache.c.obj
[65/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_debug_helpers_generated.c.obj
[66/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cli.c.obj
[67/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha1.c.obj
[68/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_client.c.obj
[69/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ticket.c.obj
[70/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha512.c.obj
[71/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_keys.c.obj
[72/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_generic.c.obj
[73/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa.c.obj
[74/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ciphersuites.c.obj
[75/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_server.c.obj
[76/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version_features.c.obj
[77/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/threading.c.obj
[78/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crl.c.obj
[79/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_create.c.obj
[80/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version.c.obj
[81/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/timing.c.obj
[82/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_srv.c.obj
[83/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_msg.c.obj
[84/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_crt.c.obj
[85/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_csr.c.obj
[86/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_csr.c.obj
[87/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
[88/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls.c.obj
[89/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509.c.obj
[90/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[91/334] Building C object modules/segger/CMakeFiles/modules__segger.dir/F_/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
[92/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[93/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crt.c.obj
[94/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[95/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[96/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[97/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_ppi.c.obj
[98/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[99/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[100/334] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
[101/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[102/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[103/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[104/334] Linking C static library modules\segger\libmodules__segger.a
[105/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[106/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[107/334] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[108/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[109/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[110/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[111/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[112/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[113/334] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj 
F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;config-tls-generic.h\&amp;quot; -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IF:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr -IF:/Development/nordicsemi/v2.1.2/zephyr/include -Izephyr/include/generated -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IF:/Development/nordicsemi/v2.1.2/zephyr/lib/util/fnmatch/. -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IF:/Development/nordicsemi/v2.1.2/zephyr/subsys/net/lib/sockets/. -IF:/Development/nordicsemi/v2.1.2/nrf/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/Config -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/segger/. -IF:/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/include -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/mbedtls/configs -isystem F:/Development/nordicsemi/v2.1.2/zephyr/lib/libc/minimal/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros F:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test=CMAKE_SOURCE_DIR -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
../src/main.c: In function &amp;#39;main&amp;#39;:
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: error: &amp;#39;CONFIG_MODEM_GSM_APN&amp;#39; undeclared (first use in this function)
  669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
      |                 ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:167:11: note: in definition of macro &amp;#39;Z_LOG_TO_PRINTK&amp;#39;
  167 |         ##__VA_ARGS__); \
      |           ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: note: each undeclared identifier is reported only once for each function it appears in
  669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
      |                 ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:167:11: note: in definition of macro &amp;#39;Z_LOG_TO_PRINTK&amp;#39;
  167 |         ##__VA_ARGS__); \
      |           ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:34,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util.h:17,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:15,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:65: error: &amp;#39;_v2&amp;#39; undeclared (first use in this function); did you mean &amp;#39;_v5&amp;#39;?
  430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
      |                                                                 ^~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:67:26: note: in definition of macro &amp;#39;__DEBRACKET&amp;#39;
   67 | #define __DEBRACKET(...) __VA_ARGS__
      |                          ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro &amp;#39;__GET_ARG2_DEBRACKET&amp;#39;
   59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro &amp;#39;__COND_CODE&amp;#39;
   56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro &amp;#39;Z_COND_CODE_0&amp;#39;
  173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:132:2: note: in expansion of macro &amp;#39;COND_CODE_0&amp;#39;
  132 |  COND_CODE_0(NUM_VA_ARGS_LESS_1(__VA_ARGS__), \
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:118:7: note: in expansion of macro &amp;#39;Z_CBPRINTF_IS_PCHAR&amp;#39;
  118 |   0 : Z_CBPRINTF_IS_PCHAR(x, flags))
      |       ^~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1055:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_IS_X_PCHAR&amp;#39;
 1055 |  fixed_arg0(idx, x, fixed_arg1)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:33:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_FIXED_ARG_EXEC&amp;#39;
   33 |  z_call(1, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:36:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_2&amp;#39;
   36 |  Z_FOR_LOOP_2(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1058:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1058 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_FIXED_ARG_EXEC, sep, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_FIXED_ARG&amp;#39;
  562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1075:2: note: in expansion of macro &amp;#39;Z_BYPASS&amp;#39;
 1075 |  fixed_arg0(x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:43:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_EXEC&amp;#39;
   43 |  z_call(3, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:569:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
  569 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, (,), Z_BYPASS, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:46: note: in expansion of macro &amp;#39;REVERSE_ARGS&amp;#39;
  562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
      |                                              ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:129:3: note: in expansion of macro &amp;#39;FOR_EACH_IDX_FIXED_ARG&amp;#39;
  129 |  (FOR_EACH_IDX_FIXED_ARG(Z_CBPRINTF_IS_X_PCHAR, (+), flags, __VA_ARGS__))
      |   ^~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:134:8: note: in expansion of macro &amp;#39;Z_CBPRINTF_HAS_PCHAR_ARGS&amp;#39;
  134 |       (Z_CBPRINTF_HAS_PCHAR_ARGS(flags, __VA_ARGS__)))
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:152:9: note: in expansion of macro &amp;#39;Z_CBPRINTF_PCHAR_COUNT&amp;#39;
  152 |   _rv = Z_CBPRINTF_PCHAR_COUNT(flags, __VA_ARGS__) &amp;gt; 0 ? 1 : 0; \
      |         ^~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:302:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_MUST_RUNTIME_PACKAGE&amp;#39;
  302 |  Z_CBPRINTF_MUST_RUNTIME_PACKAGE(flags, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:404:20: note: in expansion of macro &amp;#39;CBPRINTF_MUST_RUNTIME_PACKAGE&amp;#39;
  404 |  bool has_rw_str = CBPRINTF_MUST_RUNTIME_PACKAGE( \
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:64:53: note: in expansion of macro &amp;#39;__DEBRACKET&amp;#39;
   64 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
      |                                                     ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro &amp;#39;__GET_ARG2_DEBRACKET&amp;#39;
   59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro &amp;#39;__COND_CODE&amp;#39;
   56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro &amp;#39;Z_COND_CODE_0&amp;#39;
  173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:40: note: in expansion of macro &amp;#39;COND_CODE_0&amp;#39;
  430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
      |                                        ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_LOG_LOCAL_ARG_NAME&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:449:7: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  449 |       FOR_EACH_IDX(Z_LOG_LOCAL_ARG_NAME, (,), __VA_ARGS__)); \
      |       ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
  290 |  BUILD_ASSERT(!((sizeof(double) &amp;lt; VA_STACK_ALIGN(long double)) &amp;amp;&amp;amp; \
      |               ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:176:8: error: &amp;#39;_v&amp;#39; undeclared (first use in this function); did you mean &amp;#39;_v5&amp;#39;?
  176 |  (void)_v; \
      |        ^~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:298:23: note: in expansion of macro &amp;#39;Z_CBPRINTF_ARG_SIZE&amp;#39;
  298 |  uint32_t _arg_size = Z_CBPRINTF_ARG_SIZE(_arg); \
      |                       ^~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
  290 |  BUILD_ASSERT(!((sizeof(double) &amp;lt; VA_STACK_ALIGN(long double)) &amp;amp;&amp;amp; \
      |               ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:227:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  227 |   CBPRINTF_STATIC_PACKAGE(_msg-&amp;gt;data, _plen, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  668 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
[114/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[115/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[116/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[117/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[118/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[119/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[120/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[121/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[122/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;f:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399652?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b446a6b0-7fd0-43b7-9b50-ef16e7948b2c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Can you please share your build-folder\zephyr\.config file?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399645?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a9e1ab-48df-4a7e-9a6a-ca4179513367</guid><dc:creator>Muqarrab</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/94401/nrf-connect-sdk-with-external-gsm-7600-with-nrf52840/399637"]is this symbol defined at your end?[/quote]
&lt;p&gt;Yes it&amp;#39;s defined&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670502231702v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670502323770v5.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399637?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3540a87-cc52-4694-acf4-2c83552b9f5b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The compiler states that modem_on_cb and modem_off_cb is not defined.&lt;/p&gt;
&lt;p&gt;You seem to have guarded these functions with &amp;quot;#if defined(CONFIG_MQTT_LIB_TLS)&amp;quot; - is this symbol defined at your end?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399429?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 13:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17be461b-a332-4ed1-aa35-023498b656c6</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;any solution please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/399208?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 13:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9be904e-a44c-407a-90a1-bffdae0dce16</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;I have added the&amp;nbsp;network-related libraries but getting the following errors &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2017 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(net_mqtt_publisher_sample, LOG_LEVEL_DBG);

#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/net/socket.h&amp;gt;
#include &amp;lt;zephyr/net/mqtt.h&amp;gt;
#include &amp;lt;zephyr/random/rand32.h&amp;gt;

#include &amp;lt;string.h&amp;gt;
#include &amp;lt;errno.h&amp;gt;

#include &amp;quot;config.h&amp;quot;


/////////////////////////////////////////////////////////////////// GSM


#include &amp;lt;zephyr/zephyr.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;
#include &amp;lt;zephyr/shell/shell.h&amp;gt;
#include &amp;lt;zephyr/drivers/uart.h&amp;gt;
#include &amp;lt;zephyr/net/net_mgmt.h&amp;gt;
#include &amp;lt;zephyr/net/net_event.h&amp;gt;
#include &amp;lt;zephyr/net/net_conn_mgr.h&amp;gt;
#include &amp;lt;zephyr/drivers/modem/gsm_ppp.h&amp;gt;
#include &amp;lt;zephyr/devicetree.h&amp;gt;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
// 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 &amp;lt;zephyr/app_memory/app_memdomain.h&amp;gt;
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 &amp;quot;test_certs.h&amp;quot;

#define TLS_SNI_HOSTNAME &amp;quot;localhost&amp;quot;
#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
};


/////////////////////////////////////////////////////////////////// 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, &amp;quot;Modem is already stopped.\n&amp;quot;);
		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, &amp;quot;Modem is already started.\n&amp;quot;);
		return -ENOEXEC;
	}

	gsm_ppp_start(gsm_dev);
	starting = true;

	return 0;
}

SHELL_STATIC_SUBCMD_SET_CREATE(sample_commands,
	SHELL_CMD(resume, NULL,
		  &amp;quot;Resume the modem\n&amp;quot;,
		  cmd_sample_modem_resume),
	SHELL_CMD(suspend, NULL,
		  &amp;quot;Suspend the modem\n&amp;quot;,
		  cmd_sample_modem_suspend),
	SHELL_SUBCMD_SET_END
);

SHELL_CMD_REGISTER(sample, &amp;amp;sample_commands,
		   &amp;quot;Sample application commands&amp;quot;, 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 &amp;amp; (NET_EVENT_L4_CONNECTED
			   | NET_EVENT_L4_DISCONNECTED)) != mgmt_event) {
		return;
	}

	if (mgmt_event == NET_EVENT_L4_CONNECTED) {
		LOG_INF(&amp;quot;Network connected&amp;quot;);
		return;
	}

	if (mgmt_event == NET_EVENT_L4_DISCONNECTED) {
		LOG_INF(&amp;quot;Network disconnected&amp;quot;);
		return;
	}
}

static void modem_on_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem on callback fired&amp;quot;);
}

static void modem_off_cb(const struct device *dev, void *user_data)
{
	ARG_UNUSED(dev);
	ARG_UNUSED(user_data);

	LOG_INF(&amp;quot;GSM modem off callback fired&amp;quot;);
}

/////////////////////////////////////////////////////////////////// GSM

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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register public certificate: %d&amp;quot;, 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 &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK: %d&amp;quot;, err);
		return err;
	}

	err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK_ID,
				 client_psk_id, sizeof(client_psk_id) - 1);
	if (err &amp;lt; 0) {
		LOG_ERR(&amp;quot;Failed to register PSK ID: %d&amp;quot;, err);
	}
#endif

	return err;
}

#endif /* CONFIG_MQTT_LIB_TLS */

static void prepare_fds(struct mqtt_client *client)
{
	if (client-&amp;gt;transport.type == MQTT_TRANSPORT_NON_SECURE) {
		fds[0].fd = client-&amp;gt;transport.tcp.sock;
	}
#if defined(CONFIG_MQTT_LIB_TLS)
	else if (client-&amp;gt;transport.type == MQTT_TRANSPORT_SECURE) {
		fds[0].fd = client-&amp;gt;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 &amp;gt; 0) {
		ret = zsock_poll(fds, nfds, timeout);
		if (ret &amp;lt; 0) {
			LOG_ERR(&amp;quot;poll error: %d&amp;quot;, errno);
		}
	}

	return ret;
}

void mqtt_evt_handler(struct mqtt_client *const client,
		      const struct mqtt_evt *evt)
{
	int err;

	switch (evt-&amp;gt;type) {
	case MQTT_EVT_CONNACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT connect failed %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		connected = true;
		LOG_INF(&amp;quot;MQTT client connected!&amp;quot;);

		break;

	case MQTT_EVT_DISCONNECT:
		LOG_INF(&amp;quot;MQTT client disconnected %d&amp;quot;, evt-&amp;gt;result);

		connected = false;
		clear_fds();

		break;

	case MQTT_EVT_PUBACK:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBACK error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBACK packet id: %u&amp;quot;, evt-&amp;gt;param.puback.message_id);

		break;

	case MQTT_EVT_PUBREC:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBREC error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBREC packet id: %u&amp;quot;, evt-&amp;gt;param.pubrec.message_id);

		const struct mqtt_pubrel_param rel_param = {
			.message_id = evt-&amp;gt;param.pubrec.message_id
		};

		err = mqtt_publish_qos2_release(client, &amp;amp;rel_param);
		if (err != 0) {
			LOG_ERR(&amp;quot;Failed to send MQTT PUBREL: %d&amp;quot;, err);
		}

		break;

	case MQTT_EVT_PUBCOMP:
		if (evt-&amp;gt;result != 0) {
			LOG_ERR(&amp;quot;MQTT PUBCOMP error %d&amp;quot;, evt-&amp;gt;result);
			break;
		}

		LOG_INF(&amp;quot;PUBCOMP packet id: %u&amp;quot;,
			evt-&amp;gt;param.pubcomp.message_id);

		break;

	case MQTT_EVT_PINGRESP:
		LOG_INF(&amp;quot;PINGRESP packet&amp;quot;);
		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), &amp;quot;{d:{temperature:%d}}&amp;quot;,
		 (uint8_t)sys_rand32_get());
#else
	static APP_DMEM char payload[] = &amp;quot;DOORS:OPEN_QoSx&amp;quot;;

	payload[strlen(payload) - 1] = &amp;#39;0&amp;#39; + qos;
#endif

	return payload;
}

static char *get_mqtt_topic(void)
{
#if APP_BLUEMIX_TOPIC
	return &amp;quot;iot-2/type/&amp;quot;BLUEMIX_DEVTYPE&amp;quot;/id/&amp;quot;BLUEMIX_DEVID
	       &amp;quot;/evt/&amp;quot;BLUEMIX_EVENT&amp;quot;/fmt/&amp;quot;BLUEMIX_FORMAT;
#else
	return &amp;quot;sensors&amp;quot;;
#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, &amp;amp;param);
}

#define RC_STR(rc) ((rc) == 0 ? &amp;quot;OK&amp;quot; : &amp;quot;ERROR&amp;quot;)

#define PRINT_RESULT(func, rc) \
	LOG_INF(&amp;quot;%s: %d &amp;lt;%s&amp;gt;&amp;quot;, (func), rc, RC_STR(rc))

static void broker_init(void)
{
#if defined(CONFIG_NET_IPV6)
	struct sockaddr_in6 *broker6 = (struct sockaddr_in6 *)&amp;amp;broker;

	broker6-&amp;gt;sin6_family = AF_INET6;
	broker6-&amp;gt;sin6_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET6, SERVER_ADDR, &amp;amp;broker6-&amp;gt;sin6_addr);

#if defined(CONFIG_SOCKS)
	struct sockaddr_in6 *proxy6 = (struct sockaddr_in6 *)&amp;amp;socks5_proxy;

	proxy6-&amp;gt;sin6_family = AF_INET6;
	proxy6-&amp;gt;sin6_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET6, SOCKS5_PROXY_ADDR, &amp;amp;proxy6-&amp;gt;sin6_addr);
#endif
#else
	struct sockaddr_in *broker4 = (struct sockaddr_in *)&amp;amp;broker;

	broker4-&amp;gt;sin_family = AF_INET;
	broker4-&amp;gt;sin_port = htons(SERVER_PORT);
	zsock_inet_pton(AF_INET, SERVER_ADDR, &amp;amp;broker4-&amp;gt;sin_addr);
#if defined(CONFIG_SOCKS)
	struct sockaddr_in *proxy4 = (struct sockaddr_in *)&amp;amp;socks5_proxy;

	proxy4-&amp;gt;sin_family = AF_INET;
	proxy4-&amp;gt;sin_port = htons(SOCKS5_PROXY_PORT);
	zsock_inet_pton(AF_INET, SOCKS5_PROXY_ADDR, &amp;amp;proxy4-&amp;gt;sin_addr);
#endif
#endif
}

static void client_init(struct mqtt_client *client)
{

struct mqtt_utf8 pass,name;

pass.size = strlen(&amp;quot;dnTdLm8qndcg&amp;quot;);
pass.utf8 = (uint8_t*)&amp;quot;dnTdLm8qndcg&amp;quot;;
name.size = strlen(&amp;quot;nnrhlnnv&amp;quot;);
name.utf8 = (uint8_t *)&amp;quot;nnrhlnnv&amp;quot;;


	mqtt_client_init(client);

	broker_init();

	/* MQTT client configuration */
	client-&amp;gt;broker = (uint8_t*)&amp;quot;driver.cloudmqtt.com&amp;quot;; //&amp;amp;broker;
	client-&amp;gt;evt_cb = mqtt_evt_handler;
	client-&amp;gt;client_id.utf8 = (uint8_t *)MQTT_CLIENTID;
	client-&amp;gt;client_id.size = strlen(MQTT_CLIENTID);
	client-&amp;gt;password = &amp;amp;pass;
	client-&amp;gt;user_name = &amp;amp;name;

	// client-&amp;gt;password = &amp;quot;dnTdLm8qndcg&amp;quot;;
	// client-&amp;gt;user_name = &amp;quot;nnrhlnnv&amp;quot;;
	client-&amp;gt;protocol_version = MQTT_VERSION_3_1_1;

	/* MQTT buffers configuration */
	client-&amp;gt;rx_buf = rx_buffer;
	client-&amp;gt;rx_buf_size = sizeof(rx_buffer);
	client-&amp;gt;tx_buf = tx_buffer;
	client-&amp;gt;tx_buf_size = sizeof(tx_buffer);

	/* MQTT transport configuration */
#if defined(CONFIG_MQTT_LIB_TLS)
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE;
#endif

	struct mqtt_sec_config *tls_config = &amp;amp;client-&amp;gt;transport.tls.config;

	tls_config-&amp;gt;peer_verify = TLS_PEER_VERIFY_REQUIRED;
	tls_config-&amp;gt;cipher_list = NULL;
	tls_config-&amp;gt;sec_tag_list = m_sec_tags;
	tls_config-&amp;gt;sec_tag_count = ARRAY_SIZE(m_sec_tags);
#if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(CONFIG_NET_SOCKETS_OFFLOAD)
	tls_config-&amp;gt;hostname = TLS_SNI_HOSTNAME;
#else
	tls_config-&amp;gt;hostname = NULL;
#endif

#else
#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE_WEBSOCKET;
#else
	client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE;
#endif
#endif

#if defined(CONFIG_MQTT_LIB_WEBSOCKET)
	client-&amp;gt;transport.websocket.config.host = SERVER_ADDR;
	client-&amp;gt;transport.websocket.config.url = &amp;quot;/mqtt&amp;quot;;
	client-&amp;gt;transport.websocket.config.tmp_buf = temp_ws_rx_buf;
	client-&amp;gt;transport.websocket.config.tmp_buf_len =
						sizeof(temp_ws_rx_buf);
	client-&amp;gt;transport.websocket.timeout = 5 * MSEC_PER_SEC;
#endif

#if defined(CONFIG_SOCKS)
	mqtt_client_set_proxy(client, &amp;amp;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++ &amp;lt; APP_CONNECT_TRIES &amp;amp;&amp;amp; !connected) {

		client_init(client);

		rc = mqtt_connect(client);
		if (rc != 0) {
			PRINT_RESULT(&amp;quot;mqtt_connect&amp;quot;, 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 &amp;gt; 0 &amp;amp;&amp;amp; connected) {
		if (wait(remaining)) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, rc);
				return rc;
			}
		}

		rc = mqtt_live(client);
		if (rc != 0 &amp;amp;&amp;amp; rc != -EAGAIN) {
			PRINT_RESULT(&amp;quot;mqtt_live&amp;quot;, rc);
			return rc;
		} else if (rc == 0) {
			rc = mqtt_input(client);
			if (rc != 0) {
				PRINT_RESULT(&amp;quot;mqtt_input&amp;quot;, 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(&amp;quot;attempting to connect: &amp;quot;);
	rc = try_to_connect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;try_to_connect&amp;quot;, rc);
	SUCCESS_OR_EXIT(rc);

	i = 0;
	while (i++ &amp;lt; CONFIG_NET_SAMPLE_APP_MAX_ITERATIONS &amp;amp;&amp;amp; connected) {
		r = -1;

		rc = mqtt_ping(&amp;amp;client_ctx);
		PRINT_RESULT(&amp;quot;mqtt_ping&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_0_AT_MOST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_1_AT_LEAST_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		rc = publish(&amp;amp;client_ctx, MQTT_QOS_2_EXACTLY_ONCE);
		PRINT_RESULT(&amp;quot;mqtt_publish&amp;quot;, rc);
		SUCCESS_OR_BREAK(rc);

		rc = process_mqtt_and_sleep(&amp;amp;client_ctx, APP_SLEEP_MSECS);
		SUCCESS_OR_BREAK(rc);

		r = 0;
	}

	rc = mqtt_disconnect(&amp;amp;client_ctx);
	PRINT_RESULT(&amp;quot;mqtt_disconnect&amp;quot;, rc);

	LOG_INF(&amp;quot;Bye!&amp;quot;);

	return r;
}

static int start_app(void)
{
	int r = 0, i = 0;

	while (!CONFIG_NET_SAMPLE_APP_MAX_CONNECTIONS ||
	       i++ &amp;lt; 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(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
		CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
		uart_dev-&amp;gt;name, uart_dev, gsm_dev-&amp;gt;name);

	net_mgmt_init_event_callback(&amp;amp;mgmt_cb, event_handler,
				     NET_EVENT_L4_CONNECTED |
				     NET_EVENT_L4_DISCONNECTED);
	net_mgmt_add_event_callback(&amp;amp;mgmt_cb);
////////////////////////////////////////////////////////////////////////////// GSM



#if defined(CONFIG_MQTT_LIB_TLS)
	int rc;

	rc = tls_init();
	PRINT_RESULT(&amp;quot;tls_init&amp;quot;, rc);
#endif

#if defined(CONFIG_USERSPACE)
	int ret;

	struct k_mem_partition *parts[] = {
#if Z_LIBC_PARTITION_EXISTS
		&amp;amp;z_libc_partition,
#endif
		&amp;amp;app_partition
	};

	ret = k_mem_domain_init(&amp;amp;app_domain, ARRAY_SIZE(parts), parts);
	__ASSERT(ret == 0, &amp;quot;k_mem_domain_init() failed %d&amp;quot;, ret);
	ARG_UNUSED(ret);

	k_mem_domain_add_thread(&amp;amp;app_domain, app_thread);
	k_thread_heap_assign(app_thread, &amp;amp;app_mem_pool);

	k_thread_start(app_thread);
	k_thread_join(app_thread, K_FOREVER);
#else
	exit(start_app());
#endif
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670334055142v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Build [pristine]: mqtt_publisher_test/build (active) 

Building mqtt_publisher_test
west build --build-dir f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build f:\Development\nordicsemi\Myapps\mqtt_publisher_test --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DBOARD_ROOT:STRING=&amp;quot;f:/Development/nordicsemi/Myapps/peripheral_test;f:/Development/nordicsemi/Myapps/gsm_modem_test;f:/Development/nordicsemi/Myapps/mqtt_publisher_test&amp;quot; -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=&amp;quot;y&amp;quot; -DCONFIG_DEBUG_THREAD_INFO:STRING=&amp;quot;y&amp;quot; -DDTC_OVERLAY_FILE:STRING=&amp;quot;f:/Development/nordicsemi/Myapps/mqtt_publisher_test/nrf52840dk_nrf52840.overlay&amp;quot; -DCONF_FILE:STRING=&amp;quot;f:/Development/nordicsemi/Myapps/mqtt_publisher_test/prj.conf&amp;quot;

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: F:/Development/nordicsemi/Myapps/mqtt_publisher_test
-- Found Python3: F:/Development/nordicsemi/toolchains/v2.1.2/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: F:/Development/nordicsemi/v2.1.2/zephyr/.cache
-- Zephyr version: 3.1.99 (F:/Development/nordicsemi/v2.1.2/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found dtc: F:/Development/nordicsemi/toolchains/v2.1.2/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found BOARD.dts: F:/Development/nordicsemi/v2.1.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: f:/Development/nordicsemi/Myapps/mqtt_publisher_test/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/dts.cmake
Parsing F:/Development/nordicsemi/Myapps/mqtt_publisher_test/Kconfig
Loaded configuration &amp;#39;F:/Development/nordicsemi/v2.1.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;f:/Development/nordicsemi/Myapps/mqtt_publisher_test/prj.conf&amp;#39;
Merged configuration &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build
-- west build: building application
[1/334] Generating include/generated/version.h
-- Zephyr version: 3.1.99 (F:/Development/nordicsemi/v2.1.2/zephyr), build: v3.1.99-ncs1-1
[2/334] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[3/334] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[4/334] Generating include/generated/driver-validation.h
[5/334] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/334] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[7/334] Generating include/generated/offsets.h
[8/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_help.c.obj
[9/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_cmds.c.obj
[10/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_log_backend.c.obj
[11/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_utils.c.obj
[12/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/devmem_service.c.obj
[13/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service.c.obj
[14/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/device_service.c.obj
[15/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/backends/shell_uart.c.obj
[16/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_ops.c.obj
[17/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell.c.obj
[18/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
[19/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_history.c.obj
[20/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_fprintf.c.obj
[21/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
[22/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[23/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[24/334] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[25/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_wildcard.c.obj
[26/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_select.c.obj
[27/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[28/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[29/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[30/334] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
[31/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_misc.c.obj
[32/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getnameinfo.c.obj
[33/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getaddrinfo.c.obj
[34/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[35/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[36/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[37/334] Generating linker_zephyr_pre1.cmd
[38/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[39/334] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[40/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[41/334] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets.c.obj
[42/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_ecp.c.obj
[43/334] Building C object modules/segger/CMakeFiles/modules__segger.dir/F_/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
[44/334] Generating linker_zephyr_pre0.cmd
[45/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_client.c.obj
[46/334] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[47/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_mac.c.obj
[48/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[49/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_hash.c.obj
[50/334] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[51/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_slot_management.c.obj
[52/334] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[53/334] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
[54/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_se.c.obj
[55/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_its_file.c.obj
[56/334] Linking C static library zephyr\arch\common\libisr_tables.a
[57/334] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[58/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_rsa.c.obj
[59/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_storage.c.obj
[60/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ripemd160.c.obj
[61/334] Linking C static library modules\segger\libmodules__segger.a
[62/334] Linking C static library zephyr\arch\common\libarch__common.a
[63/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cache.c.obj
[64/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha256.c.obj
[65/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cookie.c.obj
[66/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha1.c.obj
[67/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa_alt_helpers.c.obj
[68/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_driver_wrappers.c.obj
[69/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha512.c.obj
[70/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ticket.c.obj
[71/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_client.c.obj
[72/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_debug_helpers_generated.c.obj
[73/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_server.c.obj
[74/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_generic.c.obj
[75/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ciphersuites.c.obj
[76/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa.c.obj
[77/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/threading.c.obj
[78/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_keys.c.obj
[79/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_create.c.obj
[80/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crl.c.obj
[81/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cli.c.obj
[82/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version.c.obj
[83/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/timing.c.obj
[84/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version_features.c.obj
[85/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_csr.c.obj
[86/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_crt.c.obj
[87/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_srv.c.obj
[88/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_csr.c.obj
[89/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_msg.c.obj
[90/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509.c.obj
[91/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls.c.obj
[92/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[93/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[94/334] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crt.c.obj
[95/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[96/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[97/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
[98/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_ppi.c.obj
[99/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[100/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[101/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[102/334] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj 
F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;config-tls-generic.h\&amp;quot; -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IF:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr -IF:/Development/nordicsemi/v2.1.2/zephyr/include -Izephyr/include/generated -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IF:/Development/nordicsemi/v2.1.2/zephyr/lib/util/fnmatch/. -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IF:/Development/nordicsemi/v2.1.2/zephyr/subsys/net/lib/sockets/. -IF:/Development/nordicsemi/v2.1.2/nrf/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/Config -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/segger/. -IF:/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/include -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/mbedtls/configs -isystem F:/Development/nordicsemi/v2.1.2/zephyr/lib/libc/minimal/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros F:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test=CMAKE_SOURCE_DIR -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
../src/main.c: In function &amp;#39;main&amp;#39;:
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:665:49: error: &amp;#39;modem_on_cb&amp;#39; undeclared (first use in this function)
  665 |  gsm_ppp_register_modem_power_callback(gsm_dev, modem_on_cb, modem_off_cb, NULL);
      |                                                 ^~~~~~~~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:665:49: note: each undeclared identifier is reported only once for each function it appears in
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:665:62: error: &amp;#39;modem_off_cb&amp;#39; undeclared (first use in this function)
  665 |  gsm_ppp_register_modem_power_callback(gsm_dev, modem_on_cb, modem_off_cb, NULL);
      |                                                              ^~~~~~~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:17: error: &amp;#39;CONFIG_MODEM_GSM_APN&amp;#39; undeclared (first use in this function)
  668 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
      |                 ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:167:11: note: in definition of macro &amp;#39;Z_LOG_TO_PRINTK&amp;#39;
  167 |         ##__VA_ARGS__); \
      |           ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:667:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  667 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:34,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util.h:17,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:15,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:65: error: &amp;#39;_v2&amp;#39; undeclared (first use in this function); did you mean &amp;#39;_v5&amp;#39;?
  430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
      |                                                                 ^~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:67:26: note: in definition of macro &amp;#39;__DEBRACKET&amp;#39;
   67 | #define __DEBRACKET(...) __VA_ARGS__
      |                          ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro &amp;#39;__GET_ARG2_DEBRACKET&amp;#39;
   59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro &amp;#39;__COND_CODE&amp;#39;
   56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro &amp;#39;Z_COND_CODE_0&amp;#39;
  173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:132:2: note: in expansion of macro &amp;#39;COND_CODE_0&amp;#39;
  132 |  COND_CODE_0(NUM_VA_ARGS_LESS_1(__VA_ARGS__), \
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:118:7: note: in expansion of macro &amp;#39;Z_CBPRINTF_IS_PCHAR&amp;#39;
  118 |   0 : Z_CBPRINTF_IS_PCHAR(x, flags))
      |       ^~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1055:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_IS_X_PCHAR&amp;#39;
 1055 |  fixed_arg0(idx, x, fixed_arg1)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:33:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_FIXED_ARG_EXEC&amp;#39;
   33 |  z_call(1, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:36:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_2&amp;#39;
   36 |  Z_FOR_LOOP_2(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1058:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1058 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_FIXED_ARG_EXEC, sep, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_FIXED_ARG&amp;#39;
  562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1075:2: note: in expansion of macro &amp;#39;Z_BYPASS&amp;#39;
 1075 |  fixed_arg0(x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:43:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_EXEC&amp;#39;
   43 |  z_call(3, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:569:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
  569 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, (,), Z_BYPASS, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:46: note: in expansion of macro &amp;#39;REVERSE_ARGS&amp;#39;
  562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
      |                                              ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:129:3: note: in expansion of macro &amp;#39;FOR_EACH_IDX_FIXED_ARG&amp;#39;
  129 |  (FOR_EACH_IDX_FIXED_ARG(Z_CBPRINTF_IS_X_PCHAR, (+), flags, __VA_ARGS__))
      |   ^~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:134:8: note: in expansion of macro &amp;#39;Z_CBPRINTF_HAS_PCHAR_ARGS&amp;#39;
  134 |       (Z_CBPRINTF_HAS_PCHAR_ARGS(flags, __VA_ARGS__)))
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:152:9: note: in expansion of macro &amp;#39;Z_CBPRINTF_PCHAR_COUNT&amp;#39;
  152 |   _rv = Z_CBPRINTF_PCHAR_COUNT(flags, __VA_ARGS__) &amp;gt; 0 ? 1 : 0; \
      |         ^~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:302:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_MUST_RUNTIME_PACKAGE&amp;#39;
  302 |  Z_CBPRINTF_MUST_RUNTIME_PACKAGE(flags, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:404:20: note: in expansion of macro &amp;#39;CBPRINTF_MUST_RUNTIME_PACKAGE&amp;#39;
  404 |  bool has_rw_str = CBPRINTF_MUST_RUNTIME_PACKAGE( \
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:64:53: note: in expansion of macro &amp;#39;__DEBRACKET&amp;#39;
   64 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
      |                                                     ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro &amp;#39;__GET_ARG2_DEBRACKET&amp;#39;
   59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro &amp;#39;__COND_CODE&amp;#39;
   56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro &amp;#39;Z_COND_CODE_0&amp;#39;
  173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
      |  ^~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:40: note: in expansion of macro &amp;#39;COND_CODE_0&amp;#39;
  430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
      |                                        ^~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_LOG_LOCAL_ARG_NAME&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:449:7: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  449 |       FOR_EACH_IDX(Z_LOG_LOCAL_ARG_NAME, (,), __VA_ARGS__)); \
      |       ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:667:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  667 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
  290 |  BUILD_ASSERT(!((sizeof(double) &amp;lt; VA_STACK_ALIGN(long double)) &amp;amp;&amp;amp; \
      |               ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:667:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  667 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:176:8: error: &amp;#39;_v&amp;#39; undeclared (first use in this function); did you mean &amp;#39;_v5&amp;#39;?
  176 |  (void)_v; \
      |        ^~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:298:23: note: in expansion of macro &amp;#39;Z_CBPRINTF_ARG_SIZE&amp;#39;
  298 |  uint32_t _arg_size = Z_CBPRINTF_ARG_SIZE(_arg); \
      |                       ^~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:667:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  667 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                 from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                 from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
  290 |  BUILD_ASSERT(!((sizeof(double) &amp;lt; VA_STACK_ALIGN(long double)) &amp;amp;&amp;amp; \
      |               ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG2&amp;#39;
  333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
      |  ^~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_PACK_ARG&amp;#39;
 1069 |  fixed_arg0(idx, x)
      |  ^~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX_EXEC&amp;#39;
   38 |  z_call(2, x, fixed_arg0, fixed_arg1)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_3&amp;#39;
   41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_4&amp;#39;
   46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro &amp;#39;Z_FOR_LOOP_5&amp;#39;
   51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro &amp;#39;Z_FOR_LOOP_6&amp;#39;
   23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                     ^
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_ENGINE&amp;#39;
 1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro &amp;#39;Z_FOR_EACH_IDX&amp;#39;
  506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |  ^~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro &amp;#39;FOR_EACH_IDX&amp;#39;
  440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |  ^~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE_GENERIC&amp;#39;
  477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro &amp;#39;Z_CBPRINTF_STATIC_PACKAGE&amp;#39;
  335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:227:3: note: in expansion of macro &amp;#39;CBPRINTF_STATIC_PACKAGE&amp;#39;
  227 |   CBPRINTF_STATIC_PACKAGE(_msg-&amp;gt;data, _plen, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro &amp;#39;Z_LOG_MSG2_STACK_CREATE&amp;#39;
  414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE3&amp;#39;
  447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE2&amp;#39;
  458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |  ^~~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro &amp;#39;Z_LOG_MSG2_CREATE&amp;#39;
  240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |  ^~~~~~~~~~~~~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro &amp;#39;Z_LOG2&amp;#39;
  252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |  ^~~~~~
F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro &amp;#39;Z_LOG&amp;#39;
   61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:667:2: note: in expansion of macro &amp;#39;LOG_INF&amp;#39;
  667 |  LOG_INF(&amp;quot;Board &amp;#39;%s&amp;#39; APN &amp;#39;%s&amp;#39; UART &amp;#39;%s&amp;#39; device %p (%s)&amp;quot;,
      |  ^~~~~~~
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:671:41: error: &amp;#39;event_handler&amp;#39; undeclared (first use in this function); did you mean &amp;#39;mqtt_evt_handler&amp;#39;?
  671 |  net_mgmt_init_event_callback(&amp;amp;mgmt_cb, event_handler,
      |                                         ^~~~~~~~~~~~~
      |                                         mqtt_evt_handler
At top level:
f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:42:13: warning: &amp;#39;starting&amp;#39; defined but not used [-Wunused-variable]
   42 | static bool starting = IS_ENABLED(CONFIG_GSM_PPP_AUTOSTART);
      |             ^~~~~~~~
[103/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[104/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[105/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[106/334] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[107/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[108/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[109/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[110/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[111/334] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;f:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/398824?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 17:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81f395b6-1744-4a2f-b7ab-c1550a725a87</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The log shows that the network interface isn&amp;#39;t initialized. Have you tried using the gsm modem sample as a base and adding network related libraries to that instead?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/398689?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 07:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:930c4c87-7092-4330-966d-370a0f93d12a</guid><dc:creator>Muqarrab</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/94401/nrf-connect-sdk-with-external-gsm-7600-with-nrf52840/398641"]Did you also add the overlay for your modem?[/quote]
&lt;p&gt;Yes, I have added as below.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669967600658v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/94401/nrf-connect-sdk-with-external-gsm-7600-with-nrf52840/398641"]What does the full log state?[/quote]
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669967668451v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/398641?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 19:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11c4df07-cebd-4b18-9c0c-c8d027b914be</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Did you also add the overlay for your modem?&lt;/p&gt;
&lt;p&gt;What does the full log state?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/398506?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 10:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c3a0577-c61d-4584-8509-ec6f4dd5e31a</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;I have uploaded the code and getting the following error.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669891267858v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/398488?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 09:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1517e63-e609-4684-bfc8-e6fdde52aeba</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Technically, with this configuration:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/3.0.0/reference/kconfig/CONFIG_MODEM_SOCKET.html"&gt;https://docs.zephyrproject.org/3.0.0/reference/kconfig/CONFIG_MODEM_SOCKET.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should be able to offload the gsm modem to use zephyr sockets, which again should allow you to use socket based libraries, like mqtt, on top of that again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That being said, we do not have any hands-on experience working with the specific modem that you&amp;#39;re using, so it might be beneficial to ask the zephyr community if you&amp;#39;re stuck on the simcom 7600g network configuration.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK with External GSM 7600 with nRF52840</title><link>https://devzone.nordicsemi.com/thread/398481?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 09:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d46b52d-ba31-4050-b287-6924e96fbe59</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can I use this example to connect and send data to the MQTT server?&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.zephyrproject.org/2.5.0/samples/net/mqtt_publisher/README.html"&gt;MQTT Publisher&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>