<?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>Zephyr - BLE: How to send response after characteristic write operation?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81477/zephyr---ble-how-to-send-response-after-characteristic-write-operation</link><description>Hello, 
 I&amp;#39;m using Zephyr SDK. I have got BLE characteristic (my device is a peripheral) with following settings: 
 
 
 After successful write operation, I want to reply with some value to the central. Is it possible in the SDK and BLE in general? To</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Nov 2021 16:16:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81477/zephyr---ble-how-to-send-response-after-characteristic-write-operation" /><item><title>RE: Zephyr - BLE: How to send response after characteristic write operation?</title><link>https://devzone.nordicsemi.com/thread/337994?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 16:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:defe3fff-50b5-4986-8975-7ee9a41eba6a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There is no feature in BLE where a write is to peer characteristic will automatically trigger a response with value.&lt;/p&gt;
&lt;p&gt;I think what you have is pretty good solution which &lt;a href="https://stackoverflow.com/questions/58243764/bluetooth-le-characteristic-write-response"&gt;many &lt;/a&gt;have used already.&amp;nbsp;&lt;/p&gt;
[quote user=""]I wonder what is the difference between BT_GATT_CHRC_WRITE_WITHOUT_RESP and BT_GATT_CHRC_WRITE, is it somehow related to response on lower BLE layer and is not really related to the application?[/quote]
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.3.0%2Fgroup___b_l_e___g_a_t_t_c___v_a_l_u_e___w_r_i_t_e___m_s_c.html"&gt;BT_GATT_CHRC_WRITE &lt;/a&gt;gives response from the GATT layer to the app the write has been successful. No value can be exchanged from peer to your device in this response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.3.0%2Fgroup___b_l_e___g_a_t_t_c___v_a_l_u_e___w_r_i_t_e___w_i_t_h_o_u_t___r_e_s_p___m_s_c.html"&gt;BT_GATT_CHRC_WRITE_WITHOUT_RESP&amp;nbsp;&lt;/a&gt;&amp;nbsp;wont give any response even from the own GATT from the stack of your device.&lt;/p&gt;
&lt;p&gt;Eventhough the message sequence charts are from different SDK the underlying logic is the same, just different API in zephyr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>