<?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 parameter is not updated if bluetooth is disconnected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8950/read-parameter-is-not-updated-if-bluetooth-is-disconnected</link><description>we are making a pedometer. when you are connected, you get notification for every step you make (just an integer) 
 you just did 50 steps. you can see it in the app. now you disconnect. you continue to do some steps, maybe 15 steps. then you reconnect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Aug 2015 16:07:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8950/read-parameter-is-not-updated-if-bluetooth-is-disconnected" /><item><title>RE: read parameter is not updated if bluetooth is disconnected</title><link>https://devzone.nordicsemi.com/thread/32965?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 16:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b70b543-f3d9-4532-84b6-62bc60a2a104</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What you need is to call the sd_ble_gatts_value_set() function every time you do a step, even though you are not connected. The sd_ble_gatts_value_set() updates the value in the database which is read when you perform a read from the central device. You can see an example of this in e.g. ble_app_hrs example in nRF51 SDK 9.0.0. The ble_bas_battery_level_update() function is called every time a new battery value is to be sent, and the database value is also updated with call to sd_ble_gatts_value_set&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>