<?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>issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48350/issue-in-sending-the-float-value-in-ble_nus_send</link><description>Hi... 
 i have done the program to read the temperature sensor, i want to get the temperature in float value . i can able to read the temperature in float but i can&amp;#39;t able to pass the float value in ble_nus_send . nRF52832 used segger 15.2v 
 here i am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2019 15:27:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48350/issue-in-sending-the-float-value-in-ble_nus_send" /><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/192142?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 15:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa8172c-e575-42e0-9d9e-5f290e9559d4</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;Yes string conversation working for me&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/192078?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 12:46:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07358786-7e2d-4d1f-9800-ace1fb7b358b</guid><dc:creator>awneil</dc:creator><description>[quote userid="74848" url="~/f/nordic-q-a/48350/issue-in-sending-the-float-value-in-ble_nus_send/192073"]i am not getting any value[/quote]
&lt;p&gt;Again:&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/48350/issue-in-sending-the-float-value-in-ble_nus_send/192061"]If you do not get any value, there is most likely some other issue[/quote]
&lt;p&gt;Go back to the original, unmodified example and confirm that works.&lt;/p&gt;
&lt;p&gt;As suggested in your duplicate thread,&amp;nbsp;&lt;span&gt;Have you checked that the string conversion is actually working?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/192073?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 12:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91fa0270-c8a0-4caa-9901-be7f580923cd</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;even i tried that also , by changing the length&amp;nbsp; . still i am not getting any value&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/192070?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 12:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a848e40-8038-4322-a29c-9459b5ad79d6</guid><dc:creator>awneil</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/48350/issue-in-sending-the-float-value-in-ble_nus_send/192009"]Note that&amp;nbsp;sizeof(tempC) will return the number of bytes required to store a float (size of the type), which is 4, it will not return the actual length of the string[/quote]
&lt;p&gt;Yes - as also noted in the duplicate thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48419/how-to-send-the-float-to-string-over-ble_nus/191946#191946"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48419/how-to-send-the-float-to-string-over-ble_nus/191946#191946&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/192061?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 12:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edeb2e7d-2d8d-4263-8b6e-a0c5db557c58</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you do not get any value, there is most likely some other issue. Check if the ble_nus_data_send function returns NRF_SUCCESS or some other error code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/192047?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 12:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6500cc26-c27a-44c9-b62e-ccc3917b2337</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i didn&amp;#39;t get any value over ble&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/192009?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 10:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29e49a0-e97f-41e6-b690-17eb4a36d9da</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What do you get over BLE? Note that&amp;nbsp;sizeof(tempC) will return the number of bytes required to store a float (size of the type), which is 4, it will not return the actual length of the string.&lt;/p&gt;
&lt;p&gt;Try something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;length1 = sprintf(str,&amp;quot;%f&amp;quot;, tempC);
ble_nus_data_send(&amp;amp;m_nus,str,length1, m_conn_handle);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should also check the error code returned from ble_nus_data_send().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/191992?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f31204b8-b401-4dbd-abb5-91eacb529a74</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i can able to print the data in debug terminal&amp;nbsp; but while i am sending over ble i am not getting the data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/191991?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d892ca-f11e-43d8-aa0b-1da916c8018b</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i have successfully complied but i am not getting the data in nRF app uart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue in sending the float value in ble_nus_send</title><link>https://devzone.nordicsemi.com/thread/191988?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe75dab-70fd-436c-b085-72a75f5aa5fa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you explain exactly with the problem is? Are you not able to compile? Is the float value not showing correctly? Any other issue?&lt;/p&gt;
&lt;p&gt;Did you try using sprintf with %f for the float parameter?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>