<?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>Set maximum connection duration on BLE peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23338/set-maximum-connection-duration-on-ble-peripheral</link><description>Is it possible to limit the connection duration on BLE peripheral (nrf52832)? For example, if central is in connection for more than X seconds, then peripheral terminates the connection.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jul 2017 09:30:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23338/set-maximum-connection-duration-on-ble-peripheral" /><item><title>RE: Set maximum connection duration on BLE peripheral</title><link>https://devzone.nordicsemi.com/thread/91748?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 09:30:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d1c7556-109d-460a-baf9-c1f78ed561d1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can start a timer (use &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/lib_timer.html?cp=4_0_0_3_39"&gt;app_timer&lt;/a&gt; or &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/group__nrf__drv__rtc.html?cp=4_0_0_6_8_19_1"&gt;RTC&lt;/a&gt; for low power) when a device connect, and disconnect the device in the timer callback handler. Make sure you stop the timer if the device disconnects manually before the timer have timed out. Check out the &lt;a href="https://devzone.nordicsemi.com/tutorials/19"&gt;application timer tutorial&lt;/a&gt; for more details on how to create timers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>