<?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>Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61718/not-able-to-publish-more-than-22-mqtt-messages-in-one-shot-mode-with-nrf9160</link><description>Hello, 
 I&amp;#39;m trying to make a one-shot MQTT publisher and I&amp;#39;m able to get 22 messages published but every time I try to publish the 23rd the code hangs in mqtt_transport_write in mqtt_transport.c 
 Here&amp;#39;s relevant code. 
 Calling code (in a loop): 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 May 2021 03:46:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61718/not-able-to-publish-more-than-22-mqtt-messages-in-one-shot-mode-with-nrf9160" /><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/311291?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 03:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:606fa2e8-86cc-46a1-b826-50405644d0bb</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Resolved in&amp;nbsp;NCS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/263974?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 09:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c156e58d-e90f-4b0e-9da0-193e5919ddf3</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the wait.&lt;br /&gt;It&amp;#39;s being worked on.&lt;br /&gt;Unfortunately fixing this has taken longer time than expected, but hopefully the solution will be published in the near future.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Workaround for now to test is to not use TLS hostname verification, then it should not fail after 23rd time.&lt;/em&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/263729?ContentTypeID=1</link><pubDate>Sun, 09 Aug 2020 16:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:728b0c70-6541-4241-b97f-5f37ab1ce432</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Checking back again.&amp;nbsp; Any progress with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/258974?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 11:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa0ca65-d8e5-4b33-b0bd-487b3eb463f7</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Martin is on vacation, so I will be handling the case in the meantime. There are no updates from R&amp;amp;D as far as I can tell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/258885?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 20:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cdeb5fb-03bf-4cb9-819c-78753b2df828</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Checking in again.&amp;nbsp; Any update on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/257421?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 13:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b15b5203-846d-484d-b75c-51a8b03e60db</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;HI Martin, any updates on this?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/256462?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 13:05:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84f43036-d196-4c93-817e-40d837b54865</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Crasspm,&lt;br /&gt;Unfortunately, I do not have any timeline for the fix.&lt;br /&gt;Let me double-check with the R&amp;amp;D, and I will update you with the latest info at least this week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/256015?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 22:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ff03092-9052-4a05-8a71-78283f4d99c0</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Martin, I&amp;#39;m using the master branch of the NCS and am still running into this limitation.&amp;nbsp; Any idea when this will be resolved?&amp;nbsp; This is a show stopper for us...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/254843?ContentTypeID=1</link><pubDate>Sun, 14 Jun 2020 04:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae961169-b0e2-49f8-ac76-3d99392d7f85</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Thanks Martin.&amp;nbsp; I&amp;#39;m running into this with my dedicated network acrd form Rogers as well.&amp;nbsp; Because our product uses both LTE-M and GPS, and we cannot depend on PSM or eDRX, we absolute require that the modem be able to be switched between the two without this limit.&amp;nbsp; I look forward to the update!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/254601?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 06:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cb48a8f-fc64-4f70-9671-19bc79c89223</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Thanks Crasspm, for taking the time and providing the modem trace.&lt;br /&gt;We have been able to reproduce it at our side.&lt;br /&gt;It is under investigation, &lt;em&gt;most likely we will release an update to NCS to fix this in the near future.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/254343?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 22:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0ed613e-7956-498d-8451-484a2e6b1b36</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Hi Martin, just bumping this, please see my attached modem trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/253646?ContentTypeID=1</link><pubDate>Sat, 06 Jun 2020 22:08:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a1ae6cc-6e99-46fb-85f1-c8d023ea90ce</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;I think I have everything you need.&amp;nbsp; I&amp;#39;ve made some adjustments but basically the same, and now I can reach 26 publishes before a hang.&amp;nbsp; The hang happens with iBasis card and not my dedicated Rogers card.&amp;nbsp; I am in Victoria, British Columbia, Canada.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_5F00_logs.zip"&gt;devzone.nordicsemi.com/.../trace_5F00_logs.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/souce.zip"&gt;devzone.nordicsemi.com/.../souce.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/253645?ContentTypeID=1</link><pubDate>Sat, 06 Jun 2020 18:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d9edcc-32b9-4339-a563-147add7faf6d</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m fully booked up and hope to get you this info within the week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/251870?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 09:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87a62a01-5c50-44a9-9329-c8c6ed783626</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;crasspm,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Understood.&lt;br /&gt;Is it so that the data is actually sent 22 times (you can see that they are received by the server)?&lt;br /&gt;Which operator/network are you connected to?&lt;br /&gt;Do you have server logs?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It would be really helpful if you could &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect" rel="noopener noreferrer" target="_blank"&gt;do a modem trace &lt;/a&gt;so we could analyze what is going on in the modem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/251573?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 21:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75c7e1cf-6d44-4e65-931d-66556ff9459b</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Hi Martin, thanks for getting back to me!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;NCS is 1.2.0 and I have also tried 1.2.99 (currently using this now).&amp;nbsp; MFW is&amp;nbsp;mfw_nrf9160_1.2.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to publish more than 22 MQTT messages in one shot mode with nRF9160</title><link>https://devzone.nordicsemi.com/thread/251464?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 11:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c754eb38-4fa1-4b8b-af7e-fc33b3ded424</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;crasspm,&lt;br /&gt;Which version of NCS and what modem firmware version are you using?&lt;br /&gt;&lt;br /&gt;I think this was a bug in one of the older versions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>