<?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>Read the write data in nrf connect app after immediate power ON</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62352/read-the-write-data-in-nrf-connect-app-after-immediate-power-on</link><description>Hello 
 I&amp;#39;m using NRF connect the app to perform read and write on nrf52840 board SDK ver of 15.0.0. 
 I can perform the write and read operations using nrf connect app, and that write data is stored in flash. 
 My problem is, I will write the data first</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jun 2020 09:46:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62352/read-the-write-data-in-nrf-connect-app-after-immediate-power-on" /><item><title>RE: Read the write data in nrf connect app after immediate power ON</title><link>https://devzone.nordicsemi.com/thread/254420?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 09:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ceed873-b3a6-4ef7-97d3-8b3f23575dc3</guid><dc:creator>manoj97</dc:creator><description>&lt;p&gt;Thank you Kenneth it worked!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the write data in nrf connect app after immediate power ON</title><link>https://devzone.nordicsemi.com/thread/254229?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 11:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:513488b7-6ed7-4038-9722-cfac88695b50</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;When you init the gatt services and characteristics, you can typically use .p_init_value to set the start value.&lt;/p&gt;
&lt;p&gt;For instance you can find in ble_srv_common.c that the&amp;nbsp;characteristic_add()-api check .p_init_value before calling&amp;nbsp;sd_ble_gatts_characteristic_add().&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    if (p_char_props-&amp;gt;p_init_value != NULL)
    {
        attr_char_value.init_len  = p_char_props-&amp;gt;init_len;
        attr_char_value.p_value   = p_char_props-&amp;gt;p_init_value;
    }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>