<?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>sd_ble_gatts_rw_authorize_reply returns error (s132)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19447/sd_ble_gatts_rw_authorize_reply-returns-error-s132</link><description>Hi, 
 I&amp;#39;m trespassing some code of nRF51 to nRF52 (s132, SDK 12.2.0) and I get an error when I try to call sd_ble_gatts_rw_authorize_reply. This is the code 
 case BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST:
 if ( p_ble_evt-&amp;gt;evt.gatts_evt.params.authorize_request</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Feb 2017 11:44:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19447/sd_ble_gatts_rw_authorize_reply-returns-error-s132" /><item><title>RE: sd_ble_gatts_rw_authorize_reply returns error (s132)</title><link>https://devzone.nordicsemi.com/thread/75545?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 11:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a382f0-f12c-4fea-9171-2b286377a1ed</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great that it works now. If I answered your question maybe you can accept my answer by clicking the grey circle next to it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gatts_rw_authorize_reply returns error (s132)</title><link>https://devzone.nordicsemi.com/thread/75544?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 11:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1ec8893-bb15-44f8-b680-aad08f7ba276</guid><dc:creator>abosch</dc:creator><description>&lt;p&gt;The SDK 12 introduces some new flags to be set on &amp;#39;ble_gatts_rw_authorize_reply_params_t&amp;#39; parameter and I forgot to set them. Now it works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gatts_rw_authorize_reply returns error (s132)</title><link>https://devzone.nordicsemi.com/thread/75543?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 11:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80fcea7b-43b2-4c9f-97b8-6c6778678204</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why do you think the problem is the &amp;quot;BLE_GATT_STATUS_SUCCESS&amp;quot; status? And what do you mean by that? If you look inside the ble_gatts_rw_authorize_reply_params_t struct, you have write, which is a ble_gatts_authorize_params_t struct. Inside you have a update field, which has to be set for authorized write operations:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;/**&amp;lt; If set, data supplied in p_data will be used to update the attribute value. Please note that for
@ref BLE_GATTS_AUTHORIZE_TYPE_WRITE operations this bit must always be set, as the data to be
written needs to be stored and later provided by the application. */&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And you need to set the other fields in this struct as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>