<?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>How to send data continuously with NUS?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92506/how-to-send-data-continuously-with-nus</link><description>Dear Nordic fellows, 
 I have a nRF52832 and I want to use Nordic UART Service to send data in peripheral mode. What is the proper way to use this service? . I&amp;#39;m using nRF5_SDK17.1.0 
 The ble_app_uart example performs a do while loop with condition err_code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Oct 2022 13:33:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92506/how-to-send-data-continuously-with-nus" /><item><title>RE: How to send data continuously with NUS?</title><link>https://devzone.nordicsemi.com/thread/389011?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 13:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c24f2b8-e448-42a9-9d62-6999e2d3729a</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello Fernando,&lt;/p&gt;
[quote user=""]What I&amp;#39;m trying to do is call the ble_nus_data_send() function and if I get an &lt;span style="color:rgba(0, 0, 128, 1);"&gt;NRF_ERROR_RESOURCES&lt;/span&gt; error, I save the data_array in a FIFO buffer.&lt;br /&gt;When the &lt;span style="color:rgba(0, 0, 128, 1);"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/span&gt; event is received, I retrieve the data from the FIFO and call the ble_nus_data_send() function again.[/quote]
&lt;p&gt;I believe this direction is completely fine. Are you having some trouble with it?&lt;/p&gt;
&lt;p&gt;I also don&amp;#39;t see any immediate problem with your initial approach and code. What is wrong with that one?&lt;/p&gt;
&lt;p&gt;My hands are a little full right now, but if there is a chance I&amp;nbsp;will also&amp;nbsp;try to cook up an experiment with the code you provided to see what is wrong.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>