<?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>Option to disable Peer Manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67920/option-to-disable-peer-manager</link><description>Hello, 
 We are making device using NRF52832 and SDK 16.0 . 
 In our solution we required to pair and bond , between phone and device and hence we are using the peer manager in device firmware. 
 How ever in the same solution there are instant when device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Nov 2020 10:36:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67920/option-to-disable-peer-manager" /><item><title>RE: Option to disable Peer Manager</title><link>https://devzone.nordicsemi.com/thread/278236?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 10:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17164bc4-0ad4-4b69-85e4-87c8ec58b567</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi khodidas,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The peer manager does not support uninitializing. A simple hack could be to add a variable called e.g. m_paused in peer_manager.c, and a function that sets it to true ore false. Then you could check that in&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;b&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;le_evt_handler() in peer_manager.c, and return immediately if false. If you also make sure to not make any peer manager calls from your application while paused, this should do the trick. (I have not tested this though, so there may be some pitfalls I am not seeing at the moment.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Einar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>