<?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>MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72993/mqtts-connection-speed-that-does-not-require-any-certificate-is-very-slow</link><description>I verify the TLS connection without a certificate in the matt_samples routine. I found that the connection to the server is very slow, it takes more than 20 seconds, how can I solve this problem? 
 I use NBIOT and ncs1.5.0. 
 Here is my mqtt_init: 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Apr 2021 11:20:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72993/mqtts-connection-speed-that-does-not-require-any-certificate-is-very-slow" /><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/307218?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 11:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0eee941-b9a5-48ad-8df0-5511a7fef686</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Thanks for the trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/307119?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 02:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceb0773f-fa58-4256-aca9-716ec34822fc</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;I think this is a SDK bug, not a modem firmware problem. I reacquired the modem trace.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_04_2D00_28T02_2D00_21_2D00_08.402Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_04_2D00_28T02_2D00_21_2D00_08.402Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is a demo.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6661.mqtt_5F00_simple_5F00_test.rar"&gt;devzone.nordicsemi.com/.../6661.mqtt_5F00_simple_5F00_test.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/306984?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 11:04:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91cecf3e-00ba-47a8-84a3-d23b4b2cd4b0</guid><dc:creator>Hakon</dc:creator><description>[quote user="xinjiang"]What is the reason for errno = -45?[/quote]
