<?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>Dynamically Redefine Central nRF52832 Peripherals To Connect To in Relay Application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44493/dynamically-redefine-central-nrf52832-peripherals-to-connect-to-in-relay-application</link><description>Hi, 
 I&amp;#39;ve developed a relay application based off of the ble_app_hrs_rscs_relay_pca10040_s132 example in SES using a Laird BL652 module (nRF52832 underlying device). Presently the program works to connect to a predefined target peripheral name/address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Mar 2019 07:15:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44493/dynamically-redefine-central-nrf52832-peripherals-to-connect-to-in-relay-application" /><item><title>RE: Dynamically Redefine Central nRF52832 Peripherals To Connect To in Relay Application</title><link>https://devzone.nordicsemi.com/thread/175518?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 07:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f1730b9-de46-4311-aca9-59da164a1819</guid><dc:creator>BendaEng</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tried the dynamic definition of connections, but the new variable worked when I tried it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamically Redefine Central nRF52832 Peripherals To Connect To in Relay Application</title><link>https://devzone.nordicsemi.com/thread/175091?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 15:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcfdad50-ab6b-4ba8-b037-f7e30f195f08</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="76147" url="~/f/nordic-q-a/44493/dynamically-redefine-central-nrf52832-peripherals-to-connect-to-in-relay-application"]Is this possible? If so how would it be approached?[/quote]
&lt;p&gt;Yes, it&amp;#39;s possible. You would somehow need to send the target name from the phone to the relay. You could e.g. use the nordic uart BLE service(NUS) for that(take a look at the ble_app_uart example). I.e. you would need to add the NUS service to the relay device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="76147" url="~/f/nordic-q-a/44493/dynamically-redefine-central-nrf52832-peripherals-to-connect-to-in-relay-application"]How would I define this to be able to connect to two different ones as well as be able to disconnect, redefine and reconnect to a any new combination of SENSOR devices?[/quote]
&lt;p&gt;Just create a new variable for the other deivce,&amp;nbsp;m_target_periph_name_2, and use that as a&amp;nbsp;scanning filter as well. In SDK 15.2 there is an scanning module and function you can use for that(nrf_ble_scan_filter_set()).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>