<?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>aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94467/aws-iot-disconnect-event-when-publishing-to-aws-certificates-create-json</link><description>Hello, currently developing software for 9160 and integrate to aws iot core using your aws_iot library.. All the interactions with aws have been working so far, but whenever i publish on $aws/certificates/create/json i get a disconnect event, the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2024 08:10:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94467/aws-iot-disconnect-event-when-publishing-to-aws-certificates-create-json" /><item><title>RE: aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/thread/473773?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 08:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ae92fa-2595-4d19-9c01-225492ae0caf</guid><dc:creator>ItachiVN</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m currently facing the same issue with NCS v2.5.2 with modem firmware version 1.3.5. &lt;br /&gt;&lt;br /&gt;Could I ask if there is any solution&amp;nbsp;to solve this issue (i.e. upgrade higher version of NCS and modem firmware? Since I believe AWS Fleet Provisioning is a great feature for nRF91.&amp;nbsp;&lt;br /&gt;Thank you and best regards,&lt;br /&gt;Wayne&lt;/p&gt;
&lt;div id="eJOY__extension_root" class="eJOY__extension_root_class"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/thread/399397?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 11:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:236b0397-cf50-46fa-87d3-320479518c58</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;No, the buffers in the modem are not configurable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/thread/399139?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 10:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5307028c-f260-406a-abf8-1fa63b8b0acc</guid><dc:creator>livetsMozell</dc:creator><description>&lt;p&gt;The TLS buffers are not configurable in size?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/thread/399039?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 17:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5453b58f-3344-4527-bf9e-ef327ddeb363</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I will have to look more into the error you get when you try to reconnect tomorrow, but the original disconnect is expected.&lt;/p&gt;
&lt;p&gt;The TLS buffers in the modem are ca. 2,3kB large, so larger TLS fragments cannot be decoded. So if a too large TLS fragment is received, the modem will close the connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/thread/398964?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 12:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10ad7e5f-4b86-4309-9f7b-dba769855f23</guid><dc:creator>livetsMozell</dc:creator><description>&lt;p&gt;What I am trying to do is simply provisioning new certificates by claim, as described in&amp;nbsp;&lt;a href="https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#claim-based"&gt;docs.aws.amazon.com/.../provision-wo-cert.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/thread/398801?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 14:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376caba5-70cd-4a39-9b57-9bf5057b0cde</guid><dc:creator>livetsMozell</dc:creator><description>&lt;p&gt;The event i was referring to was a mqtt disconnect event in the aws logs with reason CONNECTION_LOST.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error messages i get in the nrf terminal right after the diconnect event are &amp;quot;aW: connection_poll_start failed, error: -119&amp;quot; and &amp;quot;aws_iot_connect, error: -119&amp;quot; and &amp;quot;ws_iot_send, error: -122&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The json sent from aws is around 3500 bytes- I have set&amp;nbsp;&lt;span&gt;CONFIG_AWS_IOT_MQTT_RX_TX_BUFFER_LEN&lt;/span&gt;&lt;span&gt;=8192&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I did not call aws_disconnect before trying to reconnect- the reconnect is scheduled from a disconnect event. The issue persist when calling aws_disconnect from the disconnect event before trying to reconnect.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws iot disconnect event when publishing to $aws/certificates/create/json</title><link>https://devzone.nordicsemi.com/thread/398754?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 12:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba2d6421-ed54-44d7-9184-82df99e34ab9</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]All the interactions with aws have been working so far, but whenever i publish on&amp;nbsp;$aws/certificates/create/json i get a disconnect event,[/quote]
&lt;p&gt;Do you get a socket error, or an MQTT disconnect packet?&lt;/p&gt;
[quote user=""]The logs on aws side show that the publish is a success and the response on&amp;nbsp;&lt;span&gt;aws/certificates/create/json/accepted is a success.&lt;/span&gt;[/quote]
&lt;p&gt;How large is the message sent from AWS in this case?&lt;/p&gt;
[quote user=""]The device will then try to reconnect but keeps on failing with aws_iot_connect, error -119 (which i believe map to connection already in progress?). Any tips to what might cause this?&amp;nbsp;The aws event handling is quite similar to the one proposed in the aws_iot sample.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Did you close the socket/call aws_disconnect before you tried to re-connect?&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>