<?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>Can we change the advertise interval while runing? 51822, SDK 11</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59870/can-we-change-the-advertise-interval-while-runing-51822-sdk-11</link><description>51822 
 SDK11 
 Can we change the advertise interval after 51822 started? I need to change the interval to lower / higher based on the user phone. For example, if its IOS I will set the interval longer to save current. If its android, I will set the interval</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 13:18:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59870/can-we-change-the-advertise-interval-while-runing-51822-sdk-11" /><item><title>RE: Can we change the advertise interval while runing? 51822, SDK 11</title><link>https://devzone.nordicsemi.com/thread/243672?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:18:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b8b54f3-1da4-49b4-a550-3625a1aa7715</guid><dc:creator>kfcube</dc:creator><description>&lt;p&gt;got it, thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can we change the advertise interval while runing? 51822, SDK 11</title><link>https://devzone.nordicsemi.com/thread/243661?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 12:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e544b1f4-dfc1-4553-b271-95cc391ae7f2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, there is no need to reset the nRF in order to change advertising interval. The advertising interval is part of the configuration struct (ble_gap_adv_params_t) that you pass to&amp;nbsp;sd_ble_gap_adv_start() if you use the SoftDevice API directly.&lt;/p&gt;
&lt;p&gt;If you use the advertising module, this allows you to configure a few advertising intervals (fast and slow), but does not have API to update it. You could modify the module to allow you to update it though, or as a hack, you could remove static from&amp;nbsp;m_adv_modes_config in ble_advertising.c, and declare it as an extern in your code, and set&amp;nbsp;m_adv_modes_config.ble_adv_directed_slow_timeout and/or&amp;nbsp;m_adv_modes_config.ble_adv_fast_interval the new values before you start advertising with&amp;nbsp;ble_advertising_start(). This is of course not very clean but demonstrates how you can do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>