<?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>about feature value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40643/about-feature-value</link><description>1. As a slave device, how do I update the content of a feature value when I set a feature value to the property of read? 2. The local setting can set the data of the feature value to be greater than 20 bytes. When the peer device reads a certain feature</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Nov 2018 14:09:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40643/about-feature-value" /><item><title>RE: about feature value</title><link>https://devzone.nordicsemi.com/thread/157995?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 14:09:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a33846-b45c-4798-b6c9-ee7ccdfeb158</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not sure if I understand the question, but you may take a look at the&amp;nbsp;blinky example in the SDK:&lt;/p&gt;
&lt;p&gt;\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\&lt;br /&gt;(&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_blinky.html?cp=4_0_0_4_1_2_3"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_blinky.html?cp=4_0_0_4_1_2_3)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can find in&amp;nbsp;ble_lbs_init() that the read propery is set in:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // Add Button characteristic.
    memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));
    add_char_params.uuid              = LBS_UUID_BUTTON_CHAR;
    add_char_params.uuid_type         = p_lbs-&amp;gt;uuid_type;
    add_char_params.init_len          = sizeof(uint8_t);
    add_char_params.max_len           = sizeof(uint8_t);
    add_char_params.char_props.read   = 1;  // Here read property is set.
    add_char_params.char_props.notify = 1;

    add_char_params.read_access       = SEC_OPEN;
    add_char_params.cccd_write_access = SEC_OPEN;

    err_code = characteristic_add(p_lbs-&amp;gt;service_handle,
                                  &amp;amp;add_char_params,
                                  &amp;amp;p_lbs-&amp;gt;button_char_handles);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The value is updated in&amp;nbsp;ble_lbs_on_button_change() by calling&amp;nbsp;sd_ble_gatts_hvx(), this will update the value and also send a notification if enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>