&lt;p&gt;&amp;nbsp;It is usually a certificate issue. The best to know for sure is to do a proper modem trace to get the details from the TLS handshake.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/305762?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 09:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84db9dc2-0987-4158-843d-e8635548c9b5</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int mqtt_client_tls_connect(struct mqtt_client *client)
{
	const struct sockaddr *broker = client-&amp;gt;broker;
	struct mqtt_sec_config *tls_config = &amp;amp;client-&amp;gt;transport.tls.config;
	int ret;

	client-&amp;gt;transport.tls.sock = zsock_socket(broker-&amp;gt;sa_family,
						  SOCK_STREAM, IPPROTO_TLS_1_2);
	if (client-&amp;gt;transport.tls.sock &amp;lt; 0) {
		return -errno;
	}

	MQTT_TRC(&amp;quot;Created socket %d&amp;quot;, client-&amp;gt;transport.tls.sock);

#if defined(CONFIG_SOCKS)
	if (client-&amp;gt;transport.proxy.addrlen != 0) {
		ret = setsockopt(client-&amp;gt;transport.tls.sock,
				 SOL_SOCKET, SO_SOCKS5,
				 &amp;amp;client-&amp;gt;transport.proxy.addr,
				 client-&amp;gt;transport.proxy.addrlen);
		if (ret &amp;lt; 0) {
			return -errno;
		}
	}
#endif
	/* Set secure socket options. */
	ret = zsock_setsockopt(client-&amp;gt;transport.tls.sock, SOL_TLS, TLS_PEER_VERIFY,
			       &amp;amp;tls_config-&amp;gt;peer_verify,
			       sizeof(tls_config-&amp;gt;peer_verify));
	if (ret &amp;lt; 0) {
		goto error;
	}

	if (tls_config-&amp;gt;cipher_list != NULL &amp;amp;&amp;amp; tls_config-&amp;gt;cipher_count &amp;gt; 0) {
		ret = zsock_setsockopt(client-&amp;gt;transport.tls.sock, SOL_TLS,
				       TLS_CIPHERSUITE_LIST, tls_config-&amp;gt;cipher_list,
				       sizeof(int) * tls_config-&amp;gt;cipher_count);
		if (ret &amp;lt; 0) {
			goto error;
		}
	}

	if (tls_config-&amp;gt;sec_tag_list != NULL &amp;amp;&amp;amp; tls_config-&amp;gt;sec_tag_count &amp;gt; 0) {
		ret = zsock_setsockopt(client-&amp;gt;transport.tls.sock, SOL_TLS,
				       TLS_SEC_TAG_LIST, tls_config-&amp;gt;sec_tag_list,
				       sizeof(sec_tag_t) * tls_config-&amp;gt;sec_tag_count);
		if (ret &amp;lt; 0) {
			goto error;
		}
	}

	if (tls_config-&amp;gt;hostname) {
		ret = zsock_setsockopt(client-&amp;gt;transport.tls.sock, SOL_TLS,
				       TLS_HOSTNAME, tls_config-&amp;gt;hostname,
				       strlen(tls_config-&amp;gt;hostname));
		if (ret &amp;lt; 0) {
			goto error;
		}
	}

	if (tls_config-&amp;gt;session_cache == TLS_SESSION_CACHE_ENABLED) {
		ret = zsock_setsockopt(client-&amp;gt;transport.tls.sock, SOL_TLS,
				       TLS_SESSION_CACHE,
				       &amp;amp;tls_config-&amp;gt;session_cache,
				       sizeof(tls_config-&amp;gt;session_cache));
		if (ret &amp;lt; 0) {
			goto error;
		}
	}

	size_t peer_addr_size = sizeof(struct sockaddr_in6);

	if (broker-&amp;gt;sa_family == AF_INET) {
		peer_addr_size = sizeof(struct sockaddr_in);
	}

	ret = zsock_connect(client-&amp;gt;transport.tls.sock, client-&amp;gt;broker,
			    peer_addr_size);
	if (ret &amp;lt; 0) {
		goto error;
	}

	MQTT_TRC(&amp;quot;Connect completed&amp;quot;);
	return 0;

error:
	(void) zsock_close(client-&amp;gt;transport.tls.sock);
	return -errno;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem lies in the zsock_connect() function on line 77. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally, through breakpoint debugging, it is found that the nrf_modem_os_errno_set() function in the nrf_modem_os.c file will set errno = EOPNOTSUPP&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the reason for errno = -45?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/305476?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 10:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e0f03a4-919d-46da-a15e-c1eaa427630d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;the modem trace you provide does not contain the necessary information about the connection attempt.&lt;/p&gt;
&lt;p&gt;&amp;quot;Modem trace is only 15 seconds long and contains 2 DNS queries sent by application. Not a sign for TLS connection establishment. Signal level seems to be in good level.&amp;quot;&lt;/p&gt;
&lt;p&gt;It would be nice if you could take a new trace and get all the details from the connection attempt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304773?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 10:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf0ff0ae-5c16-472b-bd71-4f5d75fbf015</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;modem 1.2.3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304772?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 10:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9773be9a-47ec-4921-9450-2a0471d9a5f1</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Thank you. What modem firmware was this tested on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304389?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 02:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a826af6-bf12-43ed-82dc-fbc1afea9b0a</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;I reproduced this phenomenon on another DK board. Attached is the captured modem info.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_04_2D00_13T01_2D00_58_2D00_55.612Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_04_2D00_13T01_2D00_58_2D00_55.612Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304281?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 12:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ca741c-2e1c-4f06-b3e2-52a1c2904cef</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;You can try reproducing the connection issue while having modem trace enabled. Then hopefully we can see from the trace why the connection is failing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304242?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 11:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b020157-bf18-475c-ae48-8f8d0eaeaf82</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;Kconfig defines CONFIG_MQTT_TLS_SEC_TAG as 24&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618226898517v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304237?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 11:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef820b8-2caa-4834-838a-927aad1fce7e</guid><dc:creator>Hakon</dc:creator><description>[quote user="xinjiang"]Where do I need to write the certificate to ensure normal connection?[/quote]
&lt;p&gt;It probably needs to match CONFIG_MQTT_TLS_SEC_TAG. Have you checked the value of this parameter?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304159?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 02:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e7b8433-d267-4533-86b4-56f0d3b544b9</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;I randomly wrote a CA certificate at sec_tag 24.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618194005355v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The problem is still not solved,Error log:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618194117349v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Where do I need to write the certificate to ensure normal connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/304058?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 14:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be84b305-b10b-4fde-8db6-b66aa21469af</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;As far as I know you should not attempt to use TLS without a CA certificate on the device, even though you are not using it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/303716?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 10:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87859dac-c236-41c2-bc62-344b50927350</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I changed to another 91 chip and burned the same program. -45 error occurred in mqtt connection : Operation not supported on socket. Here is my log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.243,316] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connecting to LTE network.&#x1B;[0m
[00:00:00.243,316] &#x1B;[0m&amp;lt;inf&amp;gt; main: This may take several minutes.&#x1B;[0m
[00:00:00.243,377] &#x1B;[0m&amp;lt;inf&amp;gt; flash_control: No apn found, use default apn&#x1B;[0m
[00:00:00.249,908] &#x1B;[0m&amp;lt;inf&amp;gt; main: Set to the default APN CMNBIOT2.&#x1B;[0m
[00:00:00.258,087] &#x1B;[0m&amp;lt;inf&amp;gt; lte_lc: Using legacy LTE PCO mode...&#x1B;[0m

