<?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>How to create unique reverence code to connect to app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81092/how-to-create-unique-reverence-code-to-connect-to-app</link><description>Dear Community, 
 We are working on a bike finding device that you connect with trough an app. When you are in range of the device you can press a knob on the app and it will show the location. 
 We want to give every nRF52810 a unique number or code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Oct 2021 12:51:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81092/how-to-create-unique-reverence-code-to-connect-to-app" /><item><title>RE: How to create unique reverence code to connect to app</title><link>https://devzone.nordicsemi.com/thread/335974?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 12:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d5dbbb3-428b-4ab9-8e06-7e795b9e765a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I believe what you are looking for is something called bonding.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is typically what is used with personal Bluetooth devices.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So all your devices will have the same UUID. If the device never connected to a phone, it advertises, and anyone can connect. The first time it connects, the devices pair (enables encryption) and bond (stores the encryption keys for later use). That way, the next time the device is turned on, it will use something called directed advertising, indicating that it will only connect to already known devices that are previously bonded.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what SDK you use (Legacy SDK or NCS), and the pairing/bonding procedure is done a bit differently depending on the SDK. Look into if you can figure out how to enable bonding, or if you can find an example/sample that already does this by default.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>