<?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 with and without security publisher client example connection issue to broker</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34777/mqtt-with-and-without-security-publisher-client-example-connection-issue-to-broker</link><description>Hi, 
 I am using Linux ubuntu 14.04 with kernel version 4.15.0-041500-generic for 6lowpan over BLE and MQTT broker wit IPv6 address as inet6 address in below image 
 
 In SDK v15.0.0 I am giving m_broker_addr as in below image 
 
 Listening on port 1883</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jun 2018 08:29:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34777/mqtt-with-and-without-security-publisher-client-example-connection-issue-to-broker" /><item><title>RE: MQTT with and without security publisher client example connection issue to broker</title><link>https://devzone.nordicsemi.com/thread/137614?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 08:29:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:116d425c-a08c-4403-8ec6-57857caed372</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You should be able to run Mosquitto without enabling security, i.e. adding a TLS key. Could you try to run&amp;nbsp;mosquitto_sub -t &amp;quot;led/state&amp;quot; ?&lt;br /&gt;The MQTT broker address will be the IP address of the computer running the broker, i.e.&amp;nbsp;&amp;nbsp;Linux ubuntu 14.04 PC. You should be able to find the ip with the ifconfig command in terminal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with and without security publisher client example connection issue to broker</title><link>https://devzone.nordicsemi.com/thread/135430?ContentTypeID=1</link><pubDate>Sat, 09 Jun 2018 14:08:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93487912-f187-41d5-bb8e-59fb6b88cc19</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;I have added global prefix. Again the same issue is coming.&lt;/p&gt;
&lt;p&gt;And one thing I missed is running&amp;nbsp;mosquitto -p 8883 -c ./mosquitto.conf command says&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error: Unknown configuration variable &amp;quot;psk_hint&amp;quot;.&lt;/p&gt;
&lt;p&gt;Error: Unable to open configuration file.&lt;/p&gt;
&lt;p&gt;Error: Unknown configuration variable &amp;quot;psk_file&amp;quot;.&lt;/p&gt;
&lt;p&gt;Error: Unable to open configuration file.&lt;/p&gt;
&lt;p&gt;I have added mosquitto.conf&amp;nbsp;by enabling psk_hint, psk_file&lt;/p&gt;
&lt;p&gt;(psk_hint hello&lt;/p&gt;
&lt;p&gt;psk_file /home/sridhar/Desktop/ivativ/mosquitto_user/tls_key.txt)&lt;/p&gt;
&lt;p&gt;tls_key.txt with same id:key (436c69656e745f6964656e74697479:73656372657450534b) pair as in MQTT publisher example.&lt;/p&gt;
&lt;p&gt;1. May be because of the above errors, MQTT connection is not happening when pressing button 1.&lt;/p&gt;
&lt;p&gt;2. Also how to know MQTT broker address at the compile time for MQTT publish example?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please clarify.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with and without security publisher client example connection issue to broker</title><link>https://devzone.nordicsemi.com/thread/134463?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 07:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aab6df0-c89a-4d07-a06d-d8e8ed0c333d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Step 8 is is referring to&amp;nbsp;&lt;a title="Distributing a global IPv6 prefix" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/iot_sdk_user_guides_radvd.html?cp=4_0_0_5_4_0_3"&gt;Distributing a global IPv6 prefix&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;# Set IPv6 forwarding (must be present).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;sudo echo 1 &amp;gt; /proc/sys/net/ipv6/conf/all/forwarding&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# Run radvd daemon.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;sudo service radvd restart&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If you&amp;#39;re not seeing the IPv6 prefix after running the commands above, then you can try to run&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;sudo ifconfig bt0 add 2001:db8::1/64&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with and without security publisher client example connection issue to broker</title><link>https://devzone.nordicsemi.com/thread/134401?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 15:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3993dc6b-2dcc-4f66-97a5-d467d58f5e34</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;Yes I have followed. I don&amp;#39;t know why until step 7 it is working, step 8 is actually I don&amp;#39;t know how to do and after that pressing button 1 MQTT level connection is not happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with and without security publisher client example connection issue to broker</title><link>https://devzone.nordicsemi.com/thread/134389?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 13:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043abdf9-bea1-40a4-a107-8fce9353ca54</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/jonnavittula-sridhar"&gt;Sridhar Jonnavittula&lt;/a&gt;: Have you&amp;nbsp;followed all the steps listed in the&amp;nbsp;&lt;a title="MQTT Client - Publisher" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/iot_sdk_app_mqtt_publisher.html?cp=4_0_0_4_1_4_6_0"&gt;MQTT Client - Publisher&lt;/a&gt;&amp;nbsp;example documentation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>