<?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>Add ble UART TX characteristic to s120 ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2057/add-ble-uart-tx-characteristic-to-s120-ble_app_multilink_central</link><description>Hello, 
 I have implemented the ble UART service in the s120 example : ble_app_multilink_central. I can receive messages that are sent from a ble UART peripheral in the &amp;quot;on_evt_hvx&amp;quot; function of the ble_app_multilink_central (on the ble UART RX characteristic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Nov 2014 22:05:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2057/add-ble-uart-tx-characteristic-to-s120-ble_app_multilink_central" /><item><title>RE: Add ble UART TX characteristic to s120 ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/8824?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2014 22:05:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d942e61-0556-4ec5-9cac-57dd0b3611aa</guid><dc:creator>Aditya Bansal</dc:creator><description>&lt;p&gt;Hey guys,&lt;/p&gt;
&lt;p&gt;I hope you have already figured out the answer to this question.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my solution:&lt;/p&gt;
&lt;p&gt;Add this function to Stoffels Kevin&amp;#39;s client_handling.c file&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t client_send_string(uint8_t * string, uint16_t length){

ble_gattc_write_params_t write_params;
	
write_params.write_op = BLE_GATT_OP_WRITE_CMD;
write_params.handle   = m_client[0].srv_db.services[0].charateristics[1].characteristic.handle_value;
write_params.flags = BLE_GATT_EXEC_WRITE_FLAG_PREPARED_WRITE;
write_params.offset   = 0;
write_params.len      = length;
write_params.p_value  = string;

APPL_LOG(&amp;quot;[APPL]: In client_send_string: handle=%d, data=%s\r\n&amp;quot;,write_params.handle,write_params.p_value);
APPL_LOG(&amp;quot;[APPL]: Connection handle = %d\r\n&amp;quot;,m_client[0].srv_db.conn_handle);	

return sd_ble_gattc_write(m_client[0].srv_db.conn_handle, &amp;amp;write_params);}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You&amp;#39;ll need to declare this in client_handling.h.&lt;/p&gt;
&lt;p&gt;This works as expected for a string of length less than 20 bytes.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Aditya&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add ble UART TX characteristic to s120 ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/8823?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 21:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869fbd4e-9791-4f2f-ab9e-4040242f69aa</guid><dc:creator>BrettD</dc:creator><description>&lt;p&gt;Did you ever get this to work. I am trying to implement something similar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add ble UART TX characteristic to s120 ble_app_multilink_central</title><link>https://devzone.nordicsemi.com/thread/8822?ContentTypeID=1</link><pubDate>Sat, 12 Apr 2014 16:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cdcd44f-1572-4f78-bfc6-e198857dde49</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;hello support !!! , how receive data for another characteristic , for example battery profile ? maybe some example or manual ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>