<?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>data transfer using timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11012/data-transfer-using-timer</link><description>HI,all,
MERRY CHRISTMAS!!!!
i have an issue when i want to try the data transfer using timer 
 i have a idea about it , but i do not know how to achieve it. 
 -my project is the nus project 
 -and i have two nrf eva board. 
 -one for client and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Dec 2015 12:07:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11012/data-transfer-using-timer" /><item><title>RE: data transfer using timer</title><link>https://devzone.nordicsemi.com/thread/41167?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2015 12:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:535487ef-a650-4309-bce1-1fba770be347</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bernerd,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any problem with your approach.&lt;/p&gt;
&lt;p&gt;What you can do is either maintain your own buffer to collect data from uart (like what we have with data_array) then wait either when it reach 300 bytes or when the timer timeout to send the data (calling ble_nus_string_send). You would need to truncate the long data into 20 bytes trunks and send them separately.&lt;/p&gt;
&lt;p&gt;The other option, and maybe better one is to configure the size of the uart characteristic to be 300 so that you don&amp;#39;t have to handle the truncating on application but let the stack does it for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>