<?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>Display message from nrf52832 to nrfconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62048/display-message-from-nrf52832-to-nrfconnect</link><description>Hello, I am using ble_app_blinky on my BMD-300 evaluation kit (nrf52832) and I want to display a message via bluetooth on my phone with nrf connect. What function should I use in my main ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jun 2020 16:16:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62048/display-message-from-nrf52832-to-nrfconnect" /><item><title>RE: Display message from nrf52832 to nrfconnect</title><link>https://devzone.nordicsemi.com/thread/253869?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 16:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85f0e7a6-58e8-4b87-b50d-171bd823b0c0</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Just to clarify,&amp;nbsp;in BLE, you send data over Services and Characteristics.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/" rel="noopener noreferrer" target="_blank"&gt;We have tutorials that you can have a look at here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The example mentioned uses the Service &amp;quot;Nordic UART Service&amp;quot; and the two Characteristics &amp;quot;TX&amp;quot; and &amp;quot;RX&amp;quot; to transfer data.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Take a look at the function uart_event_handle() to see how it transfers data via the Nordic UART Service. The&amp;nbsp;&lt;/span&gt;&lt;span&gt;data received over UART is stored in&amp;nbsp;&lt;/span&gt;&lt;code&gt;data_array&lt;/code&gt;&lt;span&gt;&amp;nbsp;and sent using&amp;nbsp;&lt;/span&gt;&lt;code&gt;ble_nus_string_send()&lt;/code&gt;&lt;span&gt;. In your case,&amp;nbsp;inside&amp;nbsp;ble_nus_string_send() you will find the function&amp;nbsp;sd_ble_gatts_hvx(). You can use this to send data.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Have a look at this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/5823/sending-data/20341#20341" rel="noopener noreferrer" target="_blank"&gt;post&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display message from nrf52832 to nrfconnect</title><link>https://devzone.nordicsemi.com/thread/253530?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 12:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac326075-866b-4c99-a554-8b482a5610d6</guid><dc:creator>cyrine</dc:creator><description>&lt;p&gt;I am sorry, what I meant is &amp;quot;this is not exactelly what I want&amp;quot;,&lt;/p&gt;
&lt;p&gt;Can you help me please find an example or a function I can use to do this.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display message from nrf52832 to nrfconnect</title><link>https://devzone.nordicsemi.com/thread/253428?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 07:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4da2b1f2-9f93-458f-a234-9d572ff335a1</guid><dc:creator>cyrine</dc:creator><description>&lt;p&gt;Hello, thank you for your reply but this is exactelly what I want.&lt;/p&gt;
&lt;p&gt;I have a variable that contains the serial number of my nrf52 device and I want to send the value of my serial number to my phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display message from nrf52832 to nrfconnect</title><link>https://devzone.nordicsemi.com/thread/252937?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 09:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68b21195-d690-4353-a220-b7f737671c53</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What do you mean by displaying a message on your phone? If you just want to send a message from the device and receive it on your phone(in the app), then I suggest you have a look at the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_nus_eval.html?cp=7_1_4_2_2_25" rel="noopener noreferrer" target="_blank"&gt;UART example&lt;/a&gt; in our SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>