<?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>Send Numbers through MQTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96057/send-numbers-through-mqtt</link><description>Dear Nordic Team, 
 I am trying to send numbers in Cjson format through MQTT. However, I am getting errors as shown in the diagram below. I have attached my code below. May i know how to resolve this issue? 
 Best regards, 
 Yeo Rhi Khin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Jan 2023 17:56:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96057/send-numbers-through-mqtt" /><item><title>RE: Send Numbers through MQTT</title><link>https://devzone.nordicsemi.com/thread/406738?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf6d63f-7201-4342-a8b9-9b95d6e38318</guid><dc:creator>yeo</dc:creator><description>&lt;p&gt;Hi, Thanks for the answer! I have resolved this issue by adding&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Numbers through MQTT</title><link>https://devzone.nordicsemi.com/thread/406737?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a61258cf-6d07-4d49-9a09-7c7440d46dc5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The function calling the cjson library is a work queue, try adjusting that as well via&amp;nbsp;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE.&lt;/p&gt;
&lt;p&gt;Did you try to resolve the below mentioned register contents to see where it points to?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Numbers through MQTT</title><link>https://devzone.nordicsemi.com/thread/406730?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 16:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d02709-9ac0-43df-b37a-962604626f18</guid><dc:creator>yeo</dc:creator><description>&lt;p&gt;Hi, thanks for the information. I have changed&amp;nbsp;&lt;span&gt;CONFIG_HEAP_MEM_POOL_SIZE to 65536 and it still doesn&amp;#39;t work. What numbers do you recommend?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yeo Rhi Khin&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Numbers through MQTT</title><link>https://devzone.nordicsemi.com/thread/406626?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 11:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a684fe9-353c-4c23-b1c7-233d4f5a6a82</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are getting a stack overflow.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can check the thread that is failing by looking up the &amp;quot;current thread&amp;quot; address in your build/zephyr/zephyr.map, and the LR and PC content using &amp;quot;arm-none-eabi-addr2line -e build-folder/zephyr/zephyr.elf 0xFAULTING_ADDRESS&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your case, the issue points towards the memory usage of cJSON objects; which are using dynamic memory allocation.&lt;/p&gt;
&lt;p&gt;Try adjusting your heap via CONFIG_HEAP_MEM_POOL_SIZE.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Numbers through MQTT</title><link>https://devzone.nordicsemi.com/thread/406605?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 09:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0912465-1826-4785-9ab3-8db2de0fc608</guid><dc:creator>yeo</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674725401847v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>