<?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>Broadcast 4 bytes from peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4504/broadcast-4-bytes-from-peripheral</link><description>What are the possibilities to broadcast 4bytes to many devices?
Can I just put them somewhere in adv packet? Any other solutions?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Nov 2014 17:58:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4504/broadcast-4-bytes-from-peripheral" /><item><title>RE: Broadcast 4 bytes from peripheral</title><link>https://devzone.nordicsemi.com/thread/15987?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 17:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5135d28e-7e6c-4dce-9427-0886edcd00de</guid><dc:creator>Oliver</dc:creator><description>&lt;p&gt;I added a chapter which should clarify upon your concern.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcast 4 bytes from peripheral</title><link>https://devzone.nordicsemi.com/thread/15986?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 14:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe0ea3d-fda9-4699-8b21-9a3328dcabe6</guid><dc:creator>buslik</dc:creator><description>&lt;p&gt;Tnx for help. I forget to mention that I would like to update data each second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcast 4 bytes from peripheral</title><link>https://devzone.nordicsemi.com/thread/15985?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 13:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f32d42-f7d6-4f55-a11a-6c75e138fcac</guid><dc:creator>Oliver</dc:creator><description>&lt;p&gt;You can include arbitrary data in the advertisement payload using the &lt;a href="https://www.bluetooth.org/en-us/specification/assigned-numbers/generic-access-profile"&gt;&lt;code&gt;MANUFACTURER_SPECIFIC_DATA&lt;/code&gt;&lt;/a&gt; type. The size is limited by the maximum size of one advertisement frame, though.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; If haven&amp;#39;t used any of the nRF chips before, but by looking at the S110 API it should be pretty simple to update the advertisement data quite frequently.&lt;/p&gt;
&lt;p&gt;First start the advertising using &lt;code&gt;sd_ble_gap_adv_start&lt;/code&gt; with a proper value for &lt;code&gt;interval&lt;/code&gt;. Something like &lt;code&gt;0x640&lt;/code&gt; should correspond to an interval of 1 second, since 1000 / 0.625 = 1600. Second you need to call &lt;code&gt;sd_ble_gap_adv_data_set&lt;/code&gt; to update your advertisement data when ever you feel the need to.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Beware:&lt;/strong&gt; These are just assumptions, since I haven&amp;#39;t worked with an nRF chip or the corresponding software stack before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>