<?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>Sending data (BLE) to another board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69360/sending-data-ble-to-another-board</link><description>I want to send data of different sizes from one board to another, using nRF52840. I have tried following the UART example, by using one board as Central and another Peripheral, but only the default example works, which is whatever I type shows up on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Dec 2020 13:03:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69360/sending-data-ble-to-another-board" /><item><title>RE: Sending data (BLE) to another board</title><link>https://devzone.nordicsemi.com/thread/284532?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 13:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4223e11b-1686-42a3-9262-36d438921ce8</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I tried manually fillind data_array using for loop within the uart event handler, but nothing again. I&amp;#39;m not sure what I&amp;#39;m doing wrong.[/quote]
&lt;p&gt;The UART event handler will only be called when an UART event is generated.&lt;br /&gt;Instead, you could try to use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__ble__nus.html&amp;amp;anchor=ga4189d97e88b018e48847c3ea26c4b05d"&gt;the ble_nus_data_send function&lt;/a&gt;&amp;nbsp;from somewhere else in the code, to see if you are not able to send the data this way.&lt;br /&gt;If you do not intend to use the UART in your application, you may remove it entirely from the application, and instead get the data you wish to transmit elsewhere.&lt;/p&gt;
[quote user=""]But now I want to send actual data of different sizes. I have tried making an array with different values that are to be sent, but no output.[/quote]
&lt;p&gt;Do you know the format of this data? If you could be specific about what data you are looking to transfer then I might be able to help you more.&lt;br /&gt;&lt;br /&gt;Looking forward to hearing if you are able to get it to work as intended by calling the ble_nus_data_send function from somewhere else than the UART event handler! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>