<?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 can I recieve nRF51822 Rx data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5060/how-can-i-recieve-nrf51822-rx-data</link><description>I find this function.
tx 
 void ble_send(uint8_t * data, uint8_t length)
{
ble_nus_send_string(&amp;amp;m_nus, data,length); 
 } 
 ble_send(&amp;amp;data_array[0],10); 
 but I don&amp;#39;t find Rx Function 
 Rx Function defined ble_nus.c 
 I don&amp;#39;t know how do I use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Mar 2015 03:29:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5060/how-can-i-recieve-nrf51822-rx-data" /><item><title>RE: How can I recieve nRF51822 Rx data?</title><link>https://devzone.nordicsemi.com/thread/17801?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2015 03:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f640aa-5009-4a2f-a4fa-cbc01993a98c</guid><dc:creator>charlie</dc:creator><description>&lt;p&gt;what&amp;#39;s the usage of * p_nus?
thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I recieve nRF51822 Rx data?</title><link>https://devzone.nordicsemi.com/thread/17800?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2015 03:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e335b786-be21-4f7e-8473-60408643cc48</guid><dc:creator>GunMin</dc:creator><description>&lt;p&gt;That was very helpful, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I recieve nRF51822 Rx data?</title><link>https://devzone.nordicsemi.com/thread/17799?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2015 16:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6e346fa-45b5-4df5-8d5c-f44072d3a115</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;From what I can see, you are using the experimental_ble_app_uart example?&lt;/p&gt;
&lt;p&gt;The data will be received in a BLE event. Data written to the RX characteristic will be handled in ble_nus_on_ble_evt -&amp;gt; &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.1.0/s110/html/a00887.html"&gt;BLE_GATTS_EVT_WRITE&lt;/a&gt; -&amp;gt; on_write(..) -&amp;gt; p_nus-&amp;gt;data_handler.&lt;/p&gt;
&lt;p&gt;p_nus-&amp;gt;data_handler is set in services_init(..): &lt;code&gt;nus_init.data_handler = nus_data_handler;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;nus_data_handler(..) will transfer the received data over UART (to a terminal):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief    Function for handling the data from the Nordic UART Service.
 *
 * @details  This function will process the data received from the Nordic UART BLE Service and send
 *           it to the UART module.
 */
/**@snippet [Handling the data received over BLE] */
void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
    for (int i = 0; i &amp;lt; length; i++)
    {
        simple_uart_put(p_data[i]);
    }
    simple_uart_put(&amp;#39;\n&amp;#39;);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>