<?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>I want to send a information through BLE. I can handle the uart example but want to use custom service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37091/i-want-to-send-a-information-through-ble-i-can-handle-the-uart-example-but-want-to-use-custom-service</link><description>I&amp;#39;ve used PCA10040 sdk15.0 example ble_peripheral ble_app_uart 
 
 I can handle it through terminal. 
 
 If I insert strings through terminal, App can receive. 
 
 But, I want to send a message directly PCA10040 to App. 
 
 for example, temperature or</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Aug 2018 07:29:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37091/i-want-to-send-a-information-through-ble-i-can-handle-the-uart-example-but-want-to-use-custom-service" /><item><title>RE: I want to send a information through BLE. I can handle the uart example but want to use custom service</title><link>https://devzone.nordicsemi.com/thread/142521?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 07:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19116fcf-df04-41be-a1ea-96c7baad3116</guid><dc:creator>Nor_Kim</dc:creator><description>&lt;p&gt;Thank you, I&amp;#39;ll try to do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send a information through BLE. I can handle the uart example but want to use custom service</title><link>https://devzone.nordicsemi.com/thread/142519?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 07:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66ae7f78-7684-478d-989e-ea007b1a92e2</guid><dc:creator>awneil</dc:creator><description>[quote userid="72963" url="~/f/nordic-q-a/37091/i-want-to-send-a-information-through-ble-i-can-handle-the-uart-example-but-want-to-use-custom-service/142514"]Not through the terminal[/quote]
&lt;p&gt;I said &lt;em&gt;&lt;strong&gt;look at&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;the&amp;nbsp;&lt;span&gt;Nordic UART example code. See how the received message from the UART (ie, from you terminal) gets sent to the NUS API. Then you &lt;em&gt;&lt;strong&gt;do the same&lt;/strong&gt; &lt;/em&gt;with your &amp;quot;custom&amp;quot; data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That is, instead of the data arriving via the UART, you supply it direct to the NUS API.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You just use the&amp;nbsp;UART example code as an &lt;strong&gt;example&lt;/strong&gt; - or &lt;em&gt;illustration&lt;/em&gt; - of &lt;em&gt;&lt;strong&gt;how&lt;/strong&gt; &lt;/em&gt;to do that!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send a information through BLE. I can handle the uart example but want to use custom service</title><link>https://devzone.nordicsemi.com/thread/142514?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 07:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2062d36a-e785-4202-af1c-94fae296f5ab</guid><dc:creator>Nor_Kim</dc:creator><description>&lt;p&gt;Not through the terminal. I want to let the board acts like this.&lt;br /&gt;&lt;a href="https://youtu.be/F_vTbD2FxDg"&gt;https://youtu.be/F_vTbD2FxDg&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send a information through BLE. I can handle the uart example but want to use custom service</title><link>https://devzone.nordicsemi.com/thread/142512?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 07:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a234e7-da91-4ee3-91cd-c8c31037be28</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;Assuming that you don&amp;#39;t want to expand the UART example with a defined serial protocol e.g. string message &amp;quot;LED 1 ON&amp;quot;, and the handling that goes with it then I would suggest that you look closely at the blinky example and adapt the button service to your needs. The button service supports notification events whilst the LED state can be polled by the app. (read) as well as written to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send a information through BLE. I can handle the uart example but want to use custom service</title><link>https://devzone.nordicsemi.com/thread/142507?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 07:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e95a9e5-bdc3-46d3-8a30-a09e81d75f40</guid><dc:creator>awneil</dc:creator><description>[quote userid="72963" url="~/f/nordic-q-a/37091/i-want-to-send-a-information-through-ble-i-can-handle-the-uart-example-but-want-to-use-custom-service"] I want to send a message directly PCA10040 to App.[/quote]
&lt;p&gt;Not clear what you mean - the&amp;nbsp; Nordic UART example does exactly that!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Look at&amp;nbsp;&lt;span&gt;t&lt;/span&gt;&lt;span&gt;he&amp;nbsp; Nordic UART example code. See how the received message from the UART (ie, from you terminal) gets sent to the NUS API. Do the same with your &amp;quot;custom&amp;quot; data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;Nordic UART Service - just like a real UART - neither knows nor cares where the data came from, or what it represents.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>