<?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>differentiate two devices with same service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23131/differentiate-two-devices-with-same-service</link><description>My sensor app is based on nRF UART service and my current case in one sensor (peripheral) one gateway (central). 
 In a situation where there are two pairs of sensors (S1, S2) and gateways (G1 G2). How can I make them only connect to one particular nodes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2017 11:06:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23131/differentiate-two-devices-with-same-service" /><item><title>RE: differentiate two devices with same service</title><link>https://devzone.nordicsemi.com/thread/90979?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 11:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11b24bac-2be8-435a-84ff-370169146490</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In the SDK central examples we generally use 3 different methods to differentiate between peripherals, in order to determine what peripherals to connect to.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Advertising name: Only connect to peripherals with a given name.&lt;/li&gt;
&lt;li&gt;BLE address: Only connect to a peripheral that have the correct Bluetooth address.&lt;/li&gt;
&lt;li&gt;UUID: Only connect to peripherals that have the correct service UUID.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Assuming that your sensors uses the same UUID, you can either differentiate between them using the BLE address or the advertising name.&lt;/p&gt;
&lt;p&gt;All these methods are shown in the ble_app_hrs_c example.
The example can be found in the folder:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;SDK_InstallFolder&amp;gt;\examples\ble_central\ble_app_hrs_c
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>