<?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 retain variables data after disconnecting from the device?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34842/how-to-retain-variables-data-after-disconnecting-from-the-device</link><description>Hi, 
 I am scanning from my nRF52840 and connects to one peripheral and i have written code to get it&amp;#39;s Device information(DIS) and i stored all these information in some variables and now i need to connect another peripheral and pass Model number(previously</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 May 2018 14:13:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34842/how-to-retain-variables-data-after-disconnecting-from-the-device" /><item><title>RE: How to retain variables data after disconnecting from the device?</title><link>https://devzone.nordicsemi.com/thread/134061?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 14:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:019a41b1-4a8b-4dd0-a226-c4487617662c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The easiest may be to use a button that will disconnect the link and start advertisement again, instead of doing a hardware reset, which for sure will reset the variables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retain variables data after disconnecting from the device?</title><link>https://devzone.nordicsemi.com/thread/133929?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 06:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae6580ce-7ecb-444f-82ed-58bb2e605bab</guid><dc:creator>sankeerthan</dc:creator><description>&lt;p&gt;Yes Kenneth,i am pressing reset button on my nRF52840 board because i need to connect other peripheral(without reset i cannot scan again and connect to other device).&lt;/p&gt;
&lt;p&gt;Here my requirement is to&amp;nbsp; connect multiple peripherals which has different device names and collect data(characteristics values) of one peripheral&amp;nbsp;store in&amp;nbsp; central and pass these data to another peripheral.&lt;/p&gt;
&lt;p&gt;Is there any possibility to store global data even after reset?&lt;/p&gt;
&lt;p&gt;How multiperipheral_central example work with different device names?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retain variables data after disconnecting from the device?</title><link>https://devzone.nordicsemi.com/thread/133845?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 13:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6c0347-8a59-4ce7-b4dd-b306fa40d883</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Data in a variable can&amp;#39;t be &amp;quot;lost&amp;quot;, you are either overwriting the data somewhere in your application, or you are going to system OFF (for instance calling sd_power_system_off()), or you have an assert. If you have an assert then the application typically will do a soft reset (for instance calling NVIC_SystemReset()) in the assert callback handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>