<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Code generated fail]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1079&amp;type=atom" />
	<updated>2020-07-11T15:58:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1079</id>
		<entry>
			<title type="html"><![CDATA[Re: Code generated fail]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3184#p3184" />
			<content type="html"><![CDATA[<p>Problem solved.<br />I updated the ESP8266 Wifi firmware and the code worked perfectly.<br />Thank you.</p>]]></content>
			<author>
				<name><![CDATA[Martins]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1448</uri>
			</author>
			<updated>2020-07-11T15:58:45Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3184#p3184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Code generated fail]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3150#p3150" />
			<content type="html"><![CDATA[<p>Thanks for the reply.<br />I had just sent the RemoteXY_CONF [] print because it was generated differently from the library example.<br />The code was copied completely to the Arduino IDE, and does not work on the smartphone.</p><p>Follow the complete code.</p><p>The difference between the example code and the code generated on the site occurs exactly occurs in RemoteXY_CONF [] ...</p><p>Is there any way to help me?<br />thank you.</p><br /><p>/ *<br />&nbsp; &nbsp;- Button -<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;This source code of graphical user interface<br />&nbsp; &nbsp;has been generated automatically by RemoteXY editor.<br />&nbsp; &nbsp;To compile this code using RemoteXY library 2.4.3 or later version<br />&nbsp; &nbsp;download by link <a target="_blank" href="http://remotexy.com/en/library/">http://remotexy.com/en/library/</a><br />&nbsp; &nbsp;To connect using RemoteXY mobile app by link <a target="_blank" href="http://remotexy.com/en/download/">http://remotexy.com/en/download/</a><br />&nbsp; &nbsp; &nbsp;- for ANDROID 4.5.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.4.1 or later version;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;This source code is free software; you can redistribute it and / or<br />&nbsp; &nbsp;modify it under the terms of the GNU Lesser General Public<br />&nbsp; &nbsp;License as published by the Free Software Foundation; either<br />&nbsp; &nbsp;version 2.1 of the License, or (at your option) any later version.<br />* /</p><p>//////////////////////////////////////////////<br />// RemoteXY include library //<br />//////////////////////////////////////////////</p><p>// RemoteXY select connection mode and include library<br />#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings<br />#define REMOTEXY_SERIAL Serial1<br />#define REMOTEXY_SERIAL_SPEED 9600<br />#define REMOTEXY_WIFI_SSID &quot;RemoteXY&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;<br />#define REMOTEXY_SERVER_PORT 6377</p><br /><p>// RemoteXY configurate<br />#pragma pack (push, 1)<br />uint8_t RemoteXY_CONF [] =<br />&nbsp; {255,1,0,0,0,13,0,10,13,0,<br />&nbsp; 1,0,42,7,12,12,2,31,88,0};<br />&nbsp; <br />// this structure defines all the variables and events of your control interface<br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; uint8_t button_1; // = 1 if button pressed, else = 0</p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag; // = 1 if wire connected, else = 0</p><p>} RemoteXY;<br />#pragma pack (pop)</p><p>/////////////////////////////////////////////<br />// END RemoteXY include //<br />/////////////////////////////////////////////</p><p>#define PIN_BUTTON_1 13</p><br /><p>void setup ()<br />{<br />&nbsp; RemoteXY_Init ();<br />&nbsp; <br />&nbsp; pinMode (PIN_BUTTON_1, OUTPUT);<br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop ()<br />{<br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; digitalWrite (PIN_BUTTON_1, (RemoteXY.button_1 == 0)? LOW: HIGH);<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay ()</p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[Martins]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1448</uri>
			</author>
			<updated>2020-07-07T19:39:53Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3150#p3150</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Code generated fail]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3144#p3144" />
			<content type="html"><![CDATA[<p>You have to use all code from website from <strong>RemoteXY include library</strong> to <strong>END RemoteXY include</strong>. Do not copy RemoteXY_CONF only.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2020-07-07T03:09:43Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3144#p3144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Code generated fail]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3139#p3139" />
			<content type="html"><![CDATA[<p>Hi.<br />I&#039;m having a problem with the code for Arduino generated on the site.<br />When I use the sample library code for a single button, the RemoteXY_CONF [] array (with 15 elements)</p><p>unsigned char RemoteXY_CONF [] =<br />&nbsp; &nbsp;{1,0,11,0,1,5,1,0,21,2<br />&nbsp; &nbsp;, 12,12,2,88,0};<br />With this code it works perfectly when I charge on the smartphone.<br />But when I generate the code on the website, the RemoteXY_CONF [] array (with 20 elements)</p><p>uint8_t RemoteXY_CONF [] =<br />&nbsp; &nbsp;{255,1,0,0,0,13,0,10,13,0,<br />&nbsp; &nbsp;1,0,17,10,12,12,2,31,88,0};</p><p>With this code I can&#039;t charge on the smartphone.<br />Have any of you ever had this problem, or can you help me?<br />Grateful.<br />Martins</p>]]></content>
			<author>
				<name><![CDATA[Martins]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1448</uri>
			</author>
			<updated>2020-07-06T13:21:10Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3139#p3139</id>
		</entry>
</feed>
