<?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 data to android from ble(nrf51822)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9945/send-data-to-android-from-ble-nrf51822</link><description>I want to send data to my android phone from Nrf51822.My compiler is mbed I use redbearlab NRF51822 kit.For example,I want to see on my phone &amp;quot;hello world&amp;quot;.
Mbed Program example, 
 void onDataWritten(const GattCharacteristicWriteCBParams *params)
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Oct 2015 10:58:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9945/send-data-to-android-from-ble-nrf51822" /><item><title>RE: Send data to android from ble(nrf51822)?</title><link>https://devzone.nordicsemi.com/thread/36904?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2015 10:58:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e272de03-3a28-49b6-8f58-dbd0f88e43cd</guid><dc:creator>ahmet</dc:creator><description>&lt;p&gt;void onDataWritten(const GattCharacteristicWriteCBParams *params)
{
printf(&amp;quot;hello world&amp;quot;);
} //for mbed compiler
pc.printf=is for serial comminacation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send data to android from ble(nrf51822)?</title><link>https://devzone.nordicsemi.com/thread/36903?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2015 10:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f578b4bb-1dcc-4104-9cd1-4638079f8d53</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;The information in your first post doesn&amp;#39;t really give us much to go on. Why do you use **pc.**printf in your comment and printf in your first post? Are both functions used to transmit a string over BLE to your phone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send data to android from ble(nrf51822)?</title><link>https://devzone.nordicsemi.com/thread/36900?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 09:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3552690a-9c09-4670-9fef-bbef1f67f90b</guid><dc:creator>ahmet</dc:creator><description>&lt;p&gt;Yes this line prints nothing and yes It called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send data to android from ble(nrf51822)?</title><link>https://devzone.nordicsemi.com/thread/36899?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 08:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df1f66e-a260-407d-ad8e-60516b882921</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;So with this code characteristic.getStringValue(0) prints nothing?&lt;/p&gt;
&lt;p&gt;Is onCharacteristicChanged called at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send data to android from ble(nrf51822)?</title><link>https://devzone.nordicsemi.com/thread/36902?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 15:21:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77652321-4181-4e2c-b989-1eaaa4d3ce27</guid><dc:creator>ahmet</dc:creator><description>&lt;p&gt;pc.printf(&amp;quot;%i, %i, %i\n&amp;quot;, (int16_t)readings[0], (int16_t)readings[1], (int16_t)readings[2]);
I can get data from nrf51822 to my phone.But I can&amp;#39;t write it on my phone I am currently use this code above.How can I make android to get this line and convert it for its self and give me data which I want.
As you can understand my problem on the android side?
writeLine(&amp;quot;Alinan Deger &amp;quot; + characteristic.getStringValue(0))
How can I use this android code and read data?
Basicly I want to see accelerometer data on my phone which  get by bluetooth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send data to android from ble(nrf51822)?</title><link>https://devzone.nordicsemi.com/thread/36901?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 15:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3104f322-afda-4e8c-82ba-302bc0f13957</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Can you explain the problem in more detail? Where are you stuck? Are you able to receive any data at all on your phone? Do you know that your onDataWritten() function is working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>