<?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 subscriber keepalive timeouts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27063/mqtt-subscriber-keepalive-timeouts</link><description>I&amp;#39;m using an nrf52dk (pca10040) to develop an mqtt subscriber application. 
 I&amp;#39;m using the IoT softdevice, with the IoT 0.9.0 sdk example for subscriber as a starting point, with armgcc and eclipse. 
 Raspberry pi 1b+ running jessie with radvd &amp;amp; 6lowpan</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Feb 2017 08:12:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27063/mqtt-subscriber-keepalive-timeouts" /><item><title>RE: MQTT subscriber keepalive timeouts</title><link>https://devzone.nordicsemi.com/thread/106353?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 08:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:578ca987-83f8-454e-85a3-d01f3fa2703e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT subscriber keepalive timeouts</title><link>https://devzone.nordicsemi.com/thread/106351?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 14:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aeb628d-a43a-4d97-ae29-5945a4ab85c7</guid><dc:creator>frazieje</dc:creator><description>&lt;p&gt;ok after another 10 hours, it&amp;#39;s still connected and happily listening for mqtt application events :)&lt;/p&gt;
&lt;p&gt;I think it&amp;#39;s safe to mark this as the answer. Thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT subscriber keepalive timeouts</title><link>https://devzone.nordicsemi.com/thread/106352?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 03:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4825b9c6-01bd-47ec-8364-9bcea9347a44</guid><dc:creator>frazieje</dc:creator><description>&lt;p&gt;It has been 24 hours.&lt;/p&gt;
&lt;p&gt;I did have one keep alive timeout occur during the night. I&amp;#39;m still unsure if it was a network hiccup or power failure or the same problem as before.&lt;/p&gt;
&lt;p&gt;Other than that things are much much better. I have had it subscribed for about 12 hours without any issues. I will reply back in the morning with more resuls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT subscriber keepalive timeouts</title><link>https://devzone.nordicsemi.com/thread/106350?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 06:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d803b5b6-d8e2-463f-9ef7-5a63c6f18bbb</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Great, keep me posted :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT subscriber keepalive timeouts</title><link>https://devzone.nordicsemi.com/thread/106349?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 03:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25e43d1-d33c-4db8-9309-b7085f36d94f</guid><dc:creator>frazieje</dc:creator><description>&lt;p&gt;Hi Bjørn, thanks for the reply.&lt;/p&gt;
&lt;p&gt;I have created a new project based around the mqtt library you&amp;#39;ve provided above.&lt;/p&gt;
&lt;p&gt;I have an active connection to the broker using the new mqtt client and will monitor over the next day or so to see if the stability has improved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT subscriber keepalive timeouts</title><link>https://devzone.nordicsemi.com/thread/106348?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 08:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:085a51c7-0320-4ce2-9521-d1e9a08486c2</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Frazieje,&lt;/p&gt;
&lt;p&gt;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;MQTT Library files: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0066.mqtt.zip"&gt;mqtt.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have also attached a minimal version of IoT SDK with only the mqtt examples that uses the updated mqtt files.&lt;/p&gt;
&lt;p&gt;IoT SDK with updated MQTT files: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4048.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;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;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>