<?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>Beacon and Central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20671/beacon-and-central</link><description>Good afternoon. 
 I have 2 boards NRF51: 
 
 
 One as beacon (SDK 9), use example code &amp;quot;nRF51_SDK_9.0.0\examples\ble_peripheral\ble_app_beacon&amp;quot;. 
 
 
 The other as central (SDK10, softdevice s130), use example code &amp;quot;nRF5_SDK_10.0.0\examples\ble_central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Mar 2017 10:02:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20671/beacon-and-central" /><item><title>RE: Beacon and Central</title><link>https://devzone.nordicsemi.com/thread/80600?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2017 10:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e44ba233-4358-4522-a998-f1fa348e3646</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You can add the string and battery level to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/structble__advdata__t.html#a717bae6e0ed091bc095ac081d85c83ed"&gt;Manufacturer specific data field&lt;/a&gt; of the advertising packet. &lt;a href="https://devzone.nordicsemi.com/blogs/30/measuring-lithium-battery-voltage-with-nrf51/"&gt;Here&lt;/a&gt; is a blog post about how to measure the battery voltage, and you can find an actual example of battery measurement for the nRF51 in this &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/tree/master/ble_app_hrs_adc_battery_measurement"&gt;ADC example on GitHub&lt;/a&gt;. Note that you will have to update the advertising data on each measurement interval.&lt;/li&gt;
&lt;li&gt;When the central receives an advertising packet, you will get a &lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt; event in the &lt;code&gt;on_ble_evt()&lt;/code&gt; handler. Here you can parse the package and extract the data, using a method similar to the &lt;code&gt;adv_report_parse()&lt;/code&gt; function found in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/ble_sdk_app_multilink.html?cp=4_0_1_4_2_0_1"&gt;BLE Multilink central example&lt;/a&gt;. If you are scanning a large number of devices (beacons), or do not want to establish a connection between the devices, this is the only method available for passing data.&lt;/li&gt;
&lt;li&gt;In general, we recommend using the latest SDK supporting your device for development. If you have already started the development, you will have to consider if the recent SDK support features that you desire before doing a migration. It can be some work to migrate from an old SDK to an new one, so this depends on whether the added value exceeds the required workload.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>