<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80575/aws-iot</link><description>Hi all, 
 I have an issue with integration of the AWS IoT in my source code. The example works for me. I&amp;#39;ve tried to copy&amp;amp;paste the example code to my project (I delete my main.c and use example code), but aws_iot_connect() resets the chip without any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Oct 2021 11:24:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80575/aws-iot" /><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334837?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 11:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79112db4-945e-4b19-93e4-19b2b72abb02</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334836?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 11:22:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13594c5c-16b3-42d1-a4f4-2370683e47d2</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Aleksa,&lt;/p&gt;
&lt;p&gt;It is possible to use the general Cloud API to cover the difference of AWS/AZURE/NRF_Cloud, but just enabling CLOUD_API is not enough. You can refer to the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/samples/nrf9160/cloud_client/README.html#nrf9160-cloud-client"&gt;nRF9160: Cloud client&lt;/a&gt;&amp;nbsp;sample about how cloud API is used, but for the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/samples/nrf9160/aws_iot/README.html"&gt;nRF9160: AWS IoT&lt;/a&gt;&amp;nbsp;sample, it&amp;nbsp;does not use cloud API, you should not enable it here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334815?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 10:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1a4392-117d-42f0-b346-08e376bf374a</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;If someone&amp;nbsp;comes here with&amp;nbsp;a similar issue, here is a&amp;nbsp;similar topic:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79784/subscribing-in-assert-tracker-v2/330201#330201"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/79784/subscribing-in-assert-tracker-v2/330201#330201&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Setting lower&amp;nbsp;keepalive time&amp;nbsp;made it receive all of the messages.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334684?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 17:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dd90b74-9548-46e7-93d1-ddddffa65cdf</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;I have another question (maybe I can open a ticket for it).&lt;/p&gt;
&lt;p&gt;I have connected to the aws mqtt broker from the aws mqtt test client, mqtt.fx app and from my device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have subscribed with the device to all of the default shadow topics available via config. I have also subscribed to the two default custom topic(my-custom-topic/example(2)). When I publish from either of the three clients that I use, aws iot test client and mqtt.fx receive the message if they are subscribed to a specific topic.&amp;nbsp;&lt;br /&gt;I was expecting same behavior for my nrf9160dk device -&amp;nbsp;I expect &amp;quot;AWS_IOT_EVT_DATA_RECEIVED&amp;quot;&amp;nbsp; event to happen whenever&amp;nbsp;I publish to a&amp;nbsp;topic that nrf9160dk is subscribed to.&lt;/p&gt;
&lt;p&gt;However this event seems to happen randomly completely. (out of sync with my publishes)&lt;/p&gt;
&lt;p&gt;Any idea on what could cause this?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Aleksa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334661?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 14:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5607e251-bcd2-49e6-a8b4-cbf04b4554c4</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;As I&amp;#39;ve said it works when I disable this config, but here:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/aws_iot.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/aws_iot.html&lt;/a&gt;&lt;br /&gt;It&amp;#39;s clearly stated that AWS IoT can work with this config enabled.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Aleksa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334645?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 13:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b34c03-68c7-420c-a8c2-eefb8f7a8332</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Aleksa,&lt;/p&gt;
&lt;p&gt;I do not know why you need to enable it before, but for AWS IoT usage, this is not necessary and should not be enabled.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334597?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 12:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83306e97-8c4f-4c48-b975-11cb500c5ab0</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;My bad, the define is:&amp;nbsp;CONFIG_CLOUD_API.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Aleksa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334595?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 12:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e08467c4-8878-4ba8-9b86-a12c629c0050</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Aleksa,&lt;/p&gt;
&lt;p&gt;Is &lt;span&gt;CONFIG_API_CLOUD defined by yourself? I did not find it from any official NCS document and codes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334224?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 16:00:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57386cff-5c1e-43b5-ab97-3769d2993b85</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;br /&gt;So I am using nrf9160dk board, with ncs1.6.1. In the samples/nrf9160/aws_iot there is an example for aws_iot which works for me. I&amp;#39;ve copied over the same main file to my project, and I&amp;#39;ve adjusted the config&amp;nbsp;but the aws_iot didn&amp;#39;t work anymore.&amp;nbsp;&lt;br /&gt;I&amp;#39;ve tested a bit, and found that it works when I set CONFIG_API_CLOUD=n. But I don&amp;#39;t understand why this happens.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Aleksa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334207?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 14:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18c44d96-18cf-432e-9c37-f26d9abcfb19</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Aleksa,&lt;/p&gt;
&lt;p&gt;Ok, good to know your project is also based on NCS, what is the purpose of your project? Can you share a minimal sample of your codes that can recreate the issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334091?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 10:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d771c83-7c00-40d8-96ba-08b650766944</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand why wouldn&amp;#39;t it work?&amp;nbsp;My project and the&amp;nbsp;AWS IoT example&amp;nbsp;use the same NCS.&amp;nbsp;The only reason to fail would&amp;nbsp;have to be related to Kconfig. I&amp;#39;ve made sure that the configuration in my project is the same as&amp;nbsp;the one in the example though (parts relevant to the AWS IoT).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve searched all over nrfjprog documentation, and I wasn&amp;#39;t able to find the specific command that I&amp;#39;ve mentioned in the post. It would literally print out a string explaining the cause of last reset.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Aleksa&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT</title><link>https://devzone.nordicsemi.com/thread/334087?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 09:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7821929f-ac5d-4d30-ace5-8d9624055263</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Aleksa,&lt;/p&gt;
&lt;p&gt;The application codes should not work if you only paste the codes in main.c to your project. The AWS IoT example is a whole solution based on NCS, not just codes in main.c. I suggest you adapt your project into the sample instead.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can find all&amp;nbsp;nrfjprog commands from &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf_cltools%2FUG%2Fcltools%2Fnrf_command_line_tools_lpage.html"&gt;this page&lt;/a&gt;, just check which one you used before.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>