<?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>in NCS, how to changing BLE advertising interval at runtime.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81655/in-ncs-how-to-changing-ble-advertising-interval-at-runtime</link><description>Hi, 
 how can we change the BLE advertising interval at runtime In NCS SDK? Any sample code in NCS directory ? Thanks for helping ! 
 Best Regards 
 Frank</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jan 2022 12:42:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81655/in-ncs-how-to-changing-ble-advertising-interval-at-runtime" /><item><title>RE: in NCS, how to changing BLE advertising interval at runtime.</title><link>https://devzone.nordicsemi.com/thread/349757?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 12:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2122136-86c9-41ba-824a-fe93dcddf103</guid><dc:creator>haakonsh</dc:creator><description>[quote user="cosmotic_instant"]Does advertising stop when a peripheral is connected?&amp;nbsp;[/quote]
&lt;p&gt;Most likely, if the advertisements are connectable.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="cosmotic_instant"] it does not appear to be built into my project. [/quote]
&lt;p&gt;conn.c probably has GAP function calls. So the BT GAP functionality is present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in NCS, how to changing BLE advertising interval at runtime.</title><link>https://devzone.nordicsemi.com/thread/349002?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 15:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feab09d2-3f27-4010-a99b-88b887604643</guid><dc:creator>cosmotic_instant</dc:creator><description>&lt;p&gt;Does advertising stop when a peripheral is connected?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If i wanted to change advertising interval via a characteristic, such that when it disconnected, it&amp;#39;d call its bt_le_adv_resume function, and it&amp;#39;d have different setting from when bt_le_adv_start was called, how would i do this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Though i see the bt_le_adv_stop function in the gap.c file in the zephyr API documentation, it does not appear to be built into my project. It appears to only have conn.c, adv.c, hci_core.c, but no GAP...? the adv.h gives a few public functions like bt_le_adv_start, but it doesn&amp;#39;t appear to reflect zephyrs api documentation... im using NCS 1.7.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in NCS, how to changing BLE advertising interval at runtime.</title><link>https://devzone.nordicsemi.com/thread/338775?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 12:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:320a9a75-e62d-4897-b754-63c0d69db1d0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You need to call&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/bluetooth/gap.html#c.bt_le_adv_stop"&gt;bt_le_adv_stop&lt;/a&gt;, update the advertising parameters, then call&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/bluetooth/gap.html#c.bt_le_adv_start"&gt;bt_le_adv_start&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>