<?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>How to integrate Beacon Transmitter Sample application with Push button function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14815/how-to-integrate-beacon-transmitter-sample-application-with-push-button-function</link><description>Hi all, 
 I am new to nrf51-dk and I am using nRF5 SDK v11.0.0.
I wanted to perform the task below. 
 When the DK is turned ON, read on board push button status.
If button is pressed, 
 advertise data packed A
else 
 advertise data packet B.
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2016 15:23:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14815/how-to-integrate-beacon-transmitter-sample-application-with-push-button-function" /><item><title>RE: How to integrate Beacon Transmitter Sample application with Push button function</title><link>https://devzone.nordicsemi.com/thread/56551?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 15:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f1e91b9-c1b1-437f-8eff-5103cf67275d</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Prasanth&lt;/p&gt;
&lt;p&gt;Perhaps &lt;a href="https://devzone.nordicsemi.com/question/85801/how-to-scan-for-beacon-data-in-nrf51-dk/"&gt;this thread&lt;/a&gt; can help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to integrate Beacon Transmitter Sample application with Push button function</title><link>https://devzone.nordicsemi.com/thread/56550?ContentTypeID=1</link><pubDate>Sat, 02 Jul 2016 02:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51a5ecc8-fc5e-4169-9d78-1855f7ef81fb</guid><dc:creator>Prasanth Thangavel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Many thanks. I had managed to change the advertisement data (major and minor values) based on the push button input.Now, I wanted to scan the advertised data from nearby nrf51-dk and if the data (UUID, major and minor values) matches, i need to light up an on-board LED. I understand we need to use this function&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; err_code = sd_ble_gap_scan_start(&amp;amp;m_scan_param);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;where m_scan_param is defined as follows
static const ble_gap_scan_params_t m_scan_param =
{
SCAN_REQUEST,
SCAN_WHITELIST_ONLY,
NULL,
(uint16_t)SCAN_INTERVAL,
(uint16_t)SCAN_WINDOW,
SCAN_TIMEOUT
};&lt;/p&gt;
&lt;p&gt;Am wondering how this function will return the scanned data advertised by the nearby beacon.
Could you please advise me on this how to read the scanned data and manipulate on it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to integrate Beacon Transmitter Sample application with Push button function</title><link>https://devzone.nordicsemi.com/thread/56549?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2016 09:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5afdbc2-8cd5-4f42-baa8-ab3ef6089817</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You are nearly there!
All you need to do is to add a function call to change your advertising when pushing the button.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = ble_advdata_set(&amp;amp;advdata, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Before you call this function, change the advdata variable to include what you want.&lt;/p&gt;
&lt;p&gt;See the &lt;a href="https://devzone.nordicsemi.com/tutorials/5"&gt;advertising tutorial&lt;/a&gt; for a more info on advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>