<?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 send the message data unit?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16875/how-can-i-send-the-message-data-unit</link><description>Hello, I&amp;#39;m south korea student in dongguk univ. 
 and i want to know how can i send the message on my board(not use the terminal ). 
 I use the keil uvision4.0, nrf51822, s110. 
 and i found the function &amp;#39;ble_nus_send_string(&amp;amp;m_nus,(uint8_t *)string</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Oct 2016 13:24:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16875/how-can-i-send-the-message-data-unit" /><item><title>RE: How can i send the message data unit?</title><link>https://devzone.nordicsemi.com/thread/64648?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 13:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e68b24b-08a1-405b-ae47-d43e2960f7e1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_2_2_18"&gt;Nordic UART service (NUS) example&lt;/a&gt; demonstrates how to emulate UART over BLE and sending data. &lt;code&gt;ble_nus_send_string()&lt;/code&gt; is not limited to sending data of type uint8_t, it takes a uint8_t pointer as argument. This pointer type can be looked at like a char array. You can send any data type you want over NUS by converting it to char arrays.&lt;/p&gt;
&lt;p&gt;If you want to send data of type uint32_t, you can convert it to char array using &lt;a href="http://www.cplusplus.com/reference/cstdio/sprintf/"&gt;sprintf&lt;/a&gt;, or some similar function.
Data can also be sent using other defined or custom BLE services. The best method depends on what data you need to send.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>