<?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>NRF52 - How to transmit float32_t value using ble_nus_string_send function ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21100/nrf52---how-to-transmit-float32_t-value-using-ble_nus_string_send-function</link><description>Hi. I would like to convert float32_t to uint8_t array for transmission using the ble_nus_string_send function. Can you guys please suggest the method to convert the same ?.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Apr 2017 17:39:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21100/nrf52---how-to-transmit-float32_t-value-using-ble_nus_string_send-function" /><item><title>RE: NRF52 - How to transmit float32_t value using ble_nus_string_send function ?</title><link>https://devzone.nordicsemi.com/thread/82522?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 17:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88f121b-2b56-4d48-8cf9-a251991d7641</guid><dc:creator>renganathan</dc:creator><description>&lt;p&gt;Thanks. This is exactly what I wanted to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 - How to transmit float32_t value using ble_nus_string_send function ?</title><link>https://devzone.nordicsemi.com/thread/82521?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 14:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a8e3bec-dd01-4ef6-9fa4-4bf29bf46e56</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;You mean like this?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;float32_t my_array[XXX];

//...

send_byte_array((uint8_t *)my_array, (XXX * sizeof(float32_t)));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Why not (if you can read it again on the other side and reconstruct).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>