<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Can i display a float like this in remoteXY?]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=581&amp;type=atom" />
	<updated>2019-04-10T09:17:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=581</id>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2062#p2062" />
			<content type="html"><![CDATA[<p>I am web developer, I am searching this info since long time Thanks for sharing.</p>]]></content>
			<author>
				<name><![CDATA[gauriwarma]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=889</uri>
			</author>
			<updated>2019-04-10T09:17:16Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2062#p2062</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1829#p1829" />
			<content type="html"><![CDATA[<p>I got it, i had to use a text field with dtostrf. works great thanks.</p>]]></content>
			<author>
				<name><![CDATA[bjr]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=567</uri>
			</author>
			<updated>2018-09-26T23:04:27Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1829#p1829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1827#p1827" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>bjr wrote:</cite><blockquote><p>I gave that a try, nothing appears in the &quot;solution&quot; field. ? Probably something I did, dunno.</p><p>thanks for your help</p></blockquote></div><br /><p>Post your sketch, you must have missed something....</p><p>paste it between the code markers ( &lt;&gt; on the menu above the message compose box)</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2018-09-26T07:20:46Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1827#p1827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1826#p1826" />
			<content type="html"><![CDATA[<p>I gave that a try, nothing appears in the &quot;solution&quot; field. ? Probably something I did, dunno.</p><p>thanks for your help</p>]]></content>
			<author>
				<name><![CDATA[bjr]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=567</uri>
			</author>
			<updated>2018-09-25T21:28:31Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1826#p1826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1824#p1824" />
			<content type="html"><![CDATA[<p>I got it working, it is clunky, and not nice, but it works....</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__SOFTSERIAL
#include &lt;SoftwareSerial.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings 
#define REMOTEXY_SERIAL_RX 8
#define REMOTEXY_SERIAL_TX 9
#define REMOTEXY_SERIAL_SPEED 9600


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,8,0,11,0,50,0,8,13,0,
  7,44,11,9,20,5,2,26,2,2,
  7,44,38,9,20,5,2,26,2,2,
  129,0,33,9,3,6,8,120,0,129,
  0,60,9,3,6,8,61,0,67,4,
  67,9,20,5,2,26,11 };
  
// this structure defines all the variables of your control interface 
struct {

    // input variable
  float edit_1;
  float edit_2;

    // output variable
  char text_1[11];  // string UTF8 end zero 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
///////////////////////////////////////////// 



void setup() {
  // put your setup code here, to run once:

  RemoteXY_Init (); 
}

void loop() {
  // put your main code here, to run repeatedly:

  RemoteXY_Handler (); 

  float Result = RemoteXY.edit_1 * RemoteXY.edit_2;
  String temp = String(Result, 4);
  temp.toCharArray(RemoteXY.text_1, 11);
  
}</code></pre></div><p>... and the RemoteXY app is here....</p><p><a target="_blank" href="http://remotexy.com/en/editor/497517db09ad2bd48ee8eabc15e026da/">http://remotexy.com/en/editor/497517db0 … c15e026da/</a></p><p>enjoy !!</p><br /><p><span style="color: RED">EDIT : I did it as multiply, not divide, modify to suit</span></p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2018-09-24T22:51:55Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1824#p1824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1823#p1823" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>bjr wrote:</cite><blockquote><p>Sorry I have no knowledge about this stuff, just trying to learn.</p><p>So, I cant display the result or i can? you have me confused.<br />I was going to pay someone to write the code, but if it cant be done it would be good to know before i get scammed by someone who said they can do it.</p><p>thanks again</p></blockquote></div><p>Sorry to confuse you....</p><p>Let me put it simple....</p><p>An &quot;Edit field&quot; allows you to send data into the controller - you will not see any changes that the controller may make to that data until you restart the app, so you cannot use en &quot;Edit field&quot; to display data coming from the controller.</p><p>There isn&#039;t a <span class="bbu">display</span> field that can display numbers, there is only a &quot;Text String&quot; display, so the result of your multiplication would have to be converted (in your Arduino, or whatever, code) into a String (of characters) data-type, and displayed on your app as a &quot;Text String&quot;.</p><p>What you want is perfectly possible, but it highlights a limitation iimposed by the controls available, and their capabilities.</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2018-09-24T22:13:35Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1823#p1823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1820#p1820" />
			<content type="html"><![CDATA[<p>Sorry I have no knowledge about this stuff, just trying to learn.</p><p>So, I cant display the result or i can? you have me confused.<br />I was going to pay someone to write the code, but if it cant be done it would be good to know before i get scammed by someone who said they can do it.</p><p>thanks again</p>]]></content>
			<author>
				<name><![CDATA[bjr]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=567</uri>
			</author>
			<updated>2018-09-23T19:50:51Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1820#p1820</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1818#p1818" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>bjr wrote:</cite><blockquote><p>..... It was just to make clear that i was using 3 input fields. My interface is 3 floats at the moment.</p></blockquote></div><p>That&#039;s the problem, they are input fields only, data direction is one-way, so the input field never shows any values that are in the controller, except at &quot;Registration&quot; when the app reads the data from the controller.&nbsp; After that you can change any input field&#039;s data in the controller, and it won&#039;t show on the app.</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2018-09-22T07:43:51Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1818#p1818</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1817#p1817" />
			<content type="html"><![CDATA[<p>Thank you for the info, i was trying to display the result into another float and that doesn&#039;t work. I&#039;ll see how far I make it with yourinfo.</p><p>thanks</p><p>ps; that is not the interface i&#039;m using. It was just to make clear that i was using 3 input fields. My interface is 3 floats at the moment.</p>]]></content>
			<author>
				<name><![CDATA[bjr]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=567</uri>
			</author>
			<updated>2018-09-21T19:53:31Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1817#p1817</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1816#p1816" />
			<content type="html"><![CDATA[<p>Change the top 2 edit boxes to data-type &quot;Float&quot;, and the bottom edit field to a &quot;Text String&quot; Indication.</p><p>The values you put in the top two boxes will go into floating point data in your sketch.</p><p>Divide them as you want, and then convert the result to a string to display in the bottom box.</p><p>Note : You cannot use an &quot;Edit&quot; box to display anything coming FROM your controller, the interface is not bidirectional. Edit fields are mobile device data TO your controller data.</p><p>IMHO this is a poor interface, you have no clue that what you have entered into an Edit field has actually arrived at the controller</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2018-09-21T10:45:47Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1816#p1816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Can i display a float like this in remoteXY?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1810#p1810" />
			<content type="html"><![CDATA[<p>I put a simple sketch together to illustrate what I&#039;m saying.</p><p><a target="_blank" href="http://remotexy.com/en/editor/779e2a5419f9bb16c085c7f9cbc181cc/">http://remotexy.com/en/editor/779e2a541 … 9cbc181cc/</a></p><p>i want to divide the top 2 fields and display the result in the bottom field.</p><p>Can this be done in remoteXY?</p><p>thanks everyone</p>]]></content>
			<author>
				<name><![CDATA[bjr]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=567</uri>
			</author>
			<updated>2018-09-21T00:18:32Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1810#p1810</id>
		</entry>
</feed>
