<?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>BLE advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44819/ble-advertising</link><description>Hi, 
 
 I need an indication that BLE is currently advertising. Do I have it? 
 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Mar 2019 13:17:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44819/ble-advertising" /><item><title>RE: BLE advertising</title><link>https://devzone.nordicsemi.com/thread/177588?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 13:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a52ae6ba-b370-4849-86c4-b36bdb846a5e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;What problems do you face when using your own flags?&amp;nbsp;Race conditions? If that is the case, I think &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14071/check-if-currently-advertising"&gt;this&lt;/a&gt;&amp;nbsp;thread is a good read, and Ulrich presents a good solution to handle it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising</title><link>https://devzone.nordicsemi.com/thread/176568?ContentTypeID=1</link><pubDate>Sun, 17 Mar 2019 11:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b16d1f7a-ed38-4300-9f6e-cb24b9ba4b58</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Thanks Simon!&lt;/p&gt;
&lt;p&gt;But I meant to a software indication (flag, state etc...). I need an indication so I will not start advertising twice. I tried to manage my own flag, but it cause a lot of problems.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising</title><link>https://devzone.nordicsemi.com/thread/176231?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 14:22:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c19f9bad-5667-4ff2-bca8-42bb51aa6ca7</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;There are several ways of checking if the device is advertising:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Most of the examples in the SDK will indicate advertising by blinking LED 1 (&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/examples_bsp#BSP_INDICATE_ADVERTISING"&gt;BSP_INIDCATE_ADVERTISING&lt;/a&gt;). However, this may vary and you have to check with the specific application.&lt;/li&gt;
&lt;li&gt;Download nRF Connect on the phone, and check if you see the device advertising with the name set in the application flashed onto the chip (through &lt;em&gt;sd_ble_gap_device_name_set(..)&lt;/em&gt; )&lt;/li&gt;
&lt;li&gt;Check if the return value of&amp;nbsp;&lt;em&gt;sd_ble_gap_adv_start(..)&amp;nbsp;&lt;/em&gt;is&amp;nbsp;NRF_SUCCESS (=0x00)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>