<?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>cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59767/cloud_send-fail-aws_iot-with-nrf9160</link><description>Hi, 
 I&amp;#39;m trying to convert the NCS - cloud client sample to connect to AWS_IOT rather than NRF cloud. 
 After a connection achieved, i press Btn1 and I get the following error: 
 
 *** Booting Zephyr OS build v2.1.99-ncs1-8-g367eec2dd60d *** Cloud client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Jan 2021 22:43:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59767/cloud_send-fail-aws_iot-with-nrf9160" /><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/291878?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 22:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b418c8c-4ac7-47b5-83eb-9ddadaabca5b</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/ukhan"&gt;Ukhan&lt;/a&gt;&amp;nbsp;I did resolve all my issues. Can you confirm you&amp;#39;ve followed this guide to create a thing in IoT core, Activate the certificate and ensure policy is attached to the thing.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#creating-a-thing-in-aws-iot"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#creating-a-thing-in-aws-iot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If all of the above is correct and you have internet connection on your modem, you should get the&amp;nbsp;MQTT_EVT_CONNACK event.&lt;/p&gt;
&lt;p&gt;You can enable debug level logging by&amp;nbsp;replacing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_CLOUD_CLIENT_LOG_LEVEL_INF=y&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;with&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_CLOUD_CLIENT_LOG_LEVEL_DBG=y&amp;nbsp;&lt;/p&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;in your cloud_client/prj.conf.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;I added debug logs to every &lt;em&gt;case&lt;/em&gt; in subsys/net/lib/aws_iot/src/aws_iot.c&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;switch&lt;/span&gt;&lt;span&gt; (mqtt_evt-&amp;gt;type)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;so I know what&amp;#39;s going on.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Also your error shows an error to do with the shadow name. AWS recently added the notion of &amp;quot;unnamed&amp;quot; and &amp;quot;named&amp;quot; shadows and they have different Topics so you may want to read abou that. I also found aws_iot.c of NCS includes a full &amp;quot;Client ID&amp;quot; whereas AWS only asks for a shadow with &amp;quot;thing name&amp;quot;, the format of the topic is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;$aws/things/&lt;strong&gt;&lt;code class="replaceable"&gt;thingName&lt;/code&gt;&lt;/strong&gt;/shadow&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;So i ended up changing the sprintf() where cliend_id_buf is populated so it can build the topic strings, so that it doens&amp;#39;t use CONFIG_AWS_IOT_CLIENT_ID_STATIC but uses a new config I added&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_AWS_IOT_THING_NAME that reflects only the &lt;strong&gt;ThingName&amp;nbsp;&lt;/strong&gt;not the full client_ID or what AWS calls&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;Amazon Resource Name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/members/heidi"&gt;Heidi&lt;/a&gt; do you have any comments on this discrepancy&amp;nbsp;between Device&amp;nbsp; shadow&amp;nbsp;MQTT topic format that AWS requires and what is specified in aws_iot.c of NCS?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/290375?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 01:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:739c9164-9fd2-4a46-9b29-a23355d380a0</guid><dc:creator>Ukhan</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/farhangj"&gt;Farhang&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;Could you resolve the issue? If yes can you please share how?&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have tried with 1nce and iBasis sims and am stuck at the same point. &lt;br /&gt;&lt;br /&gt;On port 8333,&amp;nbsp;&lt;span&gt;MQTTEVT reports -128&lt;/span&gt; i.e &lt;a href="https://github.com/eblot/newlib/blob/2a63fa0fd26ffb6603f69d9e369e944fe449c246/newlib/libc/include/sys/errno.h#L161"&gt;&amp;quot;Socket is not connected&amp;quot;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;br /&gt;I tried a different port (&lt;span&gt;443), it doesn&amp;#39;t return an error, but the connection isn&amp;#39;t stable yet.&lt;br /&gt;&lt;br /&gt;In AWS cloudwatch logs I can see this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611192450365v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/243783?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 05:51:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:421253e3-a050-49c9-b02f-e628fbe090e1</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;OK the&amp;nbsp;&lt;span&gt;POLLHUP&amp;nbsp; error was fixed by using an alternate port, 8443 or 443 both work with the SIM Card I have, 8883 which is the default setting of NCS sample cloud_client, results in an immediate&amp;nbsp;hang up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.aws.amazon.com/iot/latest/developerguide/device-shadow-rest-api.html"&gt;https://docs.aws.amazon.com/iot/latest/developerguide/device-shadow-rest-api.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2018/02/aws-iot-core-now-supports-mqtt-connections-with-certificate-based-client-authentication-on-port-443/"&gt;https://aws.amazon.com/about-aws/whats-new/2018/02/aws-iot-core-now-supports-mqtt-connections-with-certificate-based-client-authentication-on-port-443/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;Corporate firewalls and home routers often block inbound and outbound traffic on all ports except port 443 by default, which is the standard port for HTTPS (i.e. internet) traffic. This is done as a security measure to limit the attack surface for possible cyber attacks.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Not sure why 8883 is blocked, perhaps my SIM MNO/MVNO is blocking traffic on 8883.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also as Heidi pointed out,&amp;nbsp;c&lt;/span&gt;&lt;span&gt;erts should be programmed as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;&lt;span&gt;You need the thing certificate (&lt;/span&gt;&lt;code&gt;&lt;span&gt;*-certificate.pem.crt&lt;/span&gt;&lt;/code&gt;&lt;span&gt;), the private key (&lt;/span&gt;&lt;code&gt;&lt;span&gt;*.private.pem.key&lt;/span&gt;&lt;/code&gt;&lt;span&gt;), and the root CA (choose the Amazon Root CA 1,&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;AmazonRootCA1.pem&lt;/span&gt;&lt;/code&gt;&lt;span&gt;).&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Thing certificate is the client certificate and the root CA is the CA certificate.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am now able to connect reliably to AWS IoT, however publishing the sample message (i.e. btn1 trigger), causes the following error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;cloud_send failed, error: -128&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will update this post when I find the solution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/243621?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 11:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3cbc4c9-30fb-4fd5-aa77-f20e66bed811</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="farhangj"]The other thing I&amp;#39;m wondering about is whether or not i have to remove footer and header from.private key/certs before copy pasting into Link monitor-&amp;gt; cert manager?[/quote]
&lt;p&gt;&amp;nbsp;No, keep the header and footer when copy-pasting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just tested with the JSON file that nRF Connect for Cloud generates for you, by dragging and dropping it into the Certificates Manager and the header and footer are included.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/243452?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 17:00:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:489e3752-5554-4cd6-b68f-0ad7c7b27308</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;I sent you the requested traces in a DM. Let me know if there are any missing peices. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/243109?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2020 08:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe0da12-7833-4a0d-81d5-c1f6085f2daa</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! I&amp;#39;m glad you were able to connect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="farhangj"]RE your comment about Kconfig, i have checked out the latest commit on the dev branch of NCS and things my be different than the latest release. AWS_IOT_SEC_TAG is definitely in Kconfig not prj.conf now, and so are so many other settings the documentation calls for.[/quote]
&lt;p&gt;&amp;nbsp;Yes, configurations are always defined in the Kconfig files, but it is the convention that when setting or changing them from their default value you add them to the prj.conf file of your application like this, for example:&lt;/p&gt;
&lt;p&gt;AWS_IOT_SEC_TAG=45&lt;/p&gt;
&lt;p&gt;The reason to do it like that is so you can have different values for this&amp;nbsp;config for&amp;nbsp;different applications using it.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re getting POLLHUP, could you take a modem trace for me so I can take a closer look? &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;This tutorial &lt;/a&gt;shows you how to take a modem trace. And remember to include the log output from when you took the trace.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/243106?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2020 08:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f16cf50a-d90c-44c7-95cd-55d6e99040c7</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;The other thing I&amp;#39;m wondering about is whether or not i have to remove footer and header from.private key/certs before copy pasting into Link monitor-&amp;gt; cert manager?&lt;/p&gt;
&lt;p&gt;It did not complain when i copy pasted entire contents of each file into each corresponding field and updated my modem.&lt;/p&gt;
&lt;p&gt;If the cert manager is not meant to work with an entire cert/key file contents and just the body, it will mess things up.&lt;/p&gt;
&lt;p&gt;Thoughts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/243097?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2020 07:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77e1962c-864f-4c75-beef-5ca59791b4a4</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;Heidi,&lt;/p&gt;
&lt;p&gt;This was extremely helpful thank you. I am now one step closer to getting some data into AWS.&lt;/p&gt;
&lt;p&gt;The error was in cert programming, I was not using AmazonCA1. So thanks for clarifying that.&lt;/p&gt;
&lt;p&gt;Now my device does connect to AWS IoT server, ping is OK, however in the cloud_client app after connect and ping, the polls flags are checked. No incoming data (i wasn&amp;#39;t expecting any either) but the POLLHUP flag is set. I changed the code to try and connect again if POLLHUP was set. it does that for a couple of times until it hangs at mqtt_connect and doesn&amp;#39;t return.&lt;/p&gt;
&lt;p&gt;From AWS IoT Core Monitor i can tell my device successfully connected.&lt;/p&gt;
&lt;p&gt;Perhaps the problem now is that my device is connecting but there&amp;#39;s no outgoing data so AWS hangs up? Or do you think it could still be authentication related?&lt;/p&gt;
&lt;p&gt;I wish there was a more comprehensive demo/tutorial on this cloud_client with AWS IOT. All I want to do is to demo that i can get some data from nRF160 into amazon.. a table or dynamoDB.&lt;/p&gt;
&lt;p&gt;Tomorrow i will focus on creating the DynamoDB and creating a rule so MQTT messages with a known topic are routed to the DB. And will change the example message to something with a proper topic.&lt;/p&gt;
&lt;p&gt;RE your comment about Kconfig, i have checked out the latest commit on the dev branch of NCS and things my be different than the latest release. AWS_IOT_SEC_TAG is definitely in Kconfig not prj.conf now, and so are so many other settings the documentation calls for.&lt;/p&gt;
&lt;p&gt;I am writing this past midnight and from my phone. Forgot to respond earlier.. so sorry about the scattered thoughts, I will be more precise in my next response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cloud_send fail AWS_IOT with nRF9160</title><link>https://devzone.nordicsemi.com/thread/242922?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 11:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61bd98b4-e9e6-418a-91ca-80436c381d60</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So when looking up error codes from NCS, you need to know if the sample is using &lt;a href="https://en.wikipedia.org/wiki/Newlib"&gt;Newlib&lt;/a&gt; or not, which you can see from the prj.conf file. The Cloud Client sample that you are using, uses Newlib,&amp;nbsp;because the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kconfig/CONFIG_NEWLIB_LIBC.html?highlight=newlib_libc#cmdoption-arg-config-newlib-libc"&gt;NEWLIB_LIBC&lt;/a&gt; configuration is enabled &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/cloud_client/prj.conf#L8"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When this is the case, you need to refer to the newlib error codes found &lt;a href="https://github.com/eblot/newlib/blob/master/newlib/libc/include/sys/errno.h"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is different from the default minimal C implementation which uses error codes found &lt;a href="https://github.com/intel/zephyr/blob/master/lib/libc/minimal/include/errno.h"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error file you referred to (&lt;a href="https://github.com/NordicPlayground/nrfxlib/blob/master/bsdlib/include/nrf_errno.h"&gt;nrf_errno.h&lt;/a&gt;) is used directly by bsdlib but is then translated to one of the two files I linked to above when returned from the application. So only refer to the nrf_errno.h file if you&amp;#39;re debugging and seeing returning error codes from directly inside bsdlib.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When that&amp;#39;s said, it looks like cloud_send is returning &lt;a href="https://github.com/eblot/newlib/blob/master/newlib/libc/include/sys/errno.h#L161"&gt;ENOTCONN 128 /*Socket is not connected&lt;/a&gt;*/, mqtt_connect is returning &lt;a href="https://github.com/eblot/newlib/blob/master/newlib/libc/include/sys/errno.h#L147"&gt;ETIMEDOUT 116 */Connection timed out*/&lt;/a&gt;&amp;nbsp;and cloud_connect is returning &lt;a href="https://github.com/eblot/newlib/blob/master/newlib/libc/include/sys/errno.h#L40"&gt;ECHILD 10 */No children*/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I think you are correct in your analysis that the problem is your credentials when trying to connect to AWS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;Also I changed the AWS_IOT_BROKER_HOST_NAME to something like:&lt;/p&gt;
&lt;p&gt;xyzabcefgblah-xxx.iot.us-west-2.amazonaws.com&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;1.&amp;nbsp;In the&amp;nbsp;&lt;a href="https://console.aws.amazon.com/iot/home"&gt;AWS IoT console&lt;/a&gt;, navigate to&amp;nbsp;&lt;strong&gt;IoT core&lt;/strong&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;strong&gt;Manage&lt;/strong&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;strong&gt;things&lt;/strong&gt;&amp;nbsp;and click on the entry for the&amp;nbsp;thing, created during the steps of&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#creating-a-thing-in-aws-iot"&gt;&lt;span&gt;Creating a thing in AWS IoT&lt;/span&gt;&lt;/a&gt;.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;2. Navigate to&amp;nbsp;&lt;strong&gt;interact&lt;/strong&gt;, find the&amp;nbsp;&lt;strong&gt;Rest API Endpoint&lt;/strong&gt;&amp;nbsp;and set the configurable option&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/reference/kconfig/CONFIG_AWS_IOT_BROKER_HOST_NAME.html#cmdoption-arg-config-aws-iot-broker-host-name"&gt;&lt;code&gt;&lt;span&gt;CONFIG_AWS_IOT_BROKER_HOST_NAME&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&amp;nbsp;to this address.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Is that address the Rest API Endpoint?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I gave that a random security tag number and I changed the aws_io/KConfig to reflect the AWS_IOT_SEC_TAG.[/quote]
&lt;p&gt;&amp;nbsp;Not sure what you meant by this. You don&amp;#39;t have to change anything in the KConfig file located in&amp;nbsp;&lt;em&gt;\ncs\nrf\subsys\net\lib\aws_iot\KConfig.&amp;nbsp;&lt;/em&gt;Set the AWS_IOT_SEC_TAG in the prj.conf file of the application you are running and remember to use the same number when flashing the certificates to the modem via LTE Link Monitor. Just make sure not to use the same security tag as the nRF Cloud certificates use:&amp;nbsp;16842753.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you seen &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#creating-a-thing-in-aws-iot"&gt;this documentation&lt;/a&gt; on how to create a thing in AWS IoT? Step 9 describes which certificate you need for which category.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;&lt;span&gt;You need the thing certificate (&lt;/span&gt;&lt;code&gt;&lt;span&gt;*-certificate.pem.crt&lt;/span&gt;&lt;/code&gt;&lt;span&gt;), the private key (&lt;/span&gt;&lt;code&gt;&lt;span&gt;*.private.pem.key&lt;/span&gt;&lt;/code&gt;&lt;span&gt;), and the root CA (choose the Amazon Root CA 1,&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;AmazonRootCA1.pem&lt;/span&gt;&lt;/code&gt;&lt;span&gt;).&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The Thing certificate is the client certificate and the root CA is the CA certificate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]Also changed&amp;nbsp;AWS_IOT_CLIENT_ID_STATIC to the name I gave my &amp;quot;thing&amp;quot; on AWS IOT CORE.[/quote]
&lt;p&gt;&amp;nbsp;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/net/aws_iot.html#configuring-library-options"&gt;this documentation&lt;/a&gt;, specifically, step 3 where it asks you to set the AWS_IOT_CLIENTID_STATIC config to the name of the&amp;nbsp;&lt;em&gt;thing&amp;nbsp;&lt;/em&gt;you created in the AWS IoT Console.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry about the messy format. I hope I answered all of your questions. Let me know if this works for you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>