<?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>send the data from nRF52832 to phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25295/send-the-data-from-nrf52832-to-phone</link><description>The last time, i could wireless communication by pressing a botton.
The next time, i wanna send the data to phone if the communication is established.
i modified the source code of &amp;quot;main.c&amp;quot; of &amp;quot;void uart_event_handle&amp;quot;,
but i couldn&amp;#39;t send the data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Sep 2017 09:21:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25295/send-the-data-from-nrf52832-to-phone" /><item><title>RE: send the data from nRF52832 to phone</title><link>https://devzone.nordicsemi.com/thread/99675?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 09:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1558277d-84ee-4250-914b-0af67a8227c9</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;My mistake, sorry! I&amp;#39;ve updated my answer with a more correct solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send the data from nRF52832 to phone</title><link>https://devzone.nordicsemi.com/thread/99674?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 08:35:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de6efd7-f65d-40ba-ba27-fc1092815c54</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;I modified the source code.
but i couldn&amp;#39;t send the data.
why couldn&amp;#39;t i send the data?
thank you in advanced.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gyazo.com/81f1227f2c17bd16e52a1f77ecbbb3f3"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send the data from nRF52832 to phone</title><link>https://devzone.nordicsemi.com/thread/99673?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 06:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36f777bd-d8e1-4bbd-befb-a16fe07150a0</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;thank you for your reply.
i get it! i see the tutorials on DevZone!
and i study the programs.
Best regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send the data from nRF52832 to phone</title><link>https://devzone.nordicsemi.com/thread/99672?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 10:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2cada32-5251-4168-918d-ae3e86eb19e6</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Kaito.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid your code will not do much.&lt;br /&gt;
In the event handlers, your application will do certain tasks based on what event is returned from the Softdevice.&lt;/p&gt;
&lt;p&gt;In your case, if you want to send the string when the device is connected.
You should not send data on the connection event, (unless you are already bonded and HVX is enabled).
Please take a look at &lt;a href="https://devzone.nordicsemi.com/question/67448/little-problem-with-send-data-to-ble/"&gt;this&lt;/a&gt; thread and run_ar&amp;#39;s answer. As Runar said in his answer, you can take a look at how this is handled in the HRS example.&lt;/p&gt;
&lt;p&gt;I would aslo suggest that you take a look at our &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;tutorials&lt;/a&gt; here on DevZone. You can find a lot of useful information there. A good place to start could be the Advertising, Service and Characteristic tutorials.&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;br /&gt;
Best regards,&lt;br /&gt;
Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>