<?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>MQTT LST sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62711/mqtt-lst-sample</link><description>Hello, 
 Does anyone has an example of MQTT LST application for nrf9160. 
 I&amp;#39;ve tried to use the MQTT_Simple sample with LST. 
 I&amp;#39;ve add &amp;quot;CONFIG_MQTT_LIB_TLS =y&amp;quot; change the port to &amp;quot;test.mosquitto.org:8883&amp;quot; and add the client settings. 
 
 But I don&amp;#39;t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jun 2020 13:03:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62711/mqtt-lst-sample" /><item><title>RE: MQTT LST sample</title><link>https://devzone.nordicsemi.com/thread/255781?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 13:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae75ed5e-fce8-4348-861e-101d623d63c4</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;In prj.conf, you should add these in addition to the #if defined(CONFIG_MQTT_LIB_TLS) logic you have:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MQTT_BROKER_PORT=8883
CONFIG_MQTT_LIB_TLS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As shown on the test server description:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test.mosquitto.org/"&gt;https://test.mosquitto.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You do not need a password + username when accessing on port 8883, only TLS. For connection to port 8884, a keypair is required, per their instruction.&lt;/p&gt;
&lt;p&gt;To write these, it is very similar how its done using nrf_cloud certificates.&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></channel></rss>