<?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 we send a string over bluetooth</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7886/how-can-we-send-a-string-over-bluetooth</link><description>hello, 
 inorder to send a string over ble from a slave to master or master to slave what is to be done??
is there any function for us to pass the string??</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Sep 2019 05:00:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7886/how-can-we-send-a-string-over-bluetooth" /><item><title>RE: how can we send a string over bluetooth</title><link>https://devzone.nordicsemi.com/thread/210814?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 05:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b15e411-64a8-43fc-b445-7443e4020a91</guid><dc:creator>Sudeep R J</dc:creator><description>&lt;p&gt;Hey RK,&lt;/p&gt;
&lt;p&gt;I went through the ble uart program, in that there is some initialization with respect to UART and its pins and in the ble_nus_data_send function there is a call blcm_link_ctx_get(p_nus-&amp;gt;p_link_ctx_storage, conn_handle, (void *) &amp;amp;p_client). So what does this function call and the program actually do?&lt;/p&gt;
&lt;p&gt;I am not able to run it on my board as some RAMcode error is getting popped up and letting me to download and debug the program.&lt;/p&gt;
&lt;p&gt;I want to send a string over bluetooth with the help of a characteristic and nothing else.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kindly help me with the required information so that i can follow the program and make use of it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Sudeep R J&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can we send a string over bluetooth</title><link>https://devzone.nordicsemi.com/thread/28171?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2015 12:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9c3a624-0f30-46e3-976f-39e3e27d4541</guid><dc:creator>deepu</dc:creator><description>&lt;p&gt;What i have understood is that in this function you cannot send more than a single character or 2,since the size of data is uint16(2 bytes).&lt;/p&gt;
&lt;p&gt;If we want to send like&amp;quot;hello world&amp;quot; what has to be done&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can we send a string over bluetooth</title><link>https://devzone.nordicsemi.com/thread/28173?ContentTypeID=1</link><pubDate>Sun, 28 Jun 2015 05:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6ab0b96-b341-4343-9eb4-aa6e05a72e86</guid><dc:creator>Milad</dc:creator><description>&lt;p&gt;Hello There, Since I had a lot of difficulty with this I will try my best to explain everything I know in the easiest way I could :)&lt;/p&gt;
&lt;p&gt;For Bluetooth Low Energy (BLE) communication you have to follow a certain set of rules and regulations. Mainly GAP (for detecting the device and the initial handshake between the device and the client/ cellphone ) and GATT (for a full back and forth communication between the device and the slave) Take a look at this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gap"&gt;learn.adafruit.com/.../gap&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It will help if you get yourself familiar with the term &amp;quot;protocol stack.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=ZaRWk0q8wnU"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you are done there take a look at the Nordic tutorial :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/5/ble-advertising-a-beginners-tutorial/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;At the end what is responsible for sending information is the following function:&lt;/p&gt;
&lt;p&gt;ble_nus_string_send(&amp;amp;m_nus, data_array, index);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can we send a string over bluetooth</title><link>https://devzone.nordicsemi.com/thread/28172?ContentTypeID=1</link><pubDate>Sun, 28 Jun 2015 04:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cdc4517-a88b-4170-8808-fcc7878326e3</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;There&amp;#39;s a ble uart example in the dev kit which does exactly that- sends a string over bluetooth. You can use that as a starting point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>