<?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>Last will message does not update attribute on cloud side on disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78179/last-will-message-does-not-update-attribute-on-cloud-side-on-disconnection</link><description>Hello, 
 
 I&amp;#39;m currently looking at using a last will message that updates an attribute on the cloud if the device disconnects from the broker. The broker and client agrees on the message on initial connection handshake. The attribute I want to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Aug 2021 07:16:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78179/last-will-message-does-not-update-attribute-on-cloud-side-on-disconnection" /><item><title>RE: Last will message does not update attribute on cloud side on disconnection</title><link>https://devzone.nordicsemi.com/thread/326101?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 07:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:034dfae8-3438-466d-8d59-993b3cb31494</guid><dc:creator>EivindTH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. This looks to be resolved now, everything was correct on the device. The issue was parameters set on the device that was incompatible with the cloud service, such as the keep alive timer which handles when the broker detects a device has disconnected ungracefully. (1.5 times the keep alive time). Another thing to mention is that I also tested using aws_iot_disconnect(), which in turn sends a DISCONNECT flag to cloud causing a graceful disconnect,&amp;nbsp;which doesn&amp;#39;t update LWT.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Eivind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Last will message does not update attribute on cloud side on disconnection</title><link>https://devzone.nordicsemi.com/thread/323383?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 15:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ec1ddc-3f96-4856-b40d-4ce9fc899177</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=""]Why is nrf_modem_lib in the non-secure region, why are the bsd-sockets non-secure, why not have everything secure?[/quote]
&lt;p&gt;&amp;nbsp;Because the modem/application can be attacked from the internet, it is limited to the non-secure domain. You can then use the secure domain to keep secrets, so that an attack will have less consequences.&lt;/p&gt;
&lt;p&gt;When it comes to the last will issue: Are you able to see if the device has set a last will message in the cloud?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t remember hearing about anyone else with similar issues. And, as the log states that it is creating the last will message, and you do not get any errors, it does not look like the problem is on the device side.&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>