<?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>nRF7002 DK MQTT messages not received.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104301/nrf7002-dk-mqtt-messages-not-received</link><description>Hi, 
 I have an nRF7002-DK. I am trying the MQTT over Wi-Fi following this blog below. 
 https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/implementing-mqtt-over-wi-fi-on-the-nrf7002-development-kit 
 I have a previous post regarding this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2023 11:23:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104301/nrf7002-dk-mqtt-messages-not-received" /><item><title>RE: nRF7002 DK MQTT messages not received.</title><link>https://devzone.nordicsemi.com/thread/448805?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 11:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc54bb4-4b75-4078-b28e-36b22400098b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Markel,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mtrobregado"]&lt;p&gt;After many tests I confirmed that using test.mosquitto.org as MQTT broker is causing the MQTT disconnection. I do not know the reason.&lt;/p&gt;
&lt;p&gt;I changed MQTT broker to&amp;nbsp;broker.hivemq.com and it works now. I also slightly modified the code to handle unsuccessful MQTT broker connection.&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m glad to hear that the connection is stable towards another broker.&lt;/p&gt;
&lt;p&gt;test.mosquitto.org is a free service, which many people use, so the stability could potentially be an issue. Thank you so much for updating your case with a workaround, and its fun to see that your application works as expected!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll keep this stability issue in mind for the future as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&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: nRF7002 DK MQTT messages not received.</title><link>https://devzone.nordicsemi.com/thread/448737?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 06:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ec0777d-2cc9-4ae9-bdbd-1ff5e9443467</guid><dc:creator>mtrobregado</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After many tests I confirmed that using test.mosquitto.org as MQTT broker is causing the MQTT disconnection. I do not know the reason.&lt;/p&gt;
&lt;p&gt;I changed MQTT broker to&amp;nbsp;broker.hivemq.com and it works now. I also slightly modified the code to handle unsuccessful MQTT broker connection.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=GG2LRj4NZI4"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 DK MQTT messages not received.</title><link>https://devzone.nordicsemi.com/thread/448545?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 14:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d69f4668-b702-487d-ad15-8c6e8ac1c2b7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Markel,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try reducing &amp;quot;CONFIG_MQTT_KEEPALIVE&amp;quot; to see if this helps the scenario?&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: nRF7002 DK MQTT messages not received.</title><link>https://devzone.nordicsemi.com/thread/448422?ContentTypeID=1</link><pubDate>Sun, 01 Oct 2023 07:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43428cc2-ac63-4e28-a4db-9635780cd22d</guid><dc:creator>mtrobregado</dc:creator><description>&lt;p&gt;I reversed the publish and subscribe at the MQTT Dashboard Android App before that is why it does not work. After I corrected the published and subscribed it worked.&lt;/p&gt;
&lt;p&gt;I think the other issue with the program from the guide is it does not always connect to the mqtt broker. After some time it will connect. Sometimes it connects the first time.&lt;/p&gt;
&lt;p&gt;[00:00:19.607,818] &amp;lt;err&amp;gt; net_mqtt_rx: [CID 0x20003894]: Transport read error: -116&lt;br /&gt;[00:00:19.607,849] &amp;lt;inf&amp;gt; net_mqtt_sock_tcp: Closing socket 7&lt;br /&gt;[00:00:19.607,940] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: MQTT client disconnected: -116&lt;br /&gt;[00:00:19.607,971] &amp;lt;err&amp;gt; MQTT_OVER_WIFI: Error in mqtt_input: -116&lt;br /&gt;[00:00:19.607,971] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: Disconnecting MQTT client&lt;br /&gt;[00:00:19.608,001] &amp;lt;err&amp;gt; MQTT_OVER_WIFI: Could not disconnect MQTT client: -128&lt;br /&gt;[00:00:19.608,001] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: Reconnecting in 60 seconds...&lt;br /&gt;[00:01:19.939,208] &amp;lt;inf&amp;gt; net_mqtt: Connect completed&lt;br /&gt;[00:01:20.258,087] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: MQTT client connected&lt;br /&gt;[00:01:20.258,117] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: Subscribing to: devacademy/subscribe/topic44 len 28&lt;br /&gt;[00:01:20.581,604] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: SUBACK packet id: 1234&lt;br /&gt;[00:01:23.246,368] &amp;lt;err&amp;gt; net_mqtt_rx: [CID 0x20003894]: Connection closed.&lt;br /&gt;[00:01:23.246,398] &amp;lt;inf&amp;gt; net_mqtt_sock_tcp: Closing socket 7&lt;br /&gt;[00:01:23.246,490] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: MQTT client disconnected: -128&lt;br /&gt;[00:01:23.246,490] &amp;lt;err&amp;gt; MQTT_OVER_WIFI: Error in mqtt_input: -128&lt;br /&gt;[00:01:23.246,520] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: Disconnecting MQTT client&lt;br /&gt;[00:01:23.246,520] &amp;lt;err&amp;gt; MQTT_OVER_WIFI: Could not disconnect MQTT client: -128&lt;br /&gt;[00:01:23.246,551] &amp;lt;inf&amp;gt; MQTT_OVER_WIFI: Reconnecting in 60 seconds...&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>