<?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>Question about read operation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/159/question-about-read-operation</link><description>Hello!
I want to ask about read operation on nrf51822.
In your examples, as I understand, BT stack handles Read Request automatically and then sends Read Response. The value that I try to read is Attribute in Service Table (for example only read permission</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jan 2019 12:58:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/159/question-about-read-operation" /><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/165738?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 12:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f81bdf3-3575-4688-a824-dcc1771f3ba8</guid><dc:creator>ilkobg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there another way to update the data for a read-only characteristic, without using read authorization?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example, is it possible when&amp;nbsp;giving&amp;nbsp;the characteristic initial values, to provide a pointer to a strucure which holds the data. You will update this structure and the data will be up to date when the characteristic is read.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/893?ContentTypeID=1</link><pubDate>Wed, 28 May 2014 12:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c783810f-8919-484d-88d4-8555da95cbb1</guid><dc:creator>Joe Merten</dc:creator><description>&lt;p&gt;The function to be called is named sd_ble_gatts_rw_authorize_reply()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/892?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 14:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1e6c58-d5c6-4b1b-9a06-4d7b7352dd74</guid><dc:creator>kchuva</dc:creator><description>&lt;p&gt;Dear Ole Morten, why reason to this implementation of SoftDevice? If I want to Read value which changes in unknown time I can read it only With Authorization. So, I will spend more time to read one characteristic.
Why Read Without Authorization Event don&amp;#39;t pass to Application layer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/891?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2013 12:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a81bc26-2578-4bfc-8521-e6df215732bc</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Done. Didn&amp;#39;t notice it was posted with an anonymous user. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/890?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2013 12:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f34f6230-a35d-4680-af0a-358f60231a05</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;No problem. Feel free to accept the answer, so that it&amp;#39;s easier to find for others. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/889?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2013 12:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63246eb0-cbdf-413f-a2fa-c70a10e41da4</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;ok, thanks for response!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/888?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2013 12:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b98e2903-12cd-404e-8dcf-628ba60a8e77</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Once you have enabled authorization for a characteristic, all reads will be authorized, so this shouldn&amp;#39;t be a problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/894?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2013 08:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34904529-29e1-4e4c-908a-c2800b916dd8</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for answer.
I saw &amp;#39;Message Sequence Chart&amp;#39; for GATTS Read Request with Authorization.&lt;/p&gt;
&lt;p&gt;As I understand I have no way of knowing about Read request without Authorization was processed?&lt;/p&gt;
&lt;p&gt;Best regards,
Artem Zemlyanukhin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about read operation</title><link>https://devzone.nordicsemi.com/thread/887?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2013 21:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf90a3e3-fb83-4dca-8ac5-d49dc84b279c</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Yes, you can.&lt;/p&gt;
&lt;p&gt;You can use the authorization mechanism on any particular attribute to achieve this. Set the read authorization bit (rd_auth in ble_gatts_attr_md_t) when adding your characteristic to the attribute table and you will get a &lt;code&gt;BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST&lt;/code&gt; event every time a remote peer tries to read that characteristic, and you can reply by calling the sd_ble_rw_authorize_reply() with the value you want.&lt;/p&gt;
&lt;p&gt;Refer to the SoftDevice documentation for further details.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>