<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Two text strings only one text string displays]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=655&amp;type=atom" />
	<updated>2019-01-22T04:27:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=655</id>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1992#p1992" />
			<content type="html"><![CDATA[<p>Not possible, I have already suggested something about this, like 2 or 3 years ago.. Either a callback system ( onPageChanged ) or even a simple variable like<br /></p><div class="codebox"><pre><code>struct { 
  ...
    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 
  uint8_t current_page;

} RemoteXY;</code></pre></div><p>But our suggestions seems to be ignored... <img src="https://forum.remotexy.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-22T04:27:59Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1992#p1992</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1989#p1989" />
			<content type="html"><![CDATA[<p>Can we code on the page element of remotexy?<br />I want that when the user clicks on a certain page element then only my code should run<br />So basically i want to code on the page element...that if the page element is clicked then only certain block of code will execute.....is this possible?</p>]]></content>
			<author>
				<name><![CDATA[inaara.damani28]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=810</uri>
			</author>
			<updated>2019-01-21T16:11:30Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1989#p1989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1979#p1979" />
			<content type="html"><![CDATA[<p>1) Not possible to send SMS, at least not at the moment and maybe never because it seems development of RemoteXY is stopped. The last update took about one year to come and it was only to fix a few bugs so I doubt new features will be added anytime soon (but I hope I&#039;m wrong).</p><p>2) Add two Page elements, then when you add another element you can choose on which page it must be displayed, or if it must be displayed on all Pages. Click on a Page element to go to that Page.</p><p>3) Not possible..</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-16T17:28:30Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1979#p1979</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1978#p1978" />
			<content type="html"><![CDATA[<p>Ok fine ..thanks...i have 3 more doubts<br />1)Can we send SMS to the user using the remoteXY?<br />2) How can we go on the next page using the page element and edit the components of second page on the editor of remoteXY?<br />3) How can we enable disable the components in code?</p>]]></content>
			<author>
				<name><![CDATA[inaara.damani28]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=810</uri>
			</author>
			<updated>2019-01-16T12:12:57Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1978#p1978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1977#p1977" />
			<content type="html"><![CDATA[<p>I forgot to say that you must also increase the fourth byte of the RemoteXY_CONF array.</p><p>As you see actually it&#039;s 29:<br /></p><div class="codebox"><pre><code>255,2,0,29,...</code></pre></div><p>Which is 8 + 21.</p><p>This byte must match the total of the sizes of these arrays. If total is more than 255, then the fifth byte must also be increased (it&#039;s a 16 bits value so it is split in two bytes).</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-15T19:22:29Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1977#p1977</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1976#p1976" />
			<content type="html"><![CDATA[<p>Oh Thank you soo muchh...</p>]]></content>
			<author>
				<name><![CDATA[inaara.damani28]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=810</uri>
			</author>
			<updated>2019-01-14T03:54:33Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1976#p1976</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1975#p1975" />
			<content type="html"><![CDATA[<p>You can but only if you change it in RemoteXY_CONF too</p><p>Here is the part corresponding to these arrays:</p><div class="codebox"><pre><code>67,5,4,9,55,13,16,201,8  // text_1
67,5,4,24,55,9,16,201,21 // text_2</code></pre></div><p>The last number of each line must match the size of the array in the RemoteXY struct</p><br /><p>Want to know more about manual modification, read <a target="_blank" href="http://forum.remotexy.com/viewtopic.php?id=120">this topic</a>, it is outdated, things changed, but it should still be relevant in most cases <img src="https://forum.remotexy.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-14T03:53:10Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1975#p1975</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1974#p1974" />
			<content type="html"><![CDATA[<p>Yess i manually changed them...so we can&#039;t change the sizes manually?<br />Do you know how to read the coordinates of RemoteXY_CONF?<br />If yes then please explain</p>]]></content>
			<author>
				<name><![CDATA[inaara.damani28]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=810</uri>
			</author>
			<updated>2019-01-14T03:47:36Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1974#p1974</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1973#p1973" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>char text_1[30];  /* string end zero UNICODE */ 
char text_2[22];</code></pre></div><p>Did you manually modify the sizes of these arrays ? According to the values in RemoteXY_CONF, their size should be 8 and 21, not 30 and 22.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-14T03:45:49Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1973#p1973</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1972#p1972" />
			<content type="html"><![CDATA[<p>MODULE 1 CODE:-<br />/* RemoteXY select connection mode and include library */&nbsp; <br />#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT <br />#include &lt;RemoteXY.h&gt;&nbsp; </p><p>/* RemoteXY connection settings */&nbsp; <br />#define REMOTEXY_SERIAL Serial <br />#define REMOTEXY_SERIAL_SPEED 115200&nbsp; <br />#define REMOTEXY_WIFI_SSID &quot;Project&quot; <br />#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot; <br />#define REMOTEXY_SERVER_PORT 6377 </p><p>/* RemoteXY configurate&nbsp; */&nbsp; <br />#pragma pack(push, 1) <br />uint8_t RemoteXY_CONF[] = <br />&nbsp; { 255,2,0,29,0,123,0,8,33,1,<br />&nbsp; 130,1,1,0,61,36,82,130,1,1,<br />&nbsp; 38,61,30,82,129,0,9,1,46,6,<br />&nbsp; 8,84,69,77,80,69,82,65,84,85,<br />&nbsp; 82,69,0,67,5,4,9,55,13,16,<br />&nbsp; 201,8,67,5,4,24,55,9,16,201,<br />&nbsp; 21,129,0,19,40,25,6,8,72,69,<br />&nbsp; 65,84,69,82,0,2,1,6,48,50,<br />&nbsp; 16,1,26,31,31,79,78,0,79,70,<br />&nbsp; 70,0,130,1,1,70,61,29,82,129,<br />&nbsp; 0,19,72,26,6,8,67,79,79,76,<br />&nbsp; 69,82,0,2,1,7,80,49,16,135,<br />&nbsp; 26,31,31,79,78,0,79,70,70,0 }; <br />&nbsp; &nbsp; <br />/* this structure defines all the variables of your control interface */&nbsp; <br />struct {&nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;/*input variable*/<br />&nbsp; uint8_t switch_1; // =1 if switch ON and =0 if OFF <br />&nbsp; uint8_t switch_2; // =1 if switch ON and =0 if OFF <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; /* output variable */ <br />&nbsp; char text_1[30];&nbsp; /* string end zero UNICODE */ <br />&nbsp; char text_2[22];<br />&nbsp; <br />&nbsp; &nbsp; /* other variable */ <br />&nbsp; uint8_t connect_flag;&nbsp; &nbsp;/* =1 if wire connected, else =0 */ </p><p>} RemoteXY;&nbsp; <br />#pragma pack(pop) </p><p>#define PIN_SWITCH_1 13<br />#define PIN_SWITCH_2 12</p><p>void setup()&nbsp; &nbsp;<br />{&nbsp; <br />&nbsp; RemoteXY_Init ();<br />&nbsp; pinMode (PIN_SWITCH_1, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_2, OUTPUT);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />}&nbsp; <br />void loop()&nbsp; &nbsp;<br />{&nbsp; &nbsp;<br />&nbsp; RemoteXY_Handler ();&nbsp; <br />&nbsp; /* get the ADC value */ <br />&nbsp; int sensorValue = analogRead(A0);&nbsp; &nbsp; &nbsp;<br />&nbsp; double mv = (sensorValue/1024.0)*5000;<br />&nbsp; double temp = mv/10;<br />&nbsp; dtostrf(temp, 0, 2, RemoteXY.text_1);<br />&nbsp; if(temp&gt;=25.00)<br />&nbsp; {<br />&nbsp; &nbsp; sprintf(RemoteXY.text_2,&quot;HEATER&quot;);<br />&nbsp; }<br />&nbsp; else <br />&nbsp; {<br /> sprintf(RemoteXY.text_2,&quot;COOLER&quot;);<br />&nbsp; }<br />&nbsp; /*convert the temperature value into a string&nbsp; <br />&nbsp; &nbsp; and place it immediately in the field text_1 patterns RemoteXY&nbsp; <br />&nbsp; */&nbsp; <br />&nbsp; Serial.print(&quot;TEMPERATURE = &quot;);<br />&nbsp; Serial.print(temp);<br />&nbsp; Serial.print(&quot;*C&quot;);&nbsp; <br />&nbsp; Serial.println();<br />&nbsp; delay(1200);&nbsp; &nbsp; &nbsp; &nbsp; </p><p> digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_2, (RemoteXY.switch_2==0)?LOW:HIGH); <br />}</p>]]></content>
			<author>
				<name><![CDATA[inaara.damani28]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=810</uri>
			</author>
			<updated>2019-01-14T02:44:22Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1972#p1972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1971#p1971" />
			<content type="html"><![CDATA[<p>Show your code.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-13T20:35:04Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1971#p1971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Two text strings only one text string displays]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1970#p1970" />
			<content type="html"><![CDATA[<p>I have put two text strings one after the another and in the first text string i am displaying the temperature and in the second text string im displaying the suggestion of turning ON/OF the heater/cooler.....i tried all the ways...it has been so many days since im trying bt the second text string is displaying blank when i connect to the wifi module...the suggestion is not getting displayed but the temperature is getting displayed...what should i do...i want to display both simultaneously in respective text strings</p>]]></content>
			<author>
				<name><![CDATA[inaara.damani28]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=810</uri>
			</author>
			<updated>2019-01-13T10:08:41Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1970#p1970</id>
		</entry>
</feed>
