<?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 publisher doesn&amp;#39;t connect to broker</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70669/mqtt-publisher-doesn-t-connect-to-broker</link><description>I&amp;#39;m trying to make MQTT publisher example work using a BMD-340 evaluation board and nRF5 SDK for Thread and Zigbee 4.1.0 . I&amp;#39;m using a Raspberry Pi 3B with a Raspberry Pi OS based on linux kernel version 5.4. 
 I followed this guide to connect BLE devices</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 May 2021 14:08:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70669/mqtt-publisher-doesn-t-connect-to-broker" /><item><title>RE: MQTT publisher doesn't connect to broker</title><link>https://devzone.nordicsemi.com/thread/309665?ContentTypeID=1</link><pubDate>Thu, 13 May 2021 14:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8efb60d0-be27-4739-a53a-2f790d1d6b6d</guid><dc:creator>AguirreGENROD</dc:creator><description>&lt;p&gt;Hi! Did you find out anything about this? I think I have this same issue. I logged a few things on my own, you can view them on a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73698/making-mqtt-publisher-example-work-on-raspberry-pi-4"&gt;post I made&lt;/a&gt;. From what i recollected, it seems like the connack packet is never sent to BlueZ stack because when capturing from btmon this packet is never shown. It must be related to kernel version because I&amp;#39;m having trouble using a Raspberry Pi 4B with Buster. I have seen a few examples of people using a Jessie kernel and when listing modules related to bluetooth_6lowpan there&amp;#39;s no ipv6 module, maybe that has something to do with the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT publisher doesn't connect to broker</title><link>https://devzone.nordicsemi.com/thread/299746?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 11:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c1e2ee-1014-4b0e-b4c3-425404fd4812</guid><dc:creator>PabloAg</dc:creator><description>&lt;p&gt;Hi, I haven&amp;acute;t&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT publisher doesn't connect to broker</title><link>https://devzone.nordicsemi.com/thread/299180?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 08:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4746747-722f-4f68-89d3-2bae866ee9e3</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Have you solved the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT publisher doesn't connect to broker</title><link>https://devzone.nordicsemi.com/thread/291494?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 12:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a824be4-a117-4fc2-81a4-1d71b7d2e7bc</guid><dc:creator>PabloAg</dc:creator><description>&lt;p&gt;Hi! Yes, i did enable IPv6 forwarding as said &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/iot_sdk_user_guides_radvd.html" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT publisher doesn't connect to broker</title><link>https://devzone.nordicsemi.com/thread/291386?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 22:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:400980d8-3793-4efd-a63c-742a0f2a56f6</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you enable ipv6 forwarding? Tis is required to send global unique addresses, Nevertheless, this is not solved problem at my side.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sudo echo 1 &amp;gt; /proc/sys/net/ipv6/conf/all/forwarding
# OR set ipv6 forwading in /etc/sysctl.conf
# Run radvd daemon.
sudo service radvd restart
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have successfully connected two raspberry pi, using 6lowpan, but cannot send data one to another even-though ping6 works fine at both end. I checked the routing table&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;route -A inet6&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and seems everything fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT publisher doesn't connect to broker</title><link>https://devzone.nordicsemi.com/thread/291381?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 21:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e54746-c451-40cc-94ff-4d391a6e2505</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, I tried on this on a RPi too and I see the same thing (your &amp;quot;first behavior&amp;quot;). When I capture packets directly on the bt0 interface I see that the MQTT broker is trying to retransmit the CONNACK, but on the BLE sniffer the packets are never sent from the RPi.&lt;/p&gt;
&lt;p&gt;Here is a screenshot of the bt0 interface:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/900x240/__key/communityserver-discussions-components-files/4/05355.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Packet number 7 is the last packet that you can see on the BLE sniffer. It is just an ACK, no data. Then there is another packet (number 8), sent from the broker as well, which has the same sequence number, and same ACK number, but it also contains the CONNACK (4 bytes). Then you can see all the retransmissions of this packet that never arrived.&lt;/p&gt;
&lt;p&gt;Since the CONNACK packet is never sent over air, I think there must be something wrong on the RPi side. I will have to investigate further to figure out what is wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>