<?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 Mpu Value by characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51655/send-mpu-value-by-characteristic</link><description>Sorry, I want to ask that if I can send Decimal(like accel x,gyro x) by the ble characteristic to the nrfConnect, when I send the information, it always becomes hexadecimal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Sep 2019 11:25:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51655/send-mpu-value-by-characteristic" /><item><title>RE: Send Mpu Value by characteristic</title><link>https://devzone.nordicsemi.com/thread/208449?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 11:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca644753-408f-4550-bf23-c504c5f1934a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Mpu Value by characteristic</title><link>https://devzone.nordicsemi.com/thread/208385?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 07:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57165a9a-9079-4f99-99d4-0345634c5eff</guid><dc:creator>Geass77</dc:creator><description>&lt;p&gt;Thank you for the answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Mpu Value by characteristic</title><link>https://devzone.nordicsemi.com/thread/207367?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 11:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:511dbbcc-e91d-4bc8-b0fc-df94d768dd11</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note that &amp;quot;special measures&amp;quot; are needed to use %f ...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50243/pca10056-and-float/200512#200512"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50243/pca10056-and-float/200512#200512&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another reason to let the &lt;em&gt;&lt;strong&gt;app&lt;/strong&gt; &lt;/em&gt;do it!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Mpu Value by characteristic</title><link>https://devzone.nordicsemi.com/thread/207364?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 11:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3463cfea-1dc1-4486-8e96-47a767ecebf0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;As &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; states if you send text then nRF Connect will display that text. The way to do it is to use sprintf to copy the string with the value you want to display in decimal, i.e.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t data[20];
sprintf((char *)data, &amp;quot;Accel X: %f&amp;quot;, acc_x);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then pass the pointer to the data to the SD API for writting/notifying the value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Mpu Value by characteristic</title><link>https://devzone.nordicsemi.com/thread/207359?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 10:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca2b5110-335d-414d-8170-7a9a60e06e40</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;When you say &amp;quot;decimal&amp;quot; do you really mean as a human-readable &lt;em&gt;&lt;strong&gt;text&lt;/strong&gt;&lt;/em&gt; ?&lt;/p&gt;
&lt;p&gt;nRFConnect (on Android at least) certainly will display as text if you send it text ...&lt;/p&gt;
&lt;p&gt;In general, it&amp;#39;s better to send binary data - because that it more compact.&lt;/p&gt;
&lt;p&gt;You then let the Application format that&amp;nbsp;in a suitable way to present it&amp;nbsp; to users ...&lt;/p&gt;
&lt;p&gt;Remember that nRFConnect&amp;nbsp; is just a development/test tool - it is not intended for end users!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>