<?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>characteristic write operation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6400/characteristic-write-operation</link><description>Hi all, 
 how can I retrieve characteristic&amp;#39;s value after write operation to this characteristic ? 
 can I use it as soon as it is modified ? 
 Thanks !</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Apr 2015 13:03:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6400/characteristic-write-operation" /><item><title>RE: characteristic write operation</title><link>https://devzone.nordicsemi.com/thread/22316?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2015 13:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3504b3f8-e995-41cf-80ad-43cd4a21eeae</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I pull the data out of a written characteristic from here: p_evt_write-&amp;gt;data[0]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: characteristic write operation</title><link>https://devzone.nordicsemi.com/thread/22315?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2015 12:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3fc193d-2937-4c2c-8143-46eb74789dca</guid><dc:creator>mohBOSS</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;the value should not be in the attr_char_value.p_value, where attr_char_value is ble_gatts_attr_t ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: characteristic write operation</title><link>https://devzone.nordicsemi.com/thread/22314?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2015 12:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c8bc768-117d-49bc-9fc6-09548f0362a3</guid><dc:creator>John</dc:creator><description>&lt;p&gt;You shouldn&amp;#39;t need a timer to check the value of a characteristic. If the characteristic is write enabled you should get a BLE_GATTS_EVT_WRITE event every time it is written to. You can then check the handle in the event to make sure it matches your characteristic and read the value out of the characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: characteristic write operation</title><link>https://devzone.nordicsemi.com/thread/22313?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2015 20:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c258e006-8569-4f37-af3f-d03e3fb59b77</guid><dc:creator>Kosidinma</dc:creator><description>&lt;p&gt;My guess would be that you can use it immediately. Perhaps you can make a new variable; then use a timer that constantly checks the value of your characteristic and each time it changes, sets your new variable to that value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>