<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Setting different pins as RX/TX on MEGA to Serial1 pins 19RX an 18TX]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=401&amp;type=atom" />
	<updated>2018-03-05T15:57:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=401</id>
		<entry>
			<title type="html"><![CDATA[Re: Setting different pins as RX/TX on MEGA to Serial1 pins 19RX an 18TX]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1372#p1372" />
			<content type="html"><![CDATA[<p>Guillaume,<br />Thank You alot. Yes it is simply <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Now it works!</p><p>regards,<br />Raitis</p>]]></content>
			<author>
				<name><![CDATA[raitisgr]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=575</uri>
			</author>
			<updated>2018-03-05T15:57:25Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1372#p1372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Setting different pins as RX/TX on MEGA to Serial1 pins 19RX an 18TX]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1370#p1370" />
			<content type="html"><![CDATA[<p>Welcome <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>You try to use SoftSerial on HardwareSerial pins. I suppose this is your problem, so try change the mode to REMOTEXY_MODE__ESP8266_HARDSERIAL_CLOUD, set REMOTEXY_SERIAL to Serial1 and remove REMOTEXY_SERIAL_RX and REMOTEXY_SERIAL_TX.</p><div class="codebox"><pre><code>// определение режима соединения и подключение библиотеки RemoteXY
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_CLOUD
#include &lt;RemoteXY.h&gt;
...
// настройки соединения  
#define REMOTEXY_SERIAL Serial1
#define REMOTEXY_SERIAL_SPEED 9600
...</code></pre></div><p>You can change these options in the Editor.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2018-03-05T13:21:31Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1370#p1370</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Setting different pins as RX/TX on MEGA to Serial1 pins 19RX an 18TX]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1369#p1369" />
			<content type="html"><![CDATA[<p>Hello,<br />I am beginner on the Arduino and micro-controllers programming.<br />I faced in a problem during realization of my house automatisation project.<br />By plan I am willing to make as follows:<br />&nbsp; 1. set the communication between one central point(Arduno MEGA 2560 + ESP8266 ESP-01) with many secondary points(ESP8266 ESP-01) via local Ethernet connection.<br />&nbsp; 2. central point(Arduno MEGA 2560 with ESP8266 ESP-01) connected RemoteXY application via cloud.</p><p>So for 1.&nbsp; I use WiFiEsp library examples WIFIClient and WIFIserver. And there I faced with limitation for MEGA, it should be connected via communication pins like Serial1 pins 19RX an 18TX. And I am willing to use same ESP module for sending the data to RemoteXY cloud.<br />&nbsp; <span class="bbu"> But in the RemoteXY sketch I can&#039;t set 19RX an 18TX, it dos not work with them.<br />&nbsp; &nbsp;If there is possible to do it some hove, or what solution you could recommend?</span></p><p><strong>Here is beginning of the RemoteXY code what I use:</strong><br />&nbsp; &nbsp; &nbsp; // определение режима соединения и подключение библиотеки RemoteXY&nbsp; <br />&nbsp; &nbsp; &nbsp; #define REMOTEXY_MODE__ESP8266_SOFTSERIAL_CLOUD<br />&nbsp; &nbsp; &nbsp; #include &lt;SoftwareSerial.h&gt; <br />&nbsp; &nbsp; &nbsp; #include &lt;RemoteXY.h&gt; </p><p>&nbsp; &nbsp; &nbsp;//R: DHT:<br />&nbsp; &nbsp; &nbsp; #include &lt;SimpleDHT.h&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;// настройки соединения&nbsp; <br />&nbsp; &nbsp; &nbsp;#define REMOTEXY_SERIAL_RX 51 <br />&nbsp; &nbsp; &nbsp;#define REMOTEXY_SERIAL_TX 53 <br />&nbsp; &nbsp; &nbsp;#define REMOTEXY_SERIAL_SPEED 9600 <br />&nbsp; &nbsp; &nbsp;#define REMOTEXY_WIFI_SSID &quot;xxxx&quot; <br />&nbsp; &nbsp; &nbsp;#define REMOTEXY_WIFI_PASSWORD &quot;xxxx&quot; <br />&nbsp; &nbsp; #define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot; <br />&nbsp; &nbsp; &nbsp;#define REMOTEXY_CLOUD_PORT 6376 <br />&nbsp; &nbsp; &nbsp; #define REMOTEXY_CLOUD_TOKEN &quot;xxxxx&quot; </p><p><strong>Thank you in advance for your help.</strong></p>]]></content>
			<author>
				<name><![CDATA[raitisgr]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=575</uri>
			</author>
			<updated>2018-03-05T07:21:11Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1369#p1369</id>
		</entry>
</feed>
