<?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_simple error -57</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61656/mqtt_simple-error--57</link><description>Hi guys, I am developing an mqtt-based app using board nrf9160. I tested the mqtt_simple example but it does not work. Here is my setup. 
 + Broker server: test.mosquitto.org --&amp;gt; I have tested this broker and it works all time + nrf9160 firmware version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 May 2020 08:54:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61656/mqtt_simple-error--57" /><item><title>RE: mqtt_simple error -57</title><link>https://devzone.nordicsemi.com/thread/252325?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 08:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d1abcf2-f1d2-4cd3-b8c8-c45b5a72db84</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;That&amp;#39;s good to hear! I will close this case then. :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt_simple error -57</title><link>https://devzone.nordicsemi.com/thread/252256?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 15:42:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d3a5d0-3f01-4e72-91ac-f382189c8475</guid><dc:creator>xuan0802</dc:creator><description>&lt;p&gt;Thank you for your response, luckily, I run the sample with the current master version of SDK and It works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt_simple error -57</title><link>https://devzone.nordicsemi.com/thread/251681?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 10:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f10cf48-4b5d-4b34-9160-7f187227c4cf</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am assigned to this case and have been looking into it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not able to reproduce your issue, so I will need you to do some debugging.&lt;/p&gt;
&lt;p&gt;Go into the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/subsys/net/lib/mqtt/mqtt.c#L557"&gt;mqtt_ping()&lt;/a&gt;&amp;nbsp;function and add debugging messages like this (&lt;span&gt;MQTT_TRC&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;quot;Text&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;);)&amp;nbsp;&lt;/span&gt;to figure out which of the functions are returning error code -57. then add &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_MQTT_LOG_LEVEL_DBG.html"&gt;CONFIG_MQTT_LOG_LEVEL_DBG&lt;/a&gt;&amp;nbsp;to the prj.conf file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Are you trying to connect with LTE-M or NB-IoT?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt_simple error -57</title><link>https://devzone.nordicsemi.com/thread/251585?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 03:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:349171a5-6f39-4c57-803d-d640c95d76cb</guid><dc:creator>xuan0802</dc:creator><description>&lt;p&gt;Please, any help from Nordic Semi guys &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>