<?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>Thread MQTT example causes ASSERT in Debug build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38375/thread-mqtt-example-causes-assert-in-debug-build</link><description>I am using nRF52840 with nRF5 SDK for Thread and Zigbee 1.0.0 on the nRF52840 development kit. 
 The Release build of the mqttsn_client example compiles and runs fine. 
 Using the Debug build causes an ASSERT. 
 Pressing Button 1, calls mqttsn_client_search_gateway</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Feb 2020 16:29:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38375/thread-mqtt-example-causes-assert-in-debug-build" /><item><title>RE: Thread MQTT example causes ASSERT in Debug build</title><link>https://devzone.nordicsemi.com/thread/233817?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 16:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f622d1bf-121f-416f-8d90-3a5c05b9f539</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;This has been corrected as of SDK 3.2.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread MQTT example causes ASSERT in Debug build</title><link>https://devzone.nordicsemi.com/thread/156351?ContentTypeID=1</link><pubDate>Wed, 07 Nov 2018 15:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aba227c8-c05a-424a-9ebe-e739fe7b4659</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Thank you, I have forwarded this issue to the developers as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread MQTT example causes ASSERT in Debug build</title><link>https://devzone.nordicsemi.com/thread/156234?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 21:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87fbd1b8-3bc1-489a-9373-1d43aff89e18</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;I see that this has been corrected in SDK for Thread and Zigbee 2.0.0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, there is another missing case.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in mqttsn_client.c&lt;/p&gt;
&lt;p&gt;The function keep_alive_transmission_attempt() calls&lt;/p&gt;
&lt;p&gt;mqttsn_client_state_update(p_client, SENT_PINGREQ);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In mqttsn_client_state_update(), the case where fsm_event == SENT_PINGREQ is not handled, so you get an ASSERT with the Debug build.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case MQTTSN_CLIENT_CONNECTED:
        {
            switch (fsm_event)
            {
                case SENT_SLEEP_REQUEST:
                    p_client-&amp;gt;client_state = MQTTSN_CLIENT_WAITING_FOR_SLEEP;
                    break;

                case SENT_DISCONNECT_REQUEST:
                    p_client-&amp;gt;client_state = MQTTSN_CLIENT_WAITING_FOR_DISCONNECT;
                    break;

                case TIMEOUT_PINGREQ:
                    p_client-&amp;gt;client_state = MQTTSN_CLIENT_DISCONNECTED;
                    break;

                default:
                    ASSERT(false);
                    break;
            }
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread MQTT example causes ASSERT in Debug build</title><link>https://devzone.nordicsemi.com/thread/148073?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 15:02:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7efceda4-fddc-411d-95da-c88aa73c2e71</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Mary,&lt;/p&gt;
&lt;p&gt;Thank you for reporting this. I have forwarded the bugreport internally to our Thread team.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>