<?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>Advertise sensor data using beacon?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97580/advertise-sensor-data-using-beacon</link><description>As the title says, is it possible to continuously advertise and update additional sensor data using beacon? 
 I&amp;#39;m currently working with the nRF52 DK and NRF Connect SDK + Zephyr, and I am using the Eddystone sample. 
 So my question is it possible to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Mar 2023 14:31:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97580/advertise-sensor-data-using-beacon" /><item><title>RE: Advertise sensor data using beacon?</title><link>https://devzone.nordicsemi.com/thread/416055?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 14:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a9fccdf-a908-4458-b313-bd80d446e2a7</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Check the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/02f76ba0e91ba0fe5bb58f38bb787cd652d818b8/include/bluetooth/bluetooth.h#L306-L310"&gt;bt_data&lt;/a&gt; struct under the bluetooth.h and each data you add to the array (sd/ad) will be transferred to the structure. And check the Macros &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/zephyr/reference/bluetooth/gap.html#:~:text=BT_DATA(_type%2C%20_data%2C%20_data_len)"&gt;BT_DATA&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/zephyr/reference/bluetooth/gap.html#:~:text=BT_DATA_BYTES(_type%2C%20_bytes...)"&gt;BT_DATA_BYTES&lt;/a&gt; used for creating the bt_data struct.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise sensor data using beacon?</title><link>https://devzone.nordicsemi.com/thread/415584?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 02:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f74feb83-61a3-489d-a93c-3cabfb59a16f</guid><dc:creator>natlynn</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Abhijith, thanks for the reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How is possible to change the data when the bt_data struct is a const?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise sensor data using beacon?</title><link>https://devzone.nordicsemi.com/thread/414958?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 14:43:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdabfc11-4b5c-479e-b312-9aeafbb8f61b</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Yes it is possible to include the sensor data while advartisning You can include this either in an advertising packet or in your scan response packet. Take &amp;nbsp;a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#group__bt__gap_1ga9a406ebfefac3dd09935a4ae0e317817:~:text=int%20bt_le_adv_update_data(,%EF%83%81"&gt;bt_le_adv_update_data &lt;/a&gt;function to dynamically update the advertising&amp;nbsp;data. Take a look at the&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_lbs/README.html"&gt; peripheral_lbs &lt;/a&gt;sample for understanding the scan response and how it is passed while the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#group__bt__gap_1ga9a406ebfefac3dd09935a4ae0e317817:~:text=int%20bt_le_adv_start(,%EF%83%81"&gt;advertisement&amp;nbsp;begins&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Kind Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Abhijith&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>