<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>nRF9160, Upload data from AWS shadow subscribe (#XMQTTEVT: 1 -128)</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/89004/nrf9160-upload-data-from-aws-shadow-subscribe-xmqttevt-1--128</link><description>We use nRF9160 on our own board. The firmware &amp;quot;Serial lte modem&amp;quot; is installed on the chip with a connection to an external MCU (#define MQTT_MESSAGE_BUFFER_LEN 8192) We need to receive from AWS Broker the JSON messages more significant than 2000 bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 16 Jun 2022 08:04:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/89004/nrf9160-upload-data-from-aws-shadow-subscribe-xmqttevt-1--128" /><item><title>RE: nRF9160, Upload data from AWS shadow subscribe (#XMQTTEVT: 1 -128)</title><link>https://test-devzone.nordicsemi.com/thread/372728?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 08:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a2b8278-21c9-4ce8-b133-205938d794a2</guid><dc:creator>user113512</dc:creator><description>&lt;p&gt;I also see that there is no problem when I load JSON of the form:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  &amp;quot;state&amp;quot;: {
	  &amp;quot;desired&amp;quot;: {
		  &amp;quot;userColor&amp;quot;: 0,
		  &amp;quot;debugMode&amp;quot;: 1,
		  &amp;quot;operMode&amp;quot;: 2,
		  &amp;quot;sosMode&amp;quot;: 0,
		  &amp;quot;algo&amp;quot;: {
			&amp;quot;petType&amp;quot;: 0,
			&amp;quot;collarSize&amp;quot;: 0,
			&amp;quot;age&amp;quot;: 1,
			&amp;quot;breed&amp;quot;: 0,
			&amp;quot;gender&amp;quot;: 0,
			&amp;quot;healthStatus&amp;quot;: 0,
			&amp;quot;medicalCondition&amp;quot;: 0,
			&amp;quot;weight&amp;quot;: 1
		  }
		}
	}
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But as soon as a nested embedded array in JSON, the load immediately crashes:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  &amp;quot;state&amp;quot;: {
    &amp;quot;desired&amp;quot;: {
      &amp;quot;userColor&amp;quot;: 0,
      &amp;quot;debugMode&amp;quot;: 1,
      &amp;quot;operMode&amp;quot;: 2,
      &amp;quot;sosMode&amp;quot;: 0,
      &amp;quot;algo&amp;quot;: {
        &amp;quot;petType&amp;quot;: 0,
        &amp;quot;collarSize&amp;quot;: 0,
        &amp;quot;age&amp;quot;: 1,
        &amp;quot;breed&amp;quot;: 0,
        &amp;quot;gender&amp;quot;: 0,
        &amp;quot;healthStatus&amp;quot;: 0,
        &amp;quot;medicalCondition&amp;quot;: 0,
        &amp;quot;weight&amp;quot;: 1
      },
      &amp;quot;safeZone&amp;quot;: [],
      &amp;quot;communicationChannels&amp;quot;: [
        {
          &amp;quot;channel&amp;quot;: &amp;quot;BLE&amp;quot;,
          &amp;quot;state&amp;quot;: 1,
          &amp;quot;timeout&amp;quot;: 20000
        },
        {
          &amp;quot;channel&amp;quot;: &amp;quot;WIFI&amp;quot;,
          &amp;quot;state&amp;quot;: 1,
          &amp;quot;timeout&amp;quot;: 20000
        },
        {
          &amp;quot;channel&amp;quot;: &amp;quot;CELLULAR&amp;quot;,
          &amp;quot;state&amp;quot;: 1,
          &amp;quot;timeout&amp;quot;: 20000
        }
      ]
    }
  }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>