[18:48:48.897]收←◆[00:00:01.725,158] &#x1B;[0m&amp;lt;inf&amp;gt; mai
[18:48:48.919]收←◆n: LTE ERROR&#x1B;[0m
[00:00:02.258,117] &#x1B;[0m&amp;lt;inf&amp;gt; main: CSCON : 1&#x1B;[0m

[18:48:50.833]收←◆[00:00:04.283,386] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connected to LTE network.&#x1B;[0m
[00:00:04.283,477] &#x1B;[0m&amp;lt;inf&amp;gt; main: LTE SUCCESS&#x1B;[0m
[00:00:04.286,163] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_engine: IPv4 Address found 47.106.164.80&#x1B;[0m
[00:00:04.286,193] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_engine: TLS enabled&#x1B;[0m
[00:00:04.286,468] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20015220): Created socket 1&#x1B;[0m
[00:00:04.660,552] &#x1B;[1;31m&amp;lt;err&amp;gt; mqtt_engine: mqtt_connect -45&#x1B;[0m
[00:00:04.660,583] &#x1B;[1;31m&amp;lt;err&amp;gt; mqtt_engine: ERROR: mqtt_disconnect -57&#x1B;[0m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-45 is EOPNOTSUPP, and typically indicates that you have written wrong certificates to the device. But&amp;nbsp;I had peer_verify set to 0.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617879180448v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/301316?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 06:49:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc09575e-f7ad-4c66-8fee-5a6884c6ca07</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;I replaced a 0.9.0 DK for testing and found that the connection speed is normal.&lt;/p&gt;
&lt;p&gt;log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[14:38:54.742]收←◆*** Booting Zephyr OS build v2.4.99-ncs1  ***

[14:38:55.752]收←◆[00:00:00.211,486] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: The MQTT simple sample started&#x1B;[0m
[00:00:00.211,486] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: Provisioning certificates&#x1B;[0m
[00:00:00.211,486] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: Disabling PSM and eDRX&#x1B;[0m
[00:00:00.225,280] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: LTE Link Connecting...&#x1B;[0m
[00:00:00.235,137] &#x1B;[0m&amp;lt;inf&amp;gt; lte_lc: Using legacy LTE PCO mode...&#x1B;[0m

[14:38:58.079]收←◆+CEREG: 2,&amp;quot;1D2C&amp;quot;,&amp;quot;0D61D950&amp;quot;,9,0,0,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;

[14:38:58.646]收←◆+CSCON: 1

[14:38:59.826]收←◆+CEREG: 1,&amp;quot;1D2C&amp;quot;,&amp;quot;0D61D950&amp;quot;,9,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;

[14:39:00.832]收←◆[00:00:05.290,588] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: LTE Link Connected!&#x1B;[0m
[00:00:05.291,015] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: IPv4 Address found 47.106.164.80&#x1B;[0m
[00:00:05.291,015] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: TLS enabled&#x1B;[0m
[00:00:05.291,412] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20014ae8): Created socket 1&#x1B;[0m

