<?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 can I get write event?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20856/how-can-i-get-write-event</link><description>Hi. I&amp;#39;m using nRF52832, SDK13, S132v4.0.2. 
 I&amp;#39;m making peripheral device using nRF52832.
And I can see it gets BLE_GATTS_EVT_WRITE event as below when central sends WRITE event. 
 static void on_ble_evt(ble_evt_t * p_ble_evt)
{
......
switch (p_ble_evt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Mar 2017 00:59:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20856/how-can-i-get-write-event" /><item><title>RE: how can I get write event?</title><link>https://devzone.nordicsemi.com/thread/81445?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 00:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fb25071-b4cd-4b2b-9749-6a1b9c75c762</guid><dc:creator>roger.k</dc:creator><description>&lt;p&gt;Thanks a lot. After I added code as below, it works well.
char_md.char_props.write_wo_resp= 1;&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I get write event?</title><link>https://devzone.nordicsemi.com/thread/81444?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 12:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9935df5-c312-4671-b89d-7b77dd7b8f53</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Roger,&lt;/p&gt;
&lt;p&gt;You should have BLE_GATTS_EVT_WRITE  when the central do a write command (write without response). As you can find in the paremeter for the event inside ble_gatts_evt_write_t we have an .op , meaning the type of operation.
And in BLE_GATTS_OPS list you can find write request and write command there.&lt;/p&gt;
&lt;p&gt;We need to look at how you define your characteristic, if you allow write command or not ? When you do write command do you see the actual value was updated ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>