<?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 connect fail ENOMEM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80963/mqtt-connect-fail-enomem</link><description>Hello, 
 My application is a modified version of MQTT_simple. 
 I have moved all the code inside while(true) to a thread and set username as a device token. 
 The error -12 ENOMEM come from a file mqtt_encoder.c 
 line 366 err_code = pack_utf8_str(client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Oct 2021 06:46:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80963/mqtt-connect-fail-enomem" /><item><title>RE: MQTT connect fail ENOMEM</title><link>https://devzone.nordicsemi.com/thread/335622?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 06:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d4d329d-11b7-4736-8268-1dd35017efbc</guid><dc:creator>kclauah</dc:creator><description>&lt;p&gt;I have finally found the reason that causes ENOMEM which are not related to MQTT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>