<?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>updating data between application layer and stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14378/updating-data-between-application-layer-and-stack</link><description>Hello,
I have some characteristics on my device that are containing some configuration data.
Every single variable is a global variable.
The values can also be changed manually by a keypad on the device.
Is a sd_ble_gatts_value_set() call after every</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jun 2016 12:53:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14378/updating-data-between-application-layer-and-stack" /><item><title>RE: updating data between application layer and stack</title><link>https://devzone.nordicsemi.com/thread/54890?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2016 12:53:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e0de5cf-e5e8-44f8-aa98-cc0c5766f753</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Yes, you must use this function to update the value of the characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: updating data between application layer and stack</title><link>https://devzone.nordicsemi.com/thread/54889?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2016 11:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:832a2f0a-68f1-441d-bac7-a967b0eb41e7</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hello Anders, thanks for you answer, yes thats clear, I only want that the new value is available for the connected peer if a read is done. I notification isn`t needed in these cases. But I have to &amp;quot;manually&amp;quot; update the new values to the softdevice right?
My question was just if there is maybe another, more efficient way to update these values. For example the softdevice look automatically for changes or something like this.
Regards,
BTprogrammer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: updating data between application layer and stack</title><link>https://devzone.nordicsemi.com/thread/54888?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2016 11:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793aa570-d129-4e75-b95c-53e4f51f7078</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;The sd_ble_gatts_value_set function will set a new value in the local memory of your device. It will not send this value to a client connected to it. If the client does a read on that characteristic, he will get this new value.&lt;/p&gt;
&lt;p&gt;If you do a notification with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.0.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html#ga313fe43c2e93267da668572e885945db"&gt;sd_ble_gatts_hvx&lt;/a&gt;, it will update the local value, as well as send it to the client.&lt;/p&gt;
&lt;p&gt;If you want to learn more about BLE and our SDK / softdevice, please see the &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;tutorial&lt;/a&gt; section and &lt;a href="https://www.youtube.com/watch?v=BZwOrQ6zkzE&amp;amp;index=12&amp;amp;list=PLx_tBuQ_KSqEEWe_L8VlOS1wfuYdNRAkx"&gt;youtube channel&lt;/a&gt;. You can also read guides on &lt;a href="https://learn.adafruit.com/introduction-to-bluetooth-low-energy/introduction"&gt;other sites&lt;/a&gt; to gain more understanding as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>