[14:39:04.680]收←◆[00:00:10
[14:39:04.710]收←◆.138,397] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20014ae8): Connect completed&#x1B;[0m
[00:00:10.138,427] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20014ae8): Encoding Protocol Description. Str:MQTT Size:00000004.&#x1B;[0m
[00:00:10.138,427] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_utf8_str: (0x20014ae8): &amp;gt;&amp;gt; str_size:00000006 cur:0x20015e0f,
[14:39:04.733]收←◆ end:0x20015e8a&#x1B;[0m
[00:00:10.138,458] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20014ae8): &amp;gt;&amp;gt; val:0004 cur:0x20015e0f, end:0x20015e8a&#x1B;[0m
[00:00:10.138,458] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20014ae8): Encoding Protocol Version 04.&#x1B;[0m
[00:00:10.138,458] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20014ae8): &amp;gt;&amp;gt; val:04 cur:0x20015e15, end:0x20015e8a&#x1B;[0m
[00:00:10.138,488] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20014ae8): &amp;gt;&amp;gt; val:00 cur:0x20015e16, end:0x20015e8a&#x1B;[0m
[00:00:10.138,488] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20014ae8): Encoding Keep Alive Time 003c.&#x1B;[0m
[00:00:10.138,488] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20014ae8): &amp;gt;&amp;gt; val:003c cur:0x20015e17, end:0x20015e8a&#x1B;[0m
[00:00:10.138,488] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20014ae8): Encoding Client Id. Str:my/test/id Size:0000000a.&#x1B;[0m
[00:00:10.138,519] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_utf8_str: (0x20014ae8): &amp;gt;&amp;gt; str_size:0000000c cur:0x20015e19, end:0x20015e8a&#x1B;[0m
[00:00:10.138,519] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20014ae8): &amp;gt;&amp;gt; val:000a cur:0x20015e19, end:0x20015e8a&#x1B;[0m
[00:00:10.138,549] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.mqtt_encode_fixed_header: (0x20014ae8): &amp;lt;&amp;lt; msg type:0x10 length:0x00000016&#x1B;[0m
[00:00:10.138,549] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.packet_length_encode: (0x20014ae8): &amp;gt;&amp;gt; length:0x00000016 cur:(nil), end:(nil)&#x1B;[0m
[00:00:10.138,549] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.mqtt_encode_fixed_header: (0x20014ae8): Fixed header length = 02&#x1B;[0m
[00:00:10.138,580] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20014ae8): &amp;gt;&amp;gt; val:10 cur:0x20015e0d, end:0x20015e8a&#x1B;[0m
[00:00:10.138,580] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.packet_length_encode: (0x20014ae8): &amp;gt;&amp;gt; length:0x00000016 cur:0x20015e0e, end:0x20015e8a&#x1B;[0m
[00:00:10.139,343] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt.client_connect: (0x20014ae8): Connect completed&#x1B;[0m
[00:00:10.327,514] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20014ae8): &amp;lt;&amp;lt; val:00&#x1B;[0m
&#x1B;[1;31m--- 7 messages dropped ---
&#x1B;[0m[00:00:10.327,514] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20014ae8): &amp;lt;&amp;lt; val:00&#x1B;[0m
[00:00:10.327,545] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.connect_ack_decode: (0x20014ae8): [CID 0x20014c98]: session_present_flag: 0&#x1B;[0m
[00:00:10.327,545] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_rx.mqtt_handle_packet: (0x20014ae8): [CID 0x20014c98]: return_code: 0&#x1B;[0m
[00:00:10.327,575] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: MQTT client connected&#x1B;[0m
[00:00:10.327,575] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: Subscribing to: my/subscribe/topic len 18&#x1B;[0m
[00:00:10.327,575] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt.mqtt_subscribe: (0x20014ae8): [CID 0x20014c98]:[State 0x06]: &amp;gt;&amp;gt; message id 0x04d2 topic count 0x0001&#x1B;[0m
[00:00:10.327,606] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20014ae8): &amp;gt;&amp;gt; val:04d2 cur:0x20015e0f, end:0x20015e8a&#x1B;[0m
[00:00:10.327,606] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_utf8_str: (0x20014ae8): &amp;gt;&amp;gt; str_size:00000014 cur:0x20015e11, end:0x20015e8a&#x1B;[0m
[00:00:10.327,636] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20014ae8): &amp;gt;&amp;gt; val:0012 cur:0x20015e11, end:0x20015e8a&#x1B;[0m
[00:00:10.327,636] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20014ae8): &amp;gt;&amp;gt; val:01 cur:0x20015e25, end:0x20015e8a&#x1B;[0m
[00:00:10.327,636] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.mqtt_encode_fixed_header: (0x20014ae8): &amp;lt;&amp;lt; msg type:0x82 length:0x00000017&#x1B;[0m
[00:00:10.327,667] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.packet_length_encode: (0x20014ae8): &amp;gt;&amp;gt; length:0x00000017 cur:(nil), end:(nil)&#x1B;[0m
[00:00:10.327,667] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.mqtt_encode_fixed_header: (0x20014ae8): Fixed header length = 02&#x1B;[0m
[00:00:10.327,697] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20014ae8): &amp;gt;&amp;gt; val:82 cur:0x20015e0d, end:0x20015e8a&#x1B;[0m
[00:00:10.327,728] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_enc.packet_length_encode: (0x20014ae8): &amp;gt;&amp;gt; length:0x00000017 cur:0x20015e0e, end:0x20015e8a&#x1B;[0m
[00:00:10.327,758] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20014ae8): [0x20014c98]: Transport writing 25 bytes.&#x1B;[0m
[00:00:10.328,491] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20014ae8): [0x20014c98]: Transport write complete.&#x1B;[0m
[00:00:10.328,521] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt.mqtt_subscribe: (0x20014ae8): [CID 0x20014c98]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000&#x1B;[0m
[00:00:10.518,341] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt.mqtt_input: (0x20014ae8): state:0x00000006&#x1B;[0m
[00:00:10.518,402] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20014ae8): &amp;gt;&amp;gt; cur:0x20015d8a, end:0x20015d8c&#x1B;[0m
[00:00:10.518,402] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20014ae8): &amp;lt;&amp;lt; val:90&#x1B;[0m
[00:00:10.518,402] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.packet_length_decode: (0x20014ae8): length:0x00000003&#x1B;[0m
[00:00:10.518,463] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_rx.mqtt_handle_packet: (0x20014ae8): [CID 0x20014c98]: Received MQTT_PKT_TYPE_SUBACK!&#x1B;[0m
[00:00:10.518,493] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint16: (0x20014ae8): &amp;gt;&amp;gt; cur:0x20015d8c, end:0x20015d8f&#x1B;[0m
[00:00:10.518,493] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint16: (0x20014ae8): &amp;lt;&amp;lt; val:04d2&#x1B;[0m
[00:00:10.518,493] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_data: (0x20014ae8): &amp;gt;&amp;gt; cur:0x20015d8e, end:0x20015d8f&#x1B;[0m
[00:00:10.518,493] &#x1B;[0m&amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_data: (0x20014ae8): &amp;lt;&amp;lt; bin len:00000001&#x1B;[0m
[00:00:10.518,524] &#x1B;[0m&amp;lt;inf&amp;gt; mqtt_simple: SUBACK packet id: 1234&#x1B;[0m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will report the problem to you after I catch it.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTS connection speed that does not require any certificate is very slow.</title><link>https://devzone.nordicsemi.com/thread/301204?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 12:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29e1ba8-50e2-4d69-ad5b-d9cf30786d49</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;can you set&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NET_LOG=y
CONFIG_MQTT_LOG_LEVEL_DBG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;for more detailed log output?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>