<?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>Multiperipheral Queued Writes - a buffer for each connection means a lot of space required. Can I deny simultaneous writes?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37342/multiperipheral-queued-writes---a-buffer-for-each-connection-means-a-lot-of-space-required-can-i-deny-simultaneous-writes</link><description>I&amp;#39;m currently adding a large characteristic (5.3 times bigger than my max MTU) to my device that supports multiple peripheral connections. This characteristic is used to set up/change a stored config on the device and so, will be written to seldomly but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Aug 2018 14:10:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37342/multiperipheral-queued-writes---a-buffer-for-each-connection-means-a-lot-of-space-required-can-i-deny-simultaneous-writes" /><item><title>RE: Multiperipheral Queued Writes - a buffer for each connection means a lot of space required. Can I deny simultaneous writes?</title><link>https://devzone.nordicsemi.com/thread/144570?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 14:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a008886-04e8-4108-8daa-acf4f75c9a0f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Goldwake,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do not want to allocate more than one buffer at the time , then you could keep track of the number of&amp;nbsp;BLE_EVT_USER_MEM_REQUEST and&amp;nbsp;BLE_EVT_USER_MEM_RELEASE events you receive. So when you receive the first BLE_EVT_USER_MEM_REQUEST, then you do not reply with&amp;nbsp;sd_ble_user_mem_reply() for subsequent&amp;nbsp;BLE_EVT_USER_MEM_REQUEST events until you receive&amp;nbsp;BLE_EVT_USER_MEM_RELEASE corresponding to the first BLE_EVT_USER_MEM_REQUEST.&lt;/p&gt;
&lt;p&gt;There is no such thing as a long notification, the size of an attribute value(i.e the characteristic value) that is notified is limited to&amp;nbsp;0 to (ATT_MTU-3).&amp;nbsp;If the attribute value is longer than (ATT_MTU-3) octets, then only the first(ATT_MTU-3) octets of this attributes value can be sent in a notification, see&amp;nbsp;BLUETOOTH SPECIFICATION Version 5.0 | Vol 3, Part F, Section 3.4.7.1&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>