<?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>advertisement using button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14521/advertisement-using-button</link><description>hello there . i want to do something like when i press button advertisement starts. when i release button advertisement stops. can anyone tell me how to do this?? any sample code available??. i know about advertisement. but i don&amp;#39;t know about buttons</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2016 19:02:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14521/advertisement-using-button" /><item><title>RE: advertisement using button</title><link>https://devzone.nordicsemi.com/thread/55451?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 19:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e09633-bc31-4ad7-b9ab-affae44d7908</guid><dc:creator>Yacire</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have the Button handler librarie where you can found some infos:
link: &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fgroup__app__button.html&amp;amp;resultof=%22app_button%22%20"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can start the advertising with the function:  	sd_ble_gap_adv_start(...), and stop the advertising with the function:  	sd_ble_gap_adv_stop(void).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: advertisement using button</title><link>https://devzone.nordicsemi.com/thread/55450?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 18:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:977a7bde-d858-418b-989a-0d92acbd8829</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Check out any of the button examples.  This is quite easy to implement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>