<?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 stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18708/mqtt-stops-responding-after-fixed-number-of-subscribe-and-publish</link><description>Hi everyone, 
 I was having RAM overflowed with stack issues which were resolved using suggestions here . Now I am facing another issue. While running mqtt I can only do a fixed number (15) of mqtt publish or subscribe requests and then mqtt stops responding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Jan 2017 08:00:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18708/mqtt-stops-responding-after-fixed-number-of-subscribe-and-publish" /><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72253?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 08:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8339fbc7-c5a6-4047-8fce-1733260369ea</guid><dc:creator>Jawad</dc:creator><description>&lt;p&gt;Hi Bjorn,
Thanks a lot for the continuous support. I will test the examples also using TLS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72252?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 15:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4677c499-2894-4dca-8792-6924bca993b3</guid><dc:creator>Jawad</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;As you have mentioned there are quite a few changes as compared to previous version e.g. Ipv6 instead of IPv4 etc, plus some new files. Could you please share a running subscribe and publish example similar to one present in SDK v9? Thanks for the help so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72251?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 12:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f64ff7b-49c7-4634-b7c5-cef2ccc33467</guid><dc:creator>Jawad</dc:creator><description>&lt;p&gt;Thanks for the response Bjorn. I am checking new files and will get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72250?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 11:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870e67b5-68e1-49dd-8a6a-cb4ff0a0ea73</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Jawad,
the IoT SDK team has done major improvements to the MQTT library of the IoT SDK since the v0.9.x release. I have attached the latest MQTT library files from our internal repo below, could you try to replace the mqtt library and see if that resolves the issue?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Attachments:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mqtt.zip"&gt;mqtt.zip&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Update 12.01.17&lt;/h2&gt;
&lt;p&gt;I&amp;#39;ve added the mqtt files above to the MQTT publisher and subscriber &lt;strong&gt;gcc&lt;/strong&gt; examples in the IoT SDK and verified that I am able to publish and subscribe to messages using a Raspberry Pi running the Mosquitto broker. I have attached the IoT SDK with the mqtt examples that uses the updated mqtt files.&lt;/p&gt;
&lt;p&gt;Note, I&amp;#39;ve only tested the examples using a non-secure connection, i.e. used the following configuration&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_MQTT_BROKER_PORT             1883
m_app_mqtt_client.transport_type       = MQTT_TRANSPORT_NON_SECURE;
m_app_mqtt_client.p_security_settings  = NULL;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Attachments:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf5_5F00_iot_5F00_sdk_5F00_3288530_5F00_mqtt.zip"&gt;nrf5_iot_sdk_3288530_mqtt.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72249?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 16:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eecba706-17cd-4117-806d-fa1ed94f2640</guid><dc:creator>Jawad</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;Did you receive any feedback from IoT SDK team? Thanks for the support&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72247?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2017 15:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a415b5c-eb59-4606-8a43-73afe709372f</guid><dc:creator>Jawad</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;No, the issue is still there. Heap and stack doesnt seem to be the issue. MQTT is still failing after 15 transactions.&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 stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72248?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2017 14:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fcc97d9-1460-4a83-8201-28e08e932bd5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@jawad: I guess this has been answered in &lt;a href="https://devzone.nordicsemi.com/question/109308/printing-stack-and-heap-pointers/"&gt;this&lt;/a&gt; question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72245?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 15:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9abab7-cf79-4fbd-baeb-5fcbfc2b33c4</guid><dc:creator>Jawad</dc:creator><description>&lt;p&gt;Thanks Bjorn, Just to add, the issue seems very similar to what is explained &lt;a href="https://en.wikipedia.org/wiki/Memory_leak"&gt;here&lt;/a&gt; i.e. memory leaking. Looking forward to your response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT stops responding after fixed number of subscribe and publish</title><link>https://devzone.nordicsemi.com/thread/72246?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 15:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a8c9898-484f-4d8e-a5dd-1a303594fda7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Jawad, I am not quite sure how you should debug this, but I will discuss this with the IoT SDK team and come back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>