<?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 string send to nrf cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102921/asset-tracker-v2-string-send-to-nrf-cloud</link><description>Hi All! 
 I am using asset tracker v2, NCS 2.4.0, and vs code studio. 
 asset tracker v2 example is working fine and I am able to view the data on nrf cloud. 
 My question is that how can I send the simple string &amp;quot;Hello world&amp;quot; to nrf cloud along with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Aug 2023 10:47:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102921/asset-tracker-v2-string-send-to-nrf-cloud" /><item><title>RE: asset tracker v2 string send to nrf cloud</title><link>https://devzone.nordicsemi.com/thread/443529?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 10:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:918926fd-31a2-40d4-b402-9e3daa45d9b6</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m taking over this ticket as Einar is out of office. You can add the string to &lt;span&gt;&lt;span dir="ltr"&gt;cloud_codec_encode_batch_data&lt;/span&gt;&lt;/span&gt; in nrf_cloud_codec.c. Add the lines&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err =  add_data(root_array, NULL, &amp;quot;Something&amp;quot;, &amp;quot;Hello World&amp;quot;,

                k_uptime_get(), true, NULL, false);

if (err &amp;amp;&amp;amp; err != -ENODATA) {

        return err;

}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: asset tracker v2 string send to nrf cloud</title><link>https://devzone.nordicsemi.com/thread/441940?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 17:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6315a65f-012f-487a-9a30-bef8e057f9a1</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hello Einarh&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried&amp;nbsp;to add&amp;nbsp;the data types in data_module.c&amp;nbsp; of type char *&lt;/p&gt;
&lt;p&gt;of&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;data_module.c&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;IS_EVENT&lt;/span&gt;&lt;span&gt;(msg, location, LOCATION_MODULE_EVT_GNSS_DATA_READY))// line # 1390&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;new_location_data&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;hello world&amp;quot;&lt;/span&gt;&lt;span&gt;;&amp;nbsp; &amp;nbsp; &amp;nbsp;// line # 1402&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;but it still not displaying on nrf cloud. Should i have to change something in the .json files?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;can you please highlight in which files I have to change after adding the new data type?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Again Thanks&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: asset tracker v2 string send to nrf cloud</title><link>https://devzone.nordicsemi.com/thread/441908?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 14:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce9ce94d-1025-4b57-a29f-d17accccdea7</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/einarh"&gt;Einarh&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for the response!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I just saw the&amp;nbsp;&lt;span&gt;data_get&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;) in the main.c , this is related to enabling and disabling the existing data types right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have a confusion that how I pass my data (&amp;quot;Hello World&amp;quot;)&amp;nbsp; in data_module.c file , so that it is added along with other data types and seen on the nrf cloud?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;/* Message handler for all states. */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;on_all_states&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; data_msg_data &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;msg&lt;/span&gt;&lt;span&gt;){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;IS_EVENT&lt;/span&gt;&lt;span&gt;(msg, location, LOCATION_MODULE_EVT_GNSS_DATA_READY))&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// i changed the values in this event and it worked for GNSS values ,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Can you please help me for the Hello world data to send along with other types&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;Thanks in advance!&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: asset tracker v2 string send to nrf cloud</title><link>https://devzone.nordicsemi.com/thread/441863?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 12:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8cce5bc-80bd-41e9-b746-611ac2f7ee0e</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;The handling of data to be sent happens in &lt;code&gt;data_module.c&lt;/code&gt;, and in &lt;code&gt;main.c&lt;/code&gt; this data is accessed through &lt;code&gt;data_get()&lt;/code&gt;, so that would be where to start.&lt;/p&gt;
&lt;p&gt;Please let me know if you have further questions after getting familiarized with the code.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>