<?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>Scan time out</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20727/scan-time-out</link><description>Hi. I&amp;#39;m using nRF51822, SDK12.2.0, S130 as multi-link Central. 
 #define SCAN_TIMEOUT 10 
 Time-out is working well when it is Single connection. After 10 second, it stops scanning. 
 When I use it as multi-link central, the operation is as below.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Mar 2017 14:12:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20727/scan-time-out" /><item><title>RE: Scan time out</title><link>https://devzone.nordicsemi.com/thread/80884?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb5cd002-127a-48ff-ae78-cb4d61bd4fd7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;When you stop the scanner and start it again, the scanner timeout will be reset.&lt;/p&gt;
&lt;p&gt;I would suggest you to use a app timer to do the task.
You start the app timer when you start your first scanning, and then when the timer timeout (10 seconds) you check if you are scanning then you can stop scanning.&lt;/p&gt;
&lt;p&gt;You can have a look at our ble_peripheral examples we use app timer in most of our examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>