<?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>MQTT between our custom nRD9160 device and our AWS VPC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119458/mqtt-between-our-custom-nrd9160-device-and-our-aws-vpc</link><description>We&amp;#39;re trying to set up MQTT messaging between our custom nRF9160 device and our private AWS VPC. When using the Serial Terminal in nRF Connect for Desktop to monitor the device activity, we ger the following error message: &amp;lt;err&amp;gt; nrf_cloud_transport: MQTT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 08 Mar 2025 22:58:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119458/mqtt-between-our-custom-nrd9160-device-and-our-aws-vpc" /><item><title>RE: MQTT between our custom nRD9160 device and our AWS VPC</title><link>https://devzone.nordicsemi.com/thread/526450?ContentTypeID=1</link><pubDate>Sat, 08 Mar 2025 22:58:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcb27e34-5999-466f-ae2a-5d90a29e82a9</guid><dc:creator>JackW</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp; We have discovered problem. The issue was that we didn&amp;#39;t delete our old certifiactes before loading new certificates.&amp;nbsp; Instead we thought we write over the old certificates.&amp;nbsp; As a result our certificates weren&amp;#39;t valid.&amp;nbsp; Deleting the old certs and then loading new certs fixed the problem.&lt;/p&gt;
&lt;p&gt;Thanks, and you can close the ticket now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT between our custom nRD9160 device and our AWS VPC</title><link>https://devzone.nordicsemi.com/thread/525674?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 09:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75c9a31-5ae4-4958-9cee-dedcfbac28e8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="JackW"]First of all, please note that we&amp;#39;re not trying to connect to nRF Cloud.&amp;nbsp; We&amp;#39;re trying to connect to our own private AWS cloud site.[/quote]
&lt;p&gt;In that case, I suggest having a look at the aws_iot sample, and see how that sample solve this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/net/aws_iot"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/net/aws_iot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/net/aws_iot/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/net/aws_iot/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;These post might also be helpful:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/cellular-iot-guides/b/software-and-protocols/posts/connecting-to-aws-cloud-services-using-the-nrf9160"&gt;Connecting to AWS cloud services using the nRF9160&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT between our custom nRD9160 device and our AWS VPC</title><link>https://devzone.nordicsemi.com/thread/525585?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 17:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69cc361c-2465-490f-8471-74d344ac3a0b</guid><dc:creator>JackW</dc:creator><description>&lt;p&gt;Thnanks for your response, but unfortunately, this doesn&amp;#39;t address my problem.&lt;/p&gt;
&lt;p&gt;First of all, please note that we&amp;#39;re not trying to connect to nRF Cloud.&amp;nbsp; We&amp;#39;re trying to connect to our own private AWS cloud site.&lt;br /&gt;&lt;br /&gt;Next, we have certificates loaded, and we have an IoT Thing defined in our cloud, that corresponds to our custom nRF 9160 device.&amp;nbsp; That&amp;#39;s all working.&lt;br /&gt;&lt;br /&gt;Our problem now is in trying to get MQTT messaging working.&amp;nbsp; This is where the problem is, and this is where we need help.&lt;br /&gt;&lt;br /&gt;According to this sequence of messages taken from the Serial Terminal, it appears that our device is attempting to communicate with the nRF Cloud, when we want it to communicate with our private AWS Cloud:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;[00:33:39.554,626] &amp;lt;inf&amp;gt; app_event_manager: CLOUD_EVT_CONNECTION_TIMEOUT&lt;br /&gt;[00:33:39.555,328] &amp;lt;inf&amp;gt; app_event_manager: CLOUD_EVT_CONNECTING&lt;br /&gt;[00:33:46.414,825] &amp;lt;err&amp;gt; nrf_cloud_transport: MQTT input error: -128&lt;br /&gt;[00:33:46.414,916] &amp;lt;err&amp;gt; nrf_cloud_transport: Error disconnecting from cloud: -128&lt;br /&gt;[00:33:46.415,008] &amp;lt;inf&amp;gt; app_event_manager: CLOUD_EVT_DISCONNECTED&lt;br /&gt;&lt;br /&gt;This defines the problem that we&amp;#39;re trying to troubleshoot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT between our custom nRD9160 device and our AWS VPC</title><link>https://devzone.nordicsemi.com/thread/525509?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 12:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5f1955f-da6f-4892-88e6-e1806cfe8988</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;See these 2 posts here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109532/difficulty-provisioning-thingy91-to-aws-iot-fleet-provisioning-claim-method"&gt;Difficulty Provisioning Thingy91 to AWS IoT Fleet Provisioning (Claim Method)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/116556/nrf-cloud-provisioning-service"&gt;nRF Cloud Provisioning Service&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and this doc page:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/Credentials.html#generating-credentials-using-at-commands"&gt;https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/Credentials.html#generating-credentials-using-at-commands&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>