<?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>Data received from BLE unable to convert from hex to string</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27208/data-received-from-ble-unable-to-convert-from-hex-to-string</link><description>In the on_ble_evt(ble_evt_t*) function from the ble_app_template, I added a case of &amp;#39;BLE_GATTS_EVT_WRITE&amp;#39;. In it has the following code: 
 case BLE_GATTS_EVT_WRITE:
 { 
 ble_gatts_evt_write_t * p_evt_write = &amp;amp;p_ble_evt-&amp;gt;evt.gatts_evt.params.write;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Nov 2017 14:10:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27208/data-received-from-ble-unable-to-convert-from-hex-to-string" /><item><title>RE: Data received from BLE unable to convert from hex to string</title><link>https://devzone.nordicsemi.com/thread/107279?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 14:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:389527c7-e115-4363-9c4c-10745b59bc22</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;So basically you just need to concatenate a char value with a string, right? Have you taken a &lt;a href="https://stackoverflow.com/questions/4834811/strcat-concat-a-char-onto-a-string"&gt;look at this case over on stackoverflow&lt;/a&gt;? Regarding converting a string to a hex value, &lt;a href="https://stackoverflow.com/questions/29547115/how-to-convert-string-to-hex-value-in-c"&gt;checkout this case&lt;/a&gt;. Hope that helps &amp;amp; I hope I have understood your question correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data received from BLE unable to convert from hex to string</title><link>https://devzone.nordicsemi.com/thread/107278?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2017 09:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b3e15e-687d-49c7-9ddf-5e0c6c2a4784</guid><dc:creator>jj</dc:creator><description>&lt;p&gt;Since data is declared as uint8_t, it is able to receive data in int/hex/string etc format. So from the sender, it is now sending string of characters over. I just need to concatenate the string together and convert it to hex if needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>