<?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 do I calculate a characteristic value in real-time ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32808/how-do-i-calculate-a-characteristic-value-in-real-time</link><description>When my mobile phone reads my characteristic, I would like the characteristic to be calculated at the same time, and not before. i.e. like a video game that does not render the world until the camera looks at it. Is that possible? How do I implement it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Mar 2018 20:36:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32808/how-do-i-calculate-a-characteristic-value-in-real-time" /><item><title>RE: How do I calculate a characteristic value in real-time ?</title><link>https://devzone.nordicsemi.com/thread/126173?ContentTypeID=1</link><pubDate>Tue, 27 Mar 2018 20:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d469ca-fd39-40c5-aa9b-a49476d69a24</guid><dc:creator>pabigot</dc:creator><description>&lt;p&gt;Set rd_auth in the characteristic value ble_gatts_attr_md_t referenced by ble_gatts_attr_t::p_attr_md.&amp;nbsp; When a read request is received the soft device will generate a&amp;nbsp;BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST event; prior to (or as a side effect of) invoking sd_ble_gatts_rw_authorize_reply() in the handler you can update the value.&amp;nbsp; (edited to correct types).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>