<?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>Include time data to the advertising packet.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57754/include-time-data-to-the-advertising-packet</link><description>Hi, I am trying to add timer information to the sending packet. We created some space(manuf_data) to store data. However, the problem is we do not know how to put actual-time data into space. 
 following is the code we wrote 
 
 static uint8_array_t timestamp_data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Feb 2020 12:44:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57754/include-time-data-to-the-advertising-packet" /><item><title>RE: Include time data to the advertising packet.</title><link>https://devzone.nordicsemi.com/thread/234172?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 12:44:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4294c6f2-587a-45a9-8343-d74ee25c2831</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Hun,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the uint32_t to uint8_t conversion looks OK, any of these should be OK:&amp;nbsp;&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/6499183/converting-a-uint32-value-into-a-uint8-array4"&gt;https://stackoverflow.com/questions/6499183/converting-a-uint32-value-into-a-uint8-array4&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Have you verified that&amp;nbsp;&lt;span&gt;manuf_data_1.data&amp;nbsp;is indeed pointing to the&amp;nbsp;uint8_array_t&amp;nbsp;returned by timestamp_data()? You should be able to verify this with in a debug session.&amp;nbsp;&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;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>