<?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 check adv, connect in peripheral ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29335/how-to-check-adv-connect-in-peripheral</link><description>Hi, 
 (1) I look for some methods that suggests is application flag to record. but I set this ble_adv_on_disconnect_disabled = false;. How do I check ble state when disconnect ? 
 (2) I see the Advertising Module in nordic Semiconductor Infocenter.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jan 2018 12:45:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29335/how-to-check-adv-connect-in-peripheral" /><item><title>RE: how to check adv, connect in peripheral ?</title><link>https://devzone.nordicsemi.com/thread/116706?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 12:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9091ce41-7abb-491e-bbaa-b22049eb040e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;What do you mean by BLE state? If you are advertising or not? Or something else? Maybe &lt;a href="https://devzone.nordicsemi.com/question/80959/check-if-currently-advertising/"&gt;this&lt;/a&gt; is of help.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I still don&amp;#39;t understand what you are asking about. Are you asking about the advertising events?&lt;/p&gt;
&lt;p&gt;/**@brief   Advertising events.
*&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;@details These events are propagated to the main application if a handler was provided during&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;     initialization of the Advertising Module. Events for modes that are not used can be
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;     ignored. Similarly, BLE_ADV_EVT_WHITELIST_REQUEST and BLE_ADV_EVT_PEER_ADDR_REQUEST
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;     can be ignored if whitelist and direct advertising is not used.
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;/
typedef enum
{
BLE_ADV_EVT_IDLE,                /**&amp;lt; Idle; no connectable advertising is ongoing.&lt;/em&gt;/
BLE_ADV_EVT_DIRECTED,            /&lt;strong&gt;&amp;lt; Direct advertising mode has started. */
BLE_ADV_EVT_DIRECTED_SLOW,       /&lt;/strong&gt;&amp;lt; Directed advertising (low duty cycle) has started. */
BLE_ADV_EVT_FAST,                /&lt;strong&gt;&amp;lt; Fast advertising mode has started. */
BLE_ADV_EVT_SLOW,                /&lt;/strong&gt;&amp;lt; Slow advertising mode has started. */
BLE_ADV_EVT_FAST_WHITELIST,      /&lt;strong&gt;&amp;lt; Fast advertising mode using the whitelist has started. */
BLE_ADV_EVT_SLOW_WHITELIST,      /&lt;/strong&gt;&amp;lt; Slow advertising mode using the whitelist has started. */
BLE_ADV_EVT_WHITELIST_REQUEST,   /&lt;strong&gt;&amp;lt; Request a whitelist from the main application. For whitelist advertising to work, the whitelist must be set when this event occurs. */
BLE_ADV_EVT_PEER_ADDR_REQUEST    /&lt;/strong&gt;&amp;lt; Request a peer address from the main application. For directed advertising to work, the peer address must be set when this event occurs. */
} ble_adv_evt_t;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check adv, connect in peripheral ?</title><link>https://devzone.nordicsemi.com/thread/116705?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 02:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063316a1-fcc4-4757-a861-2907ff745195</guid><dc:creator>CFF.K</dc:creator><description>&lt;p&gt;This my fault, thank you for reminding me. Blow is my rephrase:&lt;/p&gt;
&lt;p&gt;(1)	How do I know ble state when I set 『ble_adv_on_disconnect_disabled = false』? Because this flag represent 『Enable or disable automatic return to advertising upon disconnecting』, so how could I confirm ble state is ADV mode when ble disconnect?&lt;/p&gt;
&lt;p&gt;(2)	I refer the Advertising Module of nordic Semiconductor Infocenter, this is link for you:
&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v9.0.0%2Flib_ble_advertising.html&amp;amp;cp=4_1_0_3_1_1."&gt;link text&lt;/a&gt;
I want know where event’s defined file in the message sequence chart of this link. Because I couldn’t find define of Event. (example: Event: Direct Fast started, Event: Directed Slow Started, Event: whitelist requested, Event: Fast Started)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to check adv, connect in peripheral ?</title><link>https://devzone.nordicsemi.com/thread/116704?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 10:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d51b4309-b1fc-451a-bdaa-bdaf1e432b1c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I&amp;#39;m having trouble understand what you are asking about. Could you please elaborate or rephrase?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>