<?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>Float over ble_nus</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89224/float-over-ble_nus</link><description>Hi, 
 I&amp;#39;m trying to send a saadc float value over ble (dk to dongle) with ble_nus. I&amp;#39;m getting the right values but also some other stuff in addition. How can I filter this?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jun 2022 09:26:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89224/float-over-ble_nus" /><item><title>RE: Float over ble_nus</title><link>https://devzone.nordicsemi.com/thread/373620?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 09:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5546234b-2cae-4f65-aa32-847fec5adab7</guid><dc:creator>Juniorprogrammer</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks I know enough!&lt;/p&gt;
&lt;p&gt;Have a nice day!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;JP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Float over ble_nus</title><link>https://devzone.nordicsemi.com/thread/373619?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 09:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:795b1a37-4352-4eeb-ae59-67c01edf4721</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When nothing is connected to the AIN pin, the pin is floating, it is not connected to GND. It will then be affected by noise and other signals close to the pin, so you will read any arbitrary value from the pin, not zero.&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><item><title>RE: Float over ble_nus</title><link>https://devzone.nordicsemi.com/thread/373614?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 09:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:788a3d2d-69f8-45b1-8f76-f72223732463</guid><dc:creator>Juniorprogrammer</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks that worked!&lt;/p&gt;
&lt;p&gt;Small question maybe you know the answer.&lt;/p&gt;
&lt;p&gt;I&amp;acute;m reading my SAADC now nothing is put on and send it over ble. It should be equal to something as zero. When I have a COM-port open on PuTTY for the receiving part I receive +1 values, but after I open also the COM-port for the DK, which I send with, the val go to zero. Is this because nothing is connected on de AIN yet?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1655888775580v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Float over ble_nus</title><link>https://devzone.nordicsemi.com/thread/373607?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 08:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27affa0-a0d1-4d21-bcf1-bb854953edd4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your sizeof(data) function will return the size of the array regardless of the length of the string. You can use &lt;a href="https://www.tutorialspoint.com/c_standard_library/c_function_strlen.htm"&gt;strlen&lt;/a&gt;() or the return value from &lt;a href="https://www.tutorialspoint.com/c_standard_library/c_function_sprintf.htm"&gt;sprintf&lt;/a&gt;() to assign the length of the actual string to d_len.&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>