<?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>Large device twins with Azure - Causes disconnect when response to get twin request exceeds ~2k.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73194/large-device-twins-with-azure---causes-disconnect-when-response-to-get-twin-request-exceeds-2k</link><description>We&amp;#39;re using the Azure iot hub implementation in a custom product that works with Azure. 
 One of the things we&amp;#39;ve noted is that if the total size of the device twin exceeds about 2k, then when the device twin is fetched initially, the connection is terminated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jun 2021 12:03:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73194/large-device-twins-with-azure---causes-disconnect-when-response-to-get-twin-request-exceeds-2k" /><item><title>RE: Large device twins with Azure - Causes disconnect when response to get twin request exceeds ~2k.</title><link>https://devzone.nordicsemi.com/thread/317471?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 12:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f2b9c6a-fdef-4b0e-a8a7-3c008b3ca1b3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will provide an answer to this as Didrik is currently on vacation.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve asked internally about this feature and it has not been implemented.&amp;nbsp; Please contact you local RSM for&amp;nbsp;more roadmap&amp;nbsp;information.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large device twins with Azure - Causes disconnect when response to get twin request exceeds ~2k.</title><link>https://devzone.nordicsemi.com/thread/315486?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 20:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5add3ec0-6a19-4d74-afe0-e666ec48c946</guid><dc:creator>JVantol</dc:creator><description>&lt;p&gt;Didrik,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you ever find out anything more with this? It seems that Azure has a feature in preview which is part of RFC6066 that allows the TLS fragment size to be negotiated.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-tls-support#tls-maximum-fragment-length-negotiation-preview"&gt;https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-tls-support#tls-maximum-fragment-length-negotiation-preview&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://datatracker.ietf.org/doc/html/rfc6066#section-4"&gt;https://datatracker.ietf.org/doc/html/rfc6066#section-4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is this something we can make use of to mitigate this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large device twins with Azure - Causes disconnect when response to get twin request exceeds ~2k.</title><link>https://devzone.nordicsemi.com/thread/301938?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 14:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4dd529-ef53-4ea9-9501-3e354c3d8e8d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Increase the size of the TLS packet that the Nordic stack can handle.[/quote]
&lt;p&gt;&amp;nbsp;It is not possible to increase the segment size in the TLS stack in the modem.&lt;/p&gt;
&lt;p&gt;However, it is possible to run the TLS stack on the application core, where you can set the TLS segment size however you want.&lt;/p&gt;
&lt;p&gt;This will of course come at a RAM and flash cost on the application core. To see how it can be done, you can take a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/applications/serial_lte_modem/doc/slm_description.html#native-tls-sockets"&gt;Serial LTE Modem&lt;/a&gt;, where it can be enabled by a Kconfig option and an &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/applications/serial_lte_modem/overlay-native_tls.conf"&gt;overlay configuration file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When it comes to the two first ideas, I am not familiar enough with Azure to give an answer now. But, I have asked the developers of the azure_iot_hub library for their input, and will come back to you when I get an answer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>