<?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>advertising state machine</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15754/advertising-state-machine</link><description>Is there any documentation on the advertising state machine ? This post : 
 devzone.nordicsemi.com/.../ 
 mentions the state machine and how it progresses from fast, to slow , then to idle states, but I can&amp;#39;t find any documentation that states how or</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Aug 2016 08:41:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15754/advertising-state-machine" /><item><title>RE: advertising state machine</title><link>https://devzone.nordicsemi.com/thread/60131?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 08:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3de98d9-98b4-4f6e-9440-8c425b6a1c9b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Don,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the documentation and state-machine for the advertising module:
&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_ble_advertising.html?cp=6_0_0_3_1_1"&gt;infocenter.nordicsemi.com/.../lib_ble_advertising.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However; this does not state anything about the configuration struct.
In most BLE-peripheral examples, this is done in function &lt;code&gt;advertising_init()&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_adv_modes_config_t options = {0};
options.ble_adv_fast_enabled  = BLE_ADV_FAST_ENABLED;
options.ble_adv_fast_interval = APP_ADV_FAST_INTERVAL;
options.ble_adv_fast_timeout  = APP_ADV_FAST_TIMEOUT;
options.ble_adv_slow_enabled  = BLE_ADV_SLOW_ENABLED;
options.ble_adv_slow_interval = APP_ADV_SLOW_INTERVAL;
options.ble_adv_slow_timeout  = APP_ADV_SLOW_TIMEOUT;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then to start advertising, based on the configuration that you&amp;#39;ve passed to the module, you can call:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;APP_ERROR_CHECK(ble_advertising_start(BLE_ADV_MODE_FAST));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;or if you&amp;#39;d like to start with slow advertisement:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;APP_ERROR_CHECK(ble_advertising_start(BLE_ADV_MODE_SLOW));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: advertising state machine</title><link>https://devzone.nordicsemi.com/thread/60130?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 19:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29fc3e20-404b-4304-92c7-fb4406183b37</guid><dc:creator>Don</dc:creator><description>&lt;p&gt;I&amp;#39;m assuming part of it has to do with how the options in ble_adv_modes_config_t are configured... correct ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>