<?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>NUS example, authorize request, sd_ble_gatts_hvx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12689/nus-example-authorize-request-sd_ble_gatts_hvx</link><description>Hi together, 
 I&amp;#39;m using the NUS example (NRF52832) for client and peripheral, which is running quite well. My goal is to inform the peripheral application when notification was enabled on central side. Thus I added the line cccd_md.wr_auth = 1; in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Mar 2016 07:59:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12689/nus-example-authorize-request-sd_ble_gatts_hvx" /><item><title>RE: NUS example, authorize request, sd_ble_gatts_hvx</title><link>https://devzone.nordicsemi.com/thread/48194?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2016 07:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3efd17ca-2cf6-4865-81df-df9f9abc7e09</guid><dc:creator>Hauser</dc:creator><description>&lt;p&gt;&lt;strong&gt;Thank you!&lt;/strong&gt; You are right, catching the &lt;code&gt;BLE_GATTS_EVT_WRITE&lt;/code&gt; event does the job without any authorization workaround.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, authorize request, sd_ble_gatts_hvx</title><link>https://devzone.nordicsemi.com/thread/48193?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 12:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa972786-088c-49d5-bdf9-ce8a8ef97d81</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hauser,&lt;/p&gt;
&lt;p&gt;You received 0x3401 = BLE_ERROR_GATTS_SYS_ATTR_MISSING because you haven&amp;#39;t called sd_ble_gatts_sys_attr_set() to init the system attribute. Have you made sure you called that in BLE_GATTS_EVT_SYS_ATTR_MISSING even in on_ble_evt() ?&lt;/p&gt;
&lt;p&gt;Also I don&amp;#39;t really understand why do you need write with authorize request for this case. You can simply leave it as normal write, and catch the BLE_GATTS_EVT_WRITE even, and check for the handle ID of the CCCD characteristic. No need for authorized write here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>