<?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>Gatt message for multiple notifications on multiple characteristics</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9736/gatt-message-for-multiple-notifications-on-multiple-characteristics</link><description>Hello! 
 I would like to know if it is possible to send an unique Gatt message that contains notification enable for multiple characteristics. 
 For example, 
 buf[0] = BLE_GATT_HVX_NOTIFICATION;
buf[1] = 0; 
write_params.write_op = BLE_GATT_OP_WRITE_REQ;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Oct 2015 13:04:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9736/gatt-message-for-multiple-notifications-on-multiple-characteristics" /><item><title>RE: Gatt message for multiple notifications on multiple characteristics</title><link>https://devzone.nordicsemi.com/thread/36063?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2015 13:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82efb47f-8780-4195-bea8-360c721046e9</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The way you state your question, the answer is no - this is not possible. Each individual write can only address a single handle at a time, which means it is impossible to do this in a single request.&lt;/p&gt;
&lt;p&gt;However, if you are not after saving time, but to just make sure you are enabling/disabling all notifications at the same time, you can use long writes (prepare writes). This sends individual prepare write requests to the peer, and instantaneously writes all of them once you send the execute write request.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s110.api.v8.0.0%2Fgroup___b_l_e___g_a_t_t_c___v_a_l_u_e___r_e_l_i_a_b_l_e___w_r_i_t_e___m_s_c.html&amp;amp;cp=2_7_0_0_0_2_2_0_9"&gt;MSC example&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s110.api.v8.0.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga90298b8dcd8bbe7bbe69d362d1133378"&gt;Write API documentation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>