<?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>nrf9160 connection to azure iot hub: Cloud MQTT input error: -128</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104052/nrf9160-connection-to-azure-iot-hub-cloud-mqtt-input-error--128</link><description>Hey 
 Board: nrf9160 Sample: Azure iot hub sample SDK: 2.4.2 FW: nrf9160_1.3.2 
 I am currently experiencing problems regarding the connection between nrf9160 and azure iot hub. I have created an Azure iot hub and an Azure iot hub DPS. Added the certificates</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Sep 2023 06:43:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104052/nrf9160-connection-to-azure-iot-hub-cloud-mqtt-input-error--128" /><item><title>RE: nrf9160 connection to azure iot hub: Cloud MQTT input error: -128</title><link>https://devzone.nordicsemi.com/thread/448248?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 06:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dbf4800-95cb-4f6a-a90e-9de7f5d92e94</guid><dc:creator>Reimer</dc:creator><description>&lt;p&gt;To who this might concern,&lt;/p&gt;
&lt;p&gt;Solved the issue in this post:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99066/nrf9160dk-mqtt-connection-error---azure-iot-hub/448036"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/99066/nrf9160dk-mqtt-connection-error---azure-iot-hub/448036&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Reimer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 connection to azure iot hub: Cloud MQTT input error: -128</title><link>https://devzone.nordicsemi.com/thread/447629?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 07:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:476e6d64-e445-438d-bc12-69932772237a</guid><dc:creator>Reimer</dc:creator><description>&lt;p&gt;Hi Didrik&lt;br /&gt;&lt;br /&gt;Thanks for the answer!&lt;br /&gt;&lt;br /&gt;I&amp;#39;m currently shouldn&amp;#39;t be sending anything C2D.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the modem trace:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2023_2D00_09_2D00_26T07_2D00_02_2D00_11.324Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2023_2D00_09_2D00_26T07_2D00_02_2D00_11.324Z.mtrace&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Reimer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 connection to azure iot hub: Cloud MQTT input error: -128</title><link>https://devzone.nordicsemi.com/thread/447482?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 12:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a5610e-8897-4851-bbe7-26397f981fce</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like you are able to connect to Azure, and that the connection first fails when you start sending data:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[0m[00:00:04.053,680] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_CONNECTING
[0m[00:00:14.089,324] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: Connection request sent to IoT Hub
[0m+CSCON: 0[00:00:20.514,465] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: RRC mode: Idle
[0m+CSCON: 1[00:00:37.516,296] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: RRC mode: Connected
[0m[00:00:37.692,443] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_CONNECTED
[0m[00:00:37.799,560] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_READY
[0m[00:00:37.799,896] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: Sending event:{&amp;quot;temperature&amp;quot;:25.9,&amp;quot;timestamp&amp;quot;:37799}
[0m[00:00:37.801,422] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: Event was successfully sent
[0m[00:00:37.801,422] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: Next event will be sent in 20 seconds
[0m[00:00:37.944,366] [1;33m&amp;lt;wrn&amp;gt; azure_iot_hub: DISCONNECT, result: -128
[0m[00:00:37.944,366] [0m&amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_DISCONNECTED&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you sending anything from Azure to the device?&lt;/p&gt;
&lt;p&gt;The modem&amp;#39;s TLS buffer is only 2kB, so if a TLS fragment is larger than that, it cannot be decoded by the modem, and the connection will be closed.&lt;/p&gt;
&lt;p&gt;Anyway, when debugging these kind of issues, a &lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-7-cellular-fundamentals/topic/lesson-7-exercise-1/"&gt;modem trace&lt;/a&gt; is very helpful, as it lets us see the communication between the device and the cloud.&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>