<?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>BLE nrf52832 SDK11 characteristic update with every read operation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23671/ble-nrf52832-sdk11-characteristic-update-with-every-read-operation</link><description>I am using Nrf52832 sdk 11.I want to update the value of characteristic on every read operation from my andriod phone. I want that on every ble_gatts_evt_read: should give me new value whatever i feed through code.
How should i implement ble_gatts_read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jul 2017 11:01:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23671/ble-nrf52832-sdk11-characteristic-update-with-every-read-operation" /><item><title>RE: BLE nrf52832 SDK11 characteristic update with every read operation</title><link>https://devzone.nordicsemi.com/thread/93051?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 11:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a028743-5c25-4c1e-9302-ec617a1f85ab</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you set ble_attr_md.rd_auth = 1; for the characteristic value that you want to support authorization, you should get a BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST event every time it is read. Then you have to reply to the event with sd_ble_gatts_rw_authorize_reply().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE nrf52832 SDK11 characteristic update with every read operation</title><link>https://devzone.nordicsemi.com/thread/93050?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 10:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf5a969-8824-4c63-bb24-da068b30439b</guid><dc:creator>anuja</dc:creator><description>&lt;p&gt;Thanks peter but for this MSC which data structure should be implemented.will ble_gatss_rw_authorize_request work? so that on every read of characteristic the value should be updated.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE nrf52832 SDK11 characteristic update with every read operation</title><link>https://devzone.nordicsemi.com/thread/93049?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 10:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1823bde0-792f-4736-a939-2e019d582b47</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sounds like read request with authorization is what you are looking for, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_t_t_s___r_e_a_d___r_e_q___a_u_t_h___m_s_c.html?cp=2_3_0_1_1_2_4_3_13"&gt;this MSC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You need to enable authorization for the characteristic value. See &lt;a href="https://devzone.nordicsemi.com/question/52727/how-do-i-add-authorization-on-readwrite-on-a-services-characteristics/"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE nrf52832 SDK11 characteristic update with every read operation</title><link>https://devzone.nordicsemi.com/thread/93052?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 08:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9309ba4e-e413-4d44-8f9e-dca7cb4d7aee</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Sorry but that doesn&amp;#39;t make sense. GATT Read (not Read Request) doesn&amp;#39;t invoke any event on GATT Server side so the serve doesn&amp;#39;t know you read the value and so it hardly can determine when to change it internally. Use Read Request or Write/Notify architecture.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>