<?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 to reply with more byte using BLE_GATTS_AUTHORIZE_TYPE_READ</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48135/how-to-reply-with-more-byte-using-ble_gatts_authorize_type_read</link><description>Hi, 
 I have tested the following solution and it doesn&amp;#39;t work if I try to load more bytes. 
 
 case BLE_EVENT_DATA_COUNT_HANDLES: 
 printf(&amp;quot;BLE_EVENT_DATA_COUNT_HANDLES\n&amp;quot;); even_count[0] = 0xFF; even_count[1] = 0xEE; //ptr = getEventCount(even_count</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2019 02:18:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48135/how-to-reply-with-more-byte-using-ble_gatts_authorize_type_read" /><item><title>RE: How to reply with more byte using BLE_GATTS_AUTHORIZE_TYPE_READ</title><link>https://devzone.nordicsemi.com/thread/191760?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 02:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35bb154b-90f1-44f8-8796-53cad4247c57</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;I have resolve the problem!&lt;/p&gt;
&lt;p&gt;What I did is under&amp;nbsp;sd_ble_gatts_characteristic_add()&lt;/p&gt;
&lt;p&gt;increase attr_char_value.max_len to the desired size!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reply with more byte using BLE_GATTS_AUTHORIZE_TYPE_READ</title><link>https://devzone.nordicsemi.com/thread/191748?ContentTypeID=1</link><pubDate>Sun, 09 Jun 2019 16:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f0d07b-0bae-470c-92bc-49936d91b691</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes. There are error return from&amp;nbsp;sd_ble_gatts_rw_authorize_reply, the error value is 7&amp;quot;NRF_ERROR_INVALID_PARAM&amp;quot;. when I put&amp;nbsp;auth_reply.params.read.len = 2(the size of even_count array is 2).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        uint8_t even_count[2];
                  switch(p_auth_req-&amp;gt;request.read.handle)
                  {
                    case  BLE_EVENT_DATA_COUNT_HANDLES:

                      printf(&amp;quot;BLE_EVENT_DATA_COUNT_HANDLES\n&amp;quot;);
                      even_count[0] = 0xFF;
                      even_count[1] = 0xEE;
                      //ptr = getEventCount(even_count);
                      //auth_reply.params.read.len = sizeof(even_count); not working when put len more than 1
                      auth_reply.params.read.len = sizeof(even_count);  
                      auth_reply.params.read.p_data = (uint8_t *)&amp;amp;even_count[0];&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reply with more byte using BLE_GATTS_AUTHORIZE_TYPE_READ</title><link>https://devzone.nordicsemi.com/thread/191307?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 10:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85abac5-08c7-420f-b5b5-63b16e6bd7de</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;&lt;span&gt;not working when put len more than 1&amp;quot;? Do you get wrong data? Do you get any error codes?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>