<?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>Buffering notifications between connections</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65118/buffering-notifications-between-connections</link><description>I&amp;#39;m trying to find an example of how to properly buffer sensor readings between connections, and then transmitting the buffer on connection. 
 Is this just done via the user queue? How can I check the allowable size of that queue? Or should I only queue</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Aug 2020 04:57:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65118/buffering-notifications-between-connections" /><item><title>RE: Buffering notifications between connections</title><link>https://devzone.nordicsemi.com/thread/266610?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 04:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb0d36b6-90cf-4d59-b6a5-0c40201741e8</guid><dc:creator>Anton Maes</dc:creator><description>&lt;p&gt;Thank you, that&amp;#39;s quite helpful&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buffering notifications between connections</title><link>https://devzone.nordicsemi.com/thread/266187?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 10:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f81e60-6403-4af9-828e-47d74ba3e048</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not sure what user queue you are referring to. But you can only successfully call sd_ble_gatts_hvx while in a connection and when notification are enabled. Since it seems like you want to save data while disconnected and send it once a connection is established you should look into setting up a buffer in the application for this e.g. by using our &lt;span&gt;&lt;a title="Ring buffer library" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_ringbuf.html?cp=7_1_3_39"&gt;Ring buffer library &lt;/a&gt;&lt;/span&gt;&lt;span&gt;and maybe also look at the queue module.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>