<?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>Switching to another Central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97715/switching-to-another-central-device</link><description>hello, 
 I am developing a ble peripheral device using the &amp;#39;ble_app_hids_keyboard&amp;#39; example. 
 My question is, when I have more than one central device bonded, if I am connected to device A and a connection request comes from device B, I would like to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Mar 2023 08:25:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97715/switching-to-another-central-device" /><item><title>RE: Switching to another Central device</title><link>https://devzone.nordicsemi.com/thread/415619?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 08:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9507a4db-2d00-4b63-ab06-27f1ca64ddbf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Han,&amp;nbsp;&lt;br /&gt;When you see an error, please try to debug it. In this case you can add DEBUG into the preprocessor symbol so that it will print more information not just Fatal Error. Also try to build it in Debug mode not Release mode, so that you can step into the code and debug.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching to another Central device</title><link>https://devzone.nordicsemi.com/thread/415583?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 02:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1a238b-4f6e-48fb-a45c-b30555d39d50</guid><dc:creator>Hanss</dc:creator><description>&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;thanks for the response.&lt;br /&gt;&lt;/span&gt;&lt;span class="Y2IQFc" lang="en"&gt;I&amp;#39;m modifying the source by referencing ble_app_multiperipheral.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After connecting to the device, advertising_start(); is executed, A fatal error is called and the program stops.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Is there anything I need to change before executing advertising_start();?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching to another Central device</title><link>https://devzone.nordicsemi.com/thread/415477?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 13:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4a863b7-9ac4-4aa9-9ac4-76079c84c36f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Han,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would need to support at least 2 connections at a time to have this feature. And it will not be handled automatically by the BLE stack but you will need to manually disconnect device A when device B is connected.&amp;nbsp;&lt;br /&gt;What you need to do is to start advertise after you are connected to device A. And when you receive the connected event of device B you disconnect device A.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to have a look at &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_multiperipheral.html?cp=9_1_4_2_2_26"&gt;ble_app_multiperipheral&lt;/a&gt; as an example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>