<?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 a string of floats over BLE_NUS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30588/send-a-string-of-floats-over-ble_nus</link><description>Hello, 
 i&amp;#39;m trying to send string composed of three floats of an accelerometer measurement over BLE using UART nordic service (NUS),. 
 can anyone help me.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Dec 2018 08:56:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30588/send-a-string-of-floats-over-ble_nus" /><item><title>RE: Send a string of floats over BLE_NUS</title><link>https://devzone.nordicsemi.com/thread/159900?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 08:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357619ff-4dba-4c93-9287-544320fc7c79</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;HI Vidar,&lt;/p&gt;
&lt;p&gt;actually i create this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41136/float-to-string-in-printf-ble_nus"&gt;page &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;if possible can you look at this...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send a string of floats over BLE_NUS</title><link>https://devzone.nordicsemi.com/thread/159888?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 08:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c2b4a1a-235e-4619-b4fe-dd4a55f54055</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sunil-vignesh"&gt;Sunil vignesh&lt;/a&gt;, so you are not receiving any data now? Do you receive data if you don&amp;#39;t encode the data with sprintf?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send a string of floats over BLE_NUS</title><link>https://devzone.nordicsemi.com/thread/159834?ContentTypeID=1</link><pubDate>Sun, 02 Dec 2018 14:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a591154-c1a1-4025-af99-048aee2e6f1d</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;I used as like collin said&lt;/p&gt;
&lt;p&gt;by using sprintf i convert the float to string&lt;/p&gt;
&lt;p&gt;but by sending data to mobile by using &lt;strong&gt;ble_nus_data_send();&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;it doesn&amp;#39;t show in the mobile...&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send a string of floats over BLE_NUS</title><link>https://devzone.nordicsemi.com/thread/157601?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 21:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a4e423-ed39-4db4-9897-dfadb52ba607</guid><dc:creator>Collin Mast</dc:creator><description>&lt;p&gt;Just wanted to add a code snippet in case anyone came here looking for syntax&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;char buffer[100];
float f_val;
sprintf(buffer, &amp;quot;%.4f&amp;quot;,f_val);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send a string of floats over BLE_NUS</title><link>https://devzone.nordicsemi.com/thread/121245?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 12:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa17dd42-b4b3-4646-b067-9f113b312081</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can use &lt;a href="http://www.cplusplus.com/reference/cstdio/sprintf/"&gt;sprintf&amp;nbsp;&lt;/a&gt;if you want to convert float values to a text string.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>