<?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>sdk 17 pca10056 s140nrf52840 pairing bonding and encryption of data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81684/sdk-17-pca10056-s140nrf52840-pairing-bonding-and-encryption-of-data</link><description>Hello, 
 
 I am currently developing an application using as template the ble_app_uart. 
 My application works fine so far but we would like to add as a feature the pairing, bonding and encryption of data. 
 As i can understand i will need to implement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Nov 2021 13:49:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81684/sdk-17-pca10056-s140nrf52840-pairing-bonding-and-encryption-of-data" /><item><title>RE: sdk 17 pca10056 s140nrf52840 pairing bonding and encryption of data</title><link>https://devzone.nordicsemi.com/thread/338815?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 13:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b81774-1cd4-4662-b8fd-1592fda6f4d3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_fds.html"&gt;FDS library&lt;/a&gt;Hi,&lt;/p&gt;
&lt;p&gt;Most of the BLE peripheral examples use the peer manager, though ble_app_uart. There are not many code changes needed to use the peer manager, and the ble_app_hrs example which you have found is a good one to look at. What is a bit problematic is that due to the organization of the SDK there are a lot of files, include paths and sdk_config.h configurations that are needed. Therefor, it might save you time to take ble_app_hrs example as starting point, and port over your changes from your ble_app_uart based application.&lt;/p&gt;
&lt;p&gt;Regarding documentation, the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_peer_manager.html"&gt;peer manager documentation&lt;/a&gt; gives you a good understanding of it. Note that the peer manger depends on the FDS library for persistent flash storage, and typically 3 pages are reserved for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>