<?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>Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83159/asset-tracker-v2-application-how-to-subscribe-to-non-aws-specific-topic</link><description>I have built and successfully run this application with the nRF Cloud and then I achieved a partial success with running this application with the AWS IoT. 
 When I run this app with the AWS IoT, I can see all relevant data sent from my nRF9160DK to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jan 2022 09:46:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83159/asset-tracker-v2-application-how-to-subscribe-to-non-aws-specific-topic" /><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/348445?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 09:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61653ef9-ffda-4f34-b930-18c86559aca9</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Yes, opening a new ticket would be nice.&lt;/p&gt;
&lt;p&gt;But in general, I recommend you read through the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/README.html"&gt;Asset Tracker v2 documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It contains a lot of useful information about the application architecture, and how it can be extended.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/348365?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 16:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f1d9d9b-a3e1-4d35-bc21-6b2118f15850</guid><dc:creator>Jacek Majda</dc:creator><description>&lt;p&gt;Problem solved.&lt;/p&gt;
&lt;p&gt;Once I followed the recommended steps on how to use the Kconfig overlays, I was able to successfully build and run the application: asset_tracker_v2.&lt;/p&gt;
&lt;p&gt;I am now able to see the battery voltage value (and its time stamp) reported from my nRF9160DK device to the shadow topics on the AWS IoT Core, every minute.&lt;/p&gt;
&lt;p&gt;I am also able to see the button press data reported from my device to the AWS IoT Core topic: &amp;lt;IMEI&amp;gt;/messages.&lt;/p&gt;
&lt;p&gt;As a next step, I would like to be able to see the data on the state (On/Off) of the sliding switches: sw1 and sw2 reported from my nRF9160DK device to a topic on AWS IoT Core , every 1 minute.&lt;/p&gt;
&lt;p&gt;How can this be done?&amp;nbsp; Shall I open a new ticket for this query?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/348247?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 11:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a9e917-4c66-4ebc-804c-e502b9b67ff7</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;No, overlay files are not automatically included.&lt;/p&gt;
&lt;p&gt;This part of the asset_tracker_v2 documentation explains how to use Kconfig overlays:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/doc/asset_tracker_v2_description.html#building-with-overlays"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/doc/asset_tracker_v2_description.html#building-with-overlays&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/348245?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 10:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62aa42b2-bf56-411c-b468-a4a4a07db157</guid><dc:creator>Jacek Majda</dc:creator><description>&lt;p&gt;I did not take any action to include the overlay config in my build, as I assumed that this inclusion of the overlay config was already taken care of in some other files in the .src directory for asset_tracker_v2 application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/348232?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 10:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82d05ed2-96d0-4aec-907e-409b137e5834</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;How did you include the overlay config in your build?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/348126?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 17:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a357cc-9f7e-418f-8564-0ae83ebad3e7</guid><dc:creator>Jacek Majda</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, I did.&lt;/p&gt;
&lt;p&gt;However, I did enable it NOT in the prj.conf file but only in the ovelay-aws.conf file, where many lines of code that used to be listed in the prj.conf file as AWS IoT mandatory application specific configurations for AWS IoT (under the nRF Connect SDK 1.7.0) , have now been placed, under nRF Connect SDK 1.8.0.&lt;/p&gt;
&lt;p&gt;I attach copies of the ovelay-aws.conf file and the prj.conf file that I used with the application: asset_tracker_v2 ,using nRF Connect SDK 1.8.0.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;JM&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/overlay_2D00_aws-for-asset_5F00_tracker_5F00_v2.txt"&gt;devzone.nordicsemi.com/.../overlay_2D00_aws-for-asset_5F00_tracker_5F00_v2.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7651.prj.txt"&gt;devzone.nordicsemi.com/.../7651.prj.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/348114?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 16:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a3cec3f-bf02-4f5b-b6fc-ae95c27de83d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;When you disabled CONFIG_NRF_CLOUD_MQTT, did you remember to enable CONFIG_AWS_IOT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/347887?ContentTypeID=1</link><pubDate>Sun, 16 Jan 2022 21:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e164ba-b214-4b59-ad5d-3971cc2eacc5</guid><dc:creator>Jacek Majda</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After some further analysis and experimenting I found that the data about the button presses on my nRF9160DK device was in fact being sent from my device to the aws IoT Core and it was available in the aws IoT topic: &amp;lt;IMEI&amp;gt;/messages , as expected.&lt;/p&gt;
&lt;p&gt;The only reason why I have not found this data was the incorrect value (number) that I was using for &amp;lt;IMEI&amp;gt; while trying to subscribe to the aws IoT topic: &amp;lt;IMEI&amp;gt;/messages.&lt;/p&gt;
&lt;p&gt;Once I used the correct value (number) for the &amp;lt;IMEI&amp;gt; , as per data obtained from the modem of my nRF9160DK device, using AT command: AT+CGSN , this problem has been resolved and I was able to see both:&lt;/p&gt;
&lt;p&gt;1. the data about the battery voltage (with its time stamp) sent from my device to the shadow topics of the aws IoT Core and&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. the data about the button presses on my device sent from my device to the topic: &amp;lt;IMEI&amp;gt;/messages on the aws IoT Core.&lt;/p&gt;
&lt;p&gt;However, when I thought that this problem has been resolved or good, something happened on the 14th January 2022.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I started receiving messages like:&lt;/p&gt;
&lt;p&gt;1. ERROR: cmake failed&lt;/p&gt;
&lt;p&gt;2. create_nordic_project.py failed&lt;/p&gt;
&lt;p&gt;3. CMake error at: C:/.../v1.7.0/zephyr/cmake/kconfig:268 (message): command failed with return code 1.&lt;/p&gt;
&lt;p&gt;4. src/watchdog/kconfig - not found (in &amp;#39;rsource &amp;quot;src/watchdog/kconfig&amp;quot;)&lt;/p&gt;
&lt;p&gt;As I run into problems on 14 January 2022 with creating Nordic projects using nRF Connect SDK 1.7.0 , I decided to upgrade to the latest version of the nRF Connect SDK 1.8.0 and I was able to successfully build and run the sample: AWS-IoT, using the nRF Connect SDK 1.8.0.&lt;/p&gt;
&lt;p&gt;However, there were issues when I tried to build and run the application: Asset Tracker v2, using nRF Connect SDK 1.8.0.&lt;/p&gt;
&lt;p&gt;In the past, when I was using the nRF Connect SDK 1.7.0 to build and run the application: Asset Tracker v2, I noticed that in order to be able to see the data sent from my nRF9160DK device to the AWS IoT in the relevant AWS IoT Core topics , I had to make the following changes in the prj.conf file for asset_tracker_v2 application:&lt;/p&gt;
&lt;p&gt;I had to disable the following option (by setting it to &amp;#39;n&amp;#39;): CONFIG_NRF_CLOUD_MQTT=n&lt;/p&gt;
&lt;p&gt;and I had to enable the following option (by setting it to &amp;#39;y&amp;#39;): CONFIG_AWS_IOT=y&lt;/p&gt;
&lt;p&gt;However, when I was using the nRF Connect SDK 1.8.0 and I tried to disable (by setting it to &amp;#39;n&amp;#39;) the option: CONFIG_NRF_CLOUD_MQTT=n in the prj.conf file for app: asset_tracker_v2, I was unable to complete the process of &amp;quot;Build Solution&amp;quot; in Segger IDE, with the following error messages popping up:&amp;nbsp; Build solution failed. Error was detected while compiling cloud_module.c. &amp;quot;A cloud transport service must be enabled&amp;quot;.&lt;/p&gt;
&lt;p&gt;And in order to be able to successfully complete the process of &amp;quot;Build Solution&amp;quot; by Segger IDE, I had to enable this option (by setting it to &amp;#39;y&amp;#39;) as follows: CONFIG_NRF_CLOUD_MQTT=y&lt;/p&gt;
&lt;p&gt;This resulted in the successful build of the application: asset_tracker_v2, that I programmed into my nRF9160DK device.&lt;/p&gt;
&lt;p&gt;Once my nRF9160DK was programmed with the above version of the &amp;quot;Build Solution&amp;quot; for application: asset_tracker_v2, I could see ,via the Link Monitor, that all activities on my nRF9160DK device were running as expected and that my device was communicating with AWS IoT Core.&lt;/p&gt;
&lt;p&gt;However, I could not see any data from my device displayed in the relevant topics on the AWS IoT Core (neither in the shadow topics nor in the &amp;lt;IMEI&amp;gt;/messages topic).&amp;nbsp; &amp;nbsp;This was in contrast to my earlier experience with the same application: asset_tracker_v2, that was built using the nRF Connect SDK 1.7.0 with the following option disabled by &amp;#39;n&amp;#39;: CONFIG_NRF_CLOUD_MQTT=n.&lt;/p&gt;
&lt;p&gt;What can be done to allow me to see the data sent from my nRF9160DK device to the AWS IoT Core, in the relevant topics of the AWS IoT Core that is: the shadow topics and the &amp;lt;IMEI&amp;gt;/messages topic?&lt;/p&gt;
&lt;p&gt;From my experience, it seems that one needs to be able to successfully complete the &amp;quot;Build Solution&amp;quot; process in Segger IDE with the following option in the prj.conf file disabled by &amp;#39;n&amp;#39;:&amp;nbsp; CONFIG_NRF_CLOUD_MQTT=n.&lt;/p&gt;
&lt;p&gt;What is the solution to this problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;JM&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2 application. How to subscribe to non-AWS specific topic:</title><link>https://devzone.nordicsemi.com/thread/345253?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 13:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4c67b1-3995-45e5-a54d-1856ba3c795b</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. Is the non AWS specific topic the same as the application specific topic?[/quote]
&lt;p&gt;Yes. They are topics that AWS doesn&amp;#39;t use for some special/predifined purpose. Note that they are not allowed to start with $.&lt;/p&gt;
[quote user=""]2. If&amp;nbsp; I need to insert the section of code from the main.c of the sample: AWS-IoT to the main.c of the app: Asset Tracker v2 (in order to be able to see the data in the AWS IoT topic:&amp;nbsp;&amp;nbsp;&amp;lt;imei&amp;gt;/messages) , where exactly shall I insert this section of code in the main.c&amp;nbsp; source file for app: Asset Tracker v2 (or may be in another source .c file for this app)?[/quote]
&lt;p&gt;The cloud_wrap_*_send() functions might be the best place:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/asset_tracker_v2/src/cloud/aws_iot_integration.c#L380-L540"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/applications/asset_tracker_v2/src/cloud/aws_iot_integration.c#L380-L540&lt;/a&gt;&amp;nbsp;&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>