<?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>Queuing UART incoming data in nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22930/queuing-uart-incoming-data-in-nrf52</link><description>Hi, 
 I am using ble_app_uart sample code for testing. In that I want to store the incoming data into to three buffers and simultaneously sending this over BLE. i.e., consider my buffer is 100 bytes size,my incoming data is 1000 bytes. I want to store</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jun 2017 10:25:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22930/queuing-uart-incoming-data-in-nrf52" /><item><title>RE: Queuing UART incoming data in nRF52</title><link>https://devzone.nordicsemi.com/thread/90203?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 10:25:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74bee5be-62c6-4514-9826-6b26b4d5d8eb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Why do you need 3 buffers ? Why can&amp;#39;t you just have a ring buffer that simply send via BLE when it reaches 100 bytes ?
You can just have a big array 1000bytes for example, count the number of byte stored in the buffer, when it reach 100 , you start to send UART, keep counting if more bytes on UART arrive, and send again when another 100 byte reaches.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>