<?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 only when i want to inform nortification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11652/broadcast-only-when-i-want-to-inform-nortification</link><description>Hi, all. 
 I&amp;#39;d like to broadcast only when i want to inform nortification. 
 flow like 
 
 
 No advertising when application start. 
 
 
 Check the events that there has been rising event of a pin. (use GPIOTE) 
 
 
 If Yes, Start advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Feb 2016 07:14:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11652/broadcast-only-when-i-want-to-inform-nortification" /><item><title>RE: broadcast only when i want to inform nortification</title><link>https://devzone.nordicsemi.com/thread/44036?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 07:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c47d2c9-38a6-4c38-9f67-5f833e1638a0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear you got it working. If you are happy with the answer I would appreciate it if you could accept it by clicking on the circle checkmark to the left of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: broadcast only when i want to inform nortification</title><link>https://devzone.nordicsemi.com/thread/44035?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 07:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e0e5dbf-b87a-4f69-98de-38fcd8baf6b5</guid><dc:creator>ame</dc:creator><description>&lt;p&gt;I tried write a code from the beginning, and its working now.
Thanks alot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: broadcast only when i want to inform nortification</title><link>https://devzone.nordicsemi.com/thread/44034?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 13:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8347293d-d53e-40af-9e98-525bc778e800</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The BKPT instruction represents a breakpoint, so I guess it  is  you that halted the execution by setting a breakpoint? Anyway it is difficult to guess anything about your implementation without more details. It may be a good idea to do things in steps, so that you know how to advertise, use timers and use GPIOTE separately. Then combining it should be straightforward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: broadcast only when i want to inform nortification</title><link>https://devzone.nordicsemi.com/thread/44033?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 10:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dbe2009-3b7a-43aa-87ea-7b0480ac9be3</guid><dc:creator>ame</dc:creator><description>&lt;p&gt;Hi Einar, thank you for reply.&lt;/p&gt;
&lt;p&gt;I made a code as you show, but I have a problem now.&lt;/p&gt;
&lt;p&gt;My app does not advertising when i enable the code  &lt;code&gt;app_gpiote_user_register()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Stopping at BKPT 0xAB I checked on Keil debugger then.&lt;/p&gt;
&lt;p&gt;If disable GPIOTE (no use &lt;code&gt;app_gpiote_user_register()&lt;/code&gt;),
i can see advertising when i call &lt;code&gt;sd_ble_gap_adv_start()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I dont know what is the cause.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: broadcast only when i want to inform nortification</title><link>https://devzone.nordicsemi.com/thread/44032?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 10:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5d0c84-040e-42f9-a224-356af913445a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;This should be straightforward. You can call &lt;code&gt;sd_ble_gap_adv_start()&lt;/code&gt; to start advertising when the event that should trigger it occurs (a pin change using GPIOTE in your case). Then you can use a timer (I suggest that you use the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;application timer&lt;/a&gt;), and call &lt;code&gt;sd_ble_gap_adv_stop()&lt;/code&gt; when the timer times out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>