<?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>Why UART client does not connect to multiple peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26937/why-uart-client-does-not-connect-to-multiple-peripherals</link><description>I would like UART client in example 
 C:\NordicSdks\SDK_14.1.0\examples\ble_central\ble_app_uart_c\pca10040\s132\arm5_no_packs
 
 to connect auotomatically to nearby devices broadcasting advertising packets with Nordic UART service UUID encoded data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Nov 2017 08:10:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26937/why-uart-client-does-not-connect-to-multiple-peripherals" /><item><title>RE: Why UART client does not connect to multiple peripherals</title><link>https://devzone.nordicsemi.com/thread/105829?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 08:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d961f095-f83a-4695-ad23-e099e855fb4b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Because simply it&amp;#39;s written as single GAP Central role FW. If you want to establish more links then you need to do few changes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Provision BLE stack aka Soft Device with more links during the init.&lt;/li&gt;
&lt;li&gt;Create some structures/global variables to store mutliple connection handles and GATT handles so the code will really handle parallel connections correctly (not mixing them up!).&lt;/li&gt;
&lt;li&gt;Once one connection is established you need to init another scanning slot (until you hit you maximum which you hardcode at compile time).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are indeed just high-level tasks, there will be many smaller parts to modify in the code. There is multi-link central example in the nRF5 SDK so get more inspiration there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>