<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — проблема с подключением к облаку]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=252</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=252&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in проблема с подключением к облаку.]]></description>
		<lastBuildDate>Tue, 02 Jan 2018 18:23:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1217#p1217</link>
			<description><![CDATA[<p>Добрый день! Не могу подключиться с андроид! connected с сервером есть. Выдает ошибку Cloud server does not reply. Receive time out error. Пробовал с чистым скечем, все тоже! Помогите!!!</p>]]></description>
			<author><![CDATA[null@example.com (Lihoj)]]></author>
			<pubDate>Tue, 02 Jan 2018 18:23:25 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1217#p1217</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1185#p1185</link>
			<description><![CDATA[<p>К сожалению мы сейчас сильно загружены тестированием нового функционала и в данный момент времени у нас нет возможности изучить ваш скетч на предмет ошибок.<br />Рекомендую вам самостоятельно разобраться используя простой метод поиска.<br />1. Запустите пустой интерфейс без вашей прикладной задачи.<br />2. Начните добавлять по одному модулю/части вашей прикладной задачи каждый раз проверяя работу интерфейса.<br />Таким образом вы сможете обозначить место вашей программы из за которого не работает.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Fri, 22 Dec 2017 04:40:25 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1185#p1185</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1173#p1173</link>
			<description><![CDATA[<p>я просто поражаюсь скоростью ответа администратора...</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Tue, 19 Dec 2017 18:46:31 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1173#p1173</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1168#p1168</link>
			<description><![CDATA[<p>могу сбросить проект на flprog</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Sun, 17 Dec 2017 20:45:50 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1168#p1168</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1167#p1167</link>
			<description><![CDATA[<p>код программы? delay(10); встречается один раз, удаление этого не помогает.</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Sun, 17 Dec 2017 19:56:20 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1167#p1167</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1166#p1166</link>
			<description><![CDATA[<p>#define REMOTEXY_MODE__ESP8266_HARDSERIAL_CLOUD<br />#include &lt;RemoteXY.h&gt;<br />#include &lt;Wire.h&gt;<br />#include &quot;DHT_NEW.h&quot;<br />#include &lt;LiquidCrystal_I2C.h&gt;<br />#include &lt;iarduino_RTC.h&gt;<br />iarduino_RTC&nbsp; &nbsp;_RTC1(RTC_DS1302, 4, 2, 3);</p><p>LiquidCrystal_I2C _lcd1(0x3D, 20, 4);<br />int _dispTempLength1=0;<br />boolean _isNeedClearDisp1;</p><p>DHT _dht1;</p><p>LiquidCrystal_I2C _lcd2(0x3B, 20, 4);<br />int _dispTempLength2=0;<br />boolean _isNeedClearDisp2;</p><p>struct _sVFUPD<br />{ int mode=0;<br /> int port=0;<br /> int index=0;<br /> String data=&quot;&quot;;<br />};<br />_sVFUPD _sVFUPDPort1;<br />_sVFUPD _sVFUPDPort2;<br />struct UB_260891097<br />{<br />bool ubo_115169610 = 0;<br />bool _trgs1 = 0;<br />};<br />UB_260891097 UB_260891097_Instance1;<br />UB_260891097 UB_260891097_Instance2;<br />int UB_260891097_ubi_135616755 = 0;<br />int UB_260891097_ubi_251031219 = 0;<br />int UB_260891097_ubi_242487598 = 0;<br />int UB_260891097_ubi_153550548 = 0;<br />int UB_260891097_ubi_231079258 = 0;<br />int UB_260891097_ubi_78003274 = 0;<br />#define REMOTEXY_SERIAL Serial3<br />#define REMOTEXY_SERIAL_SPEED 115200<br />#define REMOTEXY_WIFI_SSID &quot;Teplitca&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;home4137861&quot;<br />#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;<br />#define REMOTEXY_CLOUD_PORT 6376<br />#define REMOTEXY_CLOUD_TOKEN &quot;0095f2bc7b19b7fad613a43d7b2240e1&quot;<br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] = {16, 204, 233, 5, 8, 12, 5, 2, 0, 50, 24, 11, 5, 1, 1, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 131, 1, 2, 2, 29, 5, 1, 1, 31, 208, 158, 209, 129, 208, 178, 208, 181, 209, 137, 208, 181, 208, 189, 208, 184, 208, 181, 0, 131, 0, 32, 2, 30, 5, 2, 2, 31, 208, 154, 208, 187, 208, 184, 208, 188, 208, 176, 209, 130, 0, 65, 12, 40, 37, 5, 5, 1, 65, 12, 40, 43, 5, 5, 1, 65, 12, 40, 49, 5, 5, 1, 65, 12, 40, 55, 5, 5, 1, 67, 0, 16, 69, 9, 5, 2, 1, 26, 11, 67, 0, 23, 75, 8, 5, 2, 1, 26, 11, 67, 0, 40, 24, 11, 5, 2, 1, 26, 11, 67, 0, 40, 29, 10, 5, 2, 1, 26, 11, 67, 0, 40, 34, 10, 5, 2, 1, 26, 11, 67, 0, 40, 39, 10, 5, 2, 1, 26, 11, 67, 0, 50, 37, 8, 4, 1, 2, 26, 11, 67, 0, 50, 43, 8, 4, 1, 2, 26, 11, 67, 0, 50, 49, 8, 4, 1, 2, 26, 11, 67, 0, 50, 55, 8, 4, 1, 2, 26, 11, 65, 10, 49, 36, 5, 5, 3, 65, 10, 49, 42, 5, 5, 3, 65, 10, 49, 48, 5, 5, 3, 65, 1, 33, 80, 5, 5, 3, 65, 4, 42, 80, 5, 5, 3, 65, 1, 33, 85, 5, 5, 3, 65, 4, 42, 85, 5, 5, 3, 65, 1, 33, 90, 5, 5, 3, 65, 4, 42, 90, 5, 5, 3, 65, 12, 40, 61, 5, 5, 1, 67, 0, 50, 61, 8, 4, 1, 2, 26, 11, 2, 0, 26, 37, 10, 5, 1, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 2, 0, 26, 43, 10, 5, 1, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 2, 0, 26, 49, 10, 5, 1, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 2, 0, 26, 55, 10, 5, 1, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 2, 0, 26, 61, 10, 5, 1, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 129, 0, 2, 28, 45, 3, 3, 17, 208, 160, 209, 131, 209, 135, 208, 189, 208, 190, 208, 181, 32, 209, 131, 208, 191, 209, 128, 208, 176, 208, 178, 208, 187, 208, 181, 208, 189, 208, 184, 208, 181, 32, 208, 189, 208, 176, 209, 129, 208, 190, 209, 129, 208, 176, 208, 188, 208, 184, 0, 129, 0, 50, 32, 9, 3, 1, 17, 208, 155, 208, 174, 208, 154, 208, 161, 0, 129, 0, 3, 38, 17, 4, 1, 17, 208, 147, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 32, 49, 0, 129, 0, 33, 32, 16, 3, 1, 17, 208, 161, 208, 190, 209, 129, 209, 130, 208, 190, 209, 143, 208, 189, 208, 184, 208, 181, 32, 0, 129, 0, 3, 44, 17, 4, 1, 17, 208, 147, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 32, 50, 0, 129, 0, 3, 50, 17, 4, 1, 17, 208, 147, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 32, 51, 0, 129, 0, 3, 56, 17, 4, 1, 17, 208, 147, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 32, 52, 0, 129, 0, 3, 62, 16, 4, 1, 17, 208, 160, 208, 176, 209, 129, 209, 129, 208, 176, 208, 180, 208, 176, 0, 2, 0, 49, 27, 10, 5, 3, 1, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 129, 0, 4, 37, 19, 3, 3, 17, 208, 157, 208, 176, 209, 129, 208, 190, 209, 129, 32, 208, 187, 208, 190, 209, 130, 208, 190, 208, 186, 0, 129, 0, 4, 43, 16, 3, 3, 17, 208, 157, 208, 176, 209, 129, 208, 190, 209, 129, 32, 208, 177, 208, 190, 208, 186, 32, 0, 129, 0, 4, 49, 21, 3, 3, 17, 208, 157, 208, 176, 209, 129, 208, 190, 209, 129, 32, 209, 129, 209, 130, 208, 181, 208, 187, 208, 176, 208, 182, 0, 2, 0, 35, 36, 10, 5, 3, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 2, 0, 35, 42, 10, 5, 3, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 2, 0, 35, 48, 10, 5, 3, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 129, 0, 2, 70, 42, 3, 3, 17, 208, 160, 209, 131, 209, 135, 208, 189, 208, 190, 208, 181, 32, 209, 131, 208, 191, 209, 128, 208, 176, 208, 178, 208, 187, 208, 181, 208, 189, 208, 184, 208, 181, 32, 209, 130, 209, 128, 208, 181, 209, 133, 209, 133, 208, 190, 208, 180, 0, 129, 0, 7, 25, 40, 3, 1, 17, 208, 160, 209, 131, 209, 135, 208, 189, 208, 190, 208, 181, 32, 209, 131, 208, 191, 209, 128, 208, 176, 208, 178, 208, 187, 208, 181, 208, 189, 208, 184, 208, 181, 32, 209, 129, 208, 178, 208, 181, 209, 130, 208, 190, 208, 188, 0, 129, 0, 32, 77, 7, 3, 3, 17, 208, 158, 209, 130, 208, 186, 209, 128, 0, 129, 0, 41, 77, 7, 3, 3, 17, 208, 151, 208, 176, 208, 186, 209, 128, 0, 129, 0, 2, 80, 13, 3, 3, 17, 208, 146, 208, 181, 209, 128, 209, 133, 208, 189, 208, 184, 208, 185, 0, 129, 0, 2, 85, 13, 3, 3, 17, 208, 145, 208, 190, 208, 186, 208, 190, 208, 178, 208, 190, 208, 185, 0, 129, 0, 2, 90, 12, 3, 3, 17, 208, 157, 208, 184, 208, 182, 208, 189, 208, 184, 208, 185, 0, 2, 0, 50, 68, 10, 5, 3, 1, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 3, 131, 17, 80, 11, 4, 3, 4, 26, 3, 131, 17, 85, 11, 4, 3, 4, 26, 3, 131, 17, 90, 11, 4, 3, 4, 26, 129, 0, 4, 55, 24, 3, 3, 17, 208, 159, 208, 190, 208, 180, 208, 190, 208, 179, 209, 128, 208, 181, 208, 178, 32, 209, 128, 208, 176, 209, 129, 209, 130, 208, 178, 0, 2, 0, 35, 54, 10, 5, 3, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 65, 12, 49, 54, 5, 5, 3, 67, 0, 23, 46, 9, 5, 2, 1, 26, 11, 129, 0, 4, 25, 28, 4, 2, 17, 208, 159, 208, 181, 209, 128, 208, 178, 208, 176, 209, 143, 32, 208, 179, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 0, 129, 0, 5, 71, 10, 3, 2, 17, 208, 163, 208, 187, 208, 184, 209, 134, 208, 176, 32, 0, 129, 0, 4, 30, 27, 4, 2, 17, 208, 146, 209, 130, 208, 190, 209, 128, 208, 176, 209, 143, 32, 208, 179, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 0, 129, 0, 4, 35, 27, 4, 2, 17, 208, 162, 209, 128, 208, 181, 209, 130, 209, 140, 209, 143, 32, 208, 179, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 0, 129, 0, 4, 40, 33, 4, 2, 17, 208, 167, 208, 181, 209, 130, 208, 178, 208, 181, 209, 128, 209, 130, 208, 176, 209, 143, 32, 208, 179, 209, 128, 209, 131, 208, 191, 208, 191, 208, 176, 0, 129, 0, 5, 76, 16, 3, 2, 17, 208, 146, 208, 187, 208, 176, 208, 182, 208, 189, 208, 190, 209, 129, 209, 130, 209, 140, 0, 67, 0, 23, 51, 9, 5, 2, 1, 26, 11, 129, 0, 4, 47, 13, 3, 2, 17, 208, 161, 209, 130, 208, 190, 208, 187, 32, 49, 32, 208, 179, 209, 128, 0, 129, 0, 4, 52, 13, 3, 2, 17, 208, 161, 209, 130, 208, 190, 208, 187, 32, 51, 32, 208, 179, 209, 128, 0, 67, 0, 5, 16, 55, 6, 1, 2, 26, 11, 67, 0, 49, 80, 12, 5, 3, 2, 26, 11, 67, 0, 49, 85, 10, 5, 3, 2, 26, 11, 67, 0, 49, 90, 13, 5, 3, 2, 26, 11, 129, 0, 5, 82, 14, 3, 2, 17, 208, 152, 208, 180, 208, 181, 209, 130, 32, 209, 129, 208, 189, 208, 181, 208, 179, 0, 2, 0, 23, 81, 10, 5, 2, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 131, 0, 32, 9, 29, 5, 3, 2, 31, 208, 158, 209, 130, 208, 190, 208, 191, 208, 187, 208, 181, 208, 189, 208, 184, 208, 181, 0, 65, 4, 24, 18, 5, 5, 3, 65, 4, 56, 18, 5, 5, 3, 129, 0, 3, 19, 19, 3, 3, 17, 208, 155, 208, 181, 208, 178, 209, 139, 208, 185, 32, 208, 154, 208, 190, 209, 130, 208, 181, 208, 187, 0, 129, 0, 33, 19, 21, 3, 3, 17, 208, 159, 209, 128, 208, 176, 208, 178, 209, 139, 208, 185, 32, 208, 186, 208, 190, 209, 130, 208, 181, 208, 187, 0};<br />struct {<br />unsigned char switch_1;<br />unsigned char switch_2;<br />unsigned char switch_3;<br />unsigned char switch_4;<br />unsigned char switch_5;<br />unsigned char switch_6;<br />unsigned char switch_7;<br />unsigned char switch_8;<br />unsigned char switch_9;<br />unsigned char switch_10;<br />unsigned char switch_11;<br />unsigned char select_1;<br />unsigned char select_2;<br />unsigned char select_3;<br />unsigned char switch_12;<br />unsigned char switch_13;<br />unsigned char led_1_r;<br />unsigned char led_2_r;<br />unsigned char led_3_r;<br />unsigned char led_4_r;<br />char text_1[11];<br />char text_2[11];<br />char text_3[11];<br />char text_4[11];<br />char text_5[11];<br />char text_6[11];<br />char text_7[11];<br />char text_8[11];<br />char text_9[11];<br />char text_10[11];<br />unsigned char led_5_g;<br />unsigned char led_6_g;<br />unsigned char led_7_g;<br />unsigned char led_8_b;<br />unsigned char led_9_r;<br />unsigned char led_10_b;<br />unsigned char led_11_r;<br />unsigned char led_12_b;<br />unsigned char led_13_r;<br />unsigned char led_14_r;<br />char text_11[11];<br />unsigned char led_15_r;<br />char text_12[11];<br />char text_13[11];<br />char text_14[11];<br />char text_15[11];<br />char text_16[11];<br />char text_17[11];<br />unsigned char led_16_r;<br />unsigned char led_17_r;<br /> unsigned char connect_flag;<br />} RemoteXY;<br />#pragma pack(pop) <br />bool _gtv1;<br />bool _gtv3;<br />bool _gtv2;<br />bool _gtv5;<br />bool _gtv4;<br />bool _gtv7;<br />bool _gtv11;<br />bool _gtv13;<br />bool _gtv14;<br />bool _gtv15;<br />bool _gtv16;<br />bool _gtv6;<br />int _gtv8;<br />int _gtv9;<br />int _gtv10;<br />bool _gtv17;<br />bool _gtv18;<br />bool _gtv12;<br />bool _gtv19;<br />bool _gtv20;<br />bool _gtv21;<br />bool _gtv22;<br />bool _gtv23;<br />bool _gtv24;<br />bool _gtv25;<br />bool _gtv26;<br />bool _gtv27;<br />bool _gtv28;<br />bool _gtv29;<br />bool _gtv30;<br />bool _gtv31;<br />bool _gtv32;<br />bool _gtv34;<br />bool _gtv35;<br />bool _gtv36;<br />bool _gtv37;<br />bool _gtv38;<br />bool _gtv39;<br />bool _gtv40;<br />bool _gtv41;<br />bool _gtv42;<br />bool _gtv43;<br />bool _gtv44;<br />bool _gtv45;<br />bool _gtv46;<br />bool _gtv47;<br />bool _gtv48;<br />bool _gtv49;<br />String _gtv50;<br />int _gtv51;<br />int _gtv52;<br />bool _gtv55;<br />bool _gtv56;<br />String _gtv57;<br />int _gtv58;<br />int _gtv59;<br />String _gtv60;<br />String _gtv61;<br />String _gtv62;<br />String _gtv63;<br />String _gtv64;<br />String _gtv65;<br />float _RV5CP2 = 0.00;<br />int _swi17;<br />int _SV5CP2 = 0;<br />bool _SV5CP2needSend = 0;<br />bool _tim22I = 0;<br />bool _tim22O = 0;<br />unsigned long _tim22P = 0UL;<br />bool _tim17I = 0;<br />bool _tim17O = 0;<br />unsigned long _tim17P = 0UL;<br />int _disp20oldLength = 0;<br />int _swi8;<br />String _RTC1_GetTime1_StrOut;<br />byte _RTC1_GetTime1_HourOut = 0;<br />byte _RTC1_GetTime1_MinOut = 0;<br />bool _gen1I = 0;<br />bool _gen1O = 0;<br />unsigned long _gen1P = 0UL;<br />int _disp14oldLength = 0;<br />int _disp27oldLength = 0;<br />bool _tim26I = 0;<br />bool _tim26O = 0;<br />unsigned long _tim26P = 0UL;<br />float _SV6CP2 = 0.00;<br />bool _SV6CP2needSend = 0;<br />bool _SV2CP1 = 0;<br />bool _SV2CP1needSend = 0;<br />int _disp4oldLength = 0;<br />int _disp6oldLength = 0;<br />unsigned long _dht1LRT = 0UL;<br />unsigned long _dht1Tti = 0UL;<br />float _SV7CP2 = 0.00;<br />bool _SV7CP2needSend = 0;<br />bool _SV3CP1 = 0;<br />bool _SV3CP1needSend = 0;<br />bool _RV7CP1 = 0;<br />bool _tim30I = 0;<br />bool _tim30O = 0;<br />unsigned long _tim30P = 0UL;<br />bool _tim14I = 0;<br />bool _tim14O = 0;<br />unsigned long _tim14P = 0UL;<br />int _disp11oldLength = 0;<br />bool _tim8I = 0;<br />bool _tim8O = 0;<br />unsigned long _tim8P = 0UL;<br />bool _gen5I = 0;<br />bool _gen5O = 0;<br />unsigned long _gen5P = 0UL;<br />bool _trgs3 = 0;<br />float _RV3CP1 = 0.00;<br />int _swi3;<br />int _disp15oldLength = 0;<br />bool _tim15I = 0;<br />bool _tim15O = 0;<br />unsigned long _tim15P = 0UL;<br />int _disp16oldLength = 0;<br />bool _tim19I = 0;<br />bool _tim19O = 0;<br />unsigned long _tim19P = 0UL;<br />bool _gen6I = 0;<br />bool _gen6O = 0;<br />unsigned long _gen6P = 0UL;<br />int _disp19oldLength = 0;<br />int _disp1oldLength = 0;<br />int _SV3CP2 = 0;<br />bool _SV3CP2needSend = 0;<br />int _disp32oldLength = 0;<br />bool _tim4I = 0;<br />bool _tim4O = 0;<br />unsigned long _tim4P = 0UL;<br />int _swi7;<br />int _disp9oldLength = 0;<br />int _swi9;<br />bool _tim24I = 0;<br />bool _tim24O = 0;<br />unsigned long _tim24P = 0UL;<br />bool _trgs5 = 0;<br />bool _tim2I = 0;<br />bool _tim2O = 0;<br />unsigned long _tim2P = 0UL;<br />int _disp24oldLength = 0;<br />bool _tim25I = 0;<br />bool _tim25O = 0;<br />unsigned long _tim25P = 0UL;<br />int _disp33oldLength = 0;<br />bool _SV1CP1 = 0;<br />bool _SV1CP1needSend = 0;<br />bool _tim33I = 0;<br />bool _tim33O = 0;<br />unsigned long _tim33P = 0UL;<br />bool _tim12I = 0;<br />bool _tim12O = 0;<br />unsigned long _tim12P = 0UL;<br />byte _RTC1_GetTime3_HourOut = 0;<br />byte _RTC1_GetTime3_MinOut = 0;<br />bool _gen3I = 0;<br />bool _gen3O = 0;<br />unsigned long _gen3P = 0UL;<br />bool _trgs2 = 0;<br />float _RV1CP1 = 0.00;<br />int _swi1;<br />bool _tim13I = 0;<br />bool _tim13O = 0;<br />unsigned long _tim13P = 0UL;<br />int _disp10oldLength = 0;<br />bool _tim7I = 0;<br />bool _tim7O = 0;<br />unsigned long _tim7P = 0UL;<br />int _disp23oldLength = 0;<br />bool _gen4I = 0;<br />bool _gen4O = 0;<br />unsigned long _gen4P = 0UL;<br />float _RV2CP1 = 0.00;<br />int _swi2;<br />int _SV1CP2 = 0;<br />bool _SV1CP2needSend = 0;<br />int _disp5oldLength = 0;<br />float _RV4CP1 = 0.00;<br />int _disp7oldLength = 0;<br />int _disp26oldLength = 0;<br />float _RV3CP2 = 0.00;<br />int _swi15;<br />int _SV2CP2 = 0;<br />bool _SV2CP2needSend = 0;<br />bool _SV6CP1 = 0;<br />bool _SV6CP1needSend = 0;<br />bool _RV8CP1 = 0;<br />bool _tim3I = 0;<br />bool _tim3O = 0;<br />unsigned long _tim3P = 0UL;<br />bool _trgs4 = 0;<br />int _swi16;<br />bool _tim11I = 0;<br />bool _tim11O = 0;<br />unsigned long _tim11P = 0UL;<br />bool _tim23I = 0;<br />bool _tim23O = 0;<br />unsigned long _tim23P = 0UL;<br />int _disp18oldLength = 0;<br />int _disp28oldLength = 0;<br />int _disp30oldLength = 0;<br />bool _tim32I = 0;<br />bool _tim32O = 0;<br />unsigned long _tim32P = 0UL;<br />int _disp12oldLength = 0;<br />bool _tim1I = 0;<br />bool _tim1O = 0;<br />unsigned long _tim1P = 0UL;<br />bool _tim21I = 0;<br />bool _tim21O = 0;<br />unsigned long _tim21P = 0UL;<br />int _swi13;<br />bool _trgs1 = 0;<br />bool _tim9I = 0;<br />bool _tim9O = 0;<br />unsigned long _tim9P = 0UL;<br />bool _tim18I = 0;<br />bool _tim18O = 0;<br />unsigned long _tim18P = 0UL;<br />bool _tim5I = 0;<br />bool _tim5O = 0;<br />unsigned long _tim5P = 0UL;<br />int _disp22oldLength = 0;<br />int _swi10;<br />int _disp3oldLength = 0;<br />float _RV6CP2 = 0.00;<br />bool _gen2I = 0;<br />bool _gen2O = 0;<br />unsigned long _gen2P = 0UL;<br />int _disp2oldLength = 0;<br />bool _tim29I = 0;<br />bool _tim29O = 0;<br />unsigned long _tim29P = 0UL;<br />float _RV6CP1 = 0.00;<br />int _swi6;<br />int _disp25oldLength = 0;<br />float _RV5CP1 = 0.00;<br />bool _tim27I = 0;<br />bool _tim27O = 0;<br />unsigned long _tim27P = 0UL;<br />bool _tim6I = 0;<br />bool _tim6O = 0;<br />unsigned long _tim6P = 0UL;<br />int _swi11;<br />float _RV1CP2 = 0.00;<br />bool _tim28I = 0;<br />bool _tim28O = 0;<br />unsigned long _tim28P = 0UL;<br />bool _SV4CP1 = 0;<br />bool _SV4CP1needSend = 0;<br />int _swi4;<br />float _RV2CP2 = 0.00;<br />int _swi14;<br />int _disp29oldLength = 0;<br />bool _SV5CP1 = 0;<br />bool _SV5CP1needSend = 0;<br />int _swi5;<br />bool _tim31I = 0;<br />bool _tim31O = 0;<br />unsigned long _tim31P = 0UL;<br />int _disp31oldLength = 0;<br />bool _tim10I = 0;<br />bool _tim10O = 0;<br />unsigned long _tim10P = 0UL;<br />bool _tim16I = 0;<br />bool _tim16O = 0;<br />unsigned long _tim16P = 0UL;<br />int _disp17oldLength = 0;<br />bool _tim20I = 0;<br />bool _tim20O = 0;<br />unsigned long _tim20P = 0UL;<br />int _disp21oldLength = 0;<br />bool _swi18;<br />int _SV4CP2 = 0;<br />bool _SV4CP2needSend = 0;<br />int _swi12;<br />int _disp8oldLength = 0;<br />int _disp13oldLength = 0;<br />void setup()<br />{<br />Wire.begin();<br />delay(10);<br />RemoteXY_Init ();<br />_RTC1.begin();<br />_RTC1.period(1);<br />Serial2.begin(9600);<br />Serial1.begin(9600);<br />pinMode(5, OUTPUT);<br />pinMode(6, OUTPUT);<br />pinMode(7, OUTPUT);<br />pinMode(8, OUTPUT);<br />pinMode(9, OUTPUT);<br />pinMode(10, OUTPUT);<br />pinMode(11, OUTPUT);<br />pinMode(12, OUTPUT);<br />pinMode(22, OUTPUT);<br />pinMode(23, OUTPUT);<br />pinMode(24, OUTPUT);<br />pinMode(25, OUTPUT);<br />pinMode(26, OUTPUT);<br />pinMode(27, OUTPUT);<br />pinMode(1, OUTPUT);</p><p>_lcd1.init();<br />_lcd1.backlight();<br />_lcd2.init();<br />_lcd2.backlight();<br />_dht1.setup(40);<br />_dht1LRT = millis();<br />_dht1Tti = millis(); <br /> _sVFUPDPort1.port = 1;<br /> _sVFUPDPort2.port = 2;<br />}<br />void loop()<br />{if (_isNeedClearDisp1) {_lcd1.clear(); _isNeedClearDisp1= 0;}<br />if (_isNeedClearDisp2) {_lcd2.clear(); _isNeedClearDisp2= 0;}<br />RemoteXY_Handler&nbsp; ();<br />if (Serial1.available()) { _readByteFromUART((Serial1.read()),1);}if (Serial2.available()) { _readByteFromUART((Serial2.read()),2);}</p><br /><br /><br /><p>//Плата:1<br />//Наименование:Часы реального времени с таймером<br />if (1) {UB_260891097_ubi_135616755 = _RTC1_GetTime1_HourOut;<br />UB_260891097_ubi_251031219 = _RTC1_GetTime1_MinOut;<br />UB_260891097_ubi_242487598 = 6;<br />UB_260891097_ubi_153550548 = 0;<br />UB_260891097_ubi_231079258 = 22;<br />UB_260891097_ubi_78003274 = 0;<br />UB_260891097_Instance1 = _func_UB_260891097(UB_260891097_Instance1, UB_260891097_ubi_135616755, UB_260891097_ubi_251031219, UB_260891097_ubi_242487598, UB_260891097_ubi_153550548, UB_260891097_ubi_231079258, UB_260891097_ubi_78003274);}<br />_RTC1_GetTime1_StrOut = _RTC1.gettime(&quot;H:i:s,d-m,D&quot;);<br />_RTC1.gettime();<br />_RTC1_GetTime1_HourOut = _RTC1.Hours;<br />_RTC1_GetTime1_MinOut = _RTC1.minutes;<br />_gtv65 = _RTC1_GetTime1_StrOut;<br />_gtv11 = UB_260891097_Instance1.ubo_115169610;<br />if (1) {<br />_dispTempLength1 = ((_RTC1_GetTime1_StrOut)).length();<br />if (_disp31oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp31oldLength = _dispTempLength1;<br />_lcd1.setCursor(0, 0);<br />_lcd1.print((_RTC1_GetTime1_StrOut));<br />} else {<br />if (_disp31oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp31oldLength = 0;} <br />}</p><p>//Плата:2<br />//Наименование:Датчики освещенности<br />if(((map(( (analogRead (0))), (0), (1023), (0), (10)))) &lt;= (3)) _trgs1 = 1;<br />if(_tim29O) _trgs1 = 0;<br />if (_trgs1)<br />{ if (_tim24I) { if (_isTimer(_tim24P, 30000)) {_tim24O = 1;}} else {_tim24I =1; _tim24P = millis();}} else {_tim24O = 0; _tim24I = 0;}<br />if (((map(( (analogRead (0))), (0), (1023), (0), (10)))) &gt; (8))<br />{ if (_tim29I) { if (_isTimer(_tim29P, 300000)) {_tim29O = 1;}} else {_tim29I =1; _tim29P = millis();}} else {_tim29O = 0; _tim29I = 0;}<br />if(((map(( (analogRead (1))), (0), (1023), (0), (10)))) &lt;= (3)) _trgs2 = 1;<br />if(_tim30O) _trgs2 = 0;<br />if (_trgs2)<br />{ if (_tim25I) { if (_isTimer(_tim25P, 30000)) {_tim25O = 1;}} else {_tim25I =1; _tim25P = millis();}} else {_tim25O = 0; _tim25I = 0;}<br />if (((map(( (analogRead (1))), (0), (1023), (0), (10)))) &gt; (7))<br />{ if (_tim30I) { if (_isTimer(_tim30P, 300000)) {_tim30O = 1;}} else {_tim30I =1; _tim30P = millis();}} else {_tim30O = 0; _tim30I = 0;}<br />if(((map(( (analogRead (2))), (0), (1023), (0), (10)))) &lt;= (3)) _trgs3 = 1;<br />if(_tim31O) _trgs3 = 0;<br />if (_trgs3)<br />{ if (_tim26I) { if (_isTimer(_tim26P, 30000)) {_tim26O = 1;}} else {_tim26I =1; _tim26P = millis();}} else {_tim26O = 0; _tim26I = 0;}<br />if (((map(( (analogRead (2))), (0), (1023), (0), (10)))) &gt; (7))<br />{ if (_tim31I) { if (_isTimer(_tim31P, 300000)) {_tim31O = 1;}} else {_tim31I =1; _tim31P = millis();}} else {_tim31O = 0; _tim31I = 0;}<br />if(((map(( (analogRead (3))), (0), (1023), (0), (10)))) &lt;= (3)) _trgs4 = 1;<br />if(_tim32O) _trgs4 = 0;<br />if (_trgs4)<br />{ if (_tim27I) { if (_isTimer(_tim27P, 30000)) {_tim27O = 1;}} else {_tim27I =1; _tim27P = millis();}} else {_tim27O = 0; _tim27I = 0;}<br />if (((map(( (analogRead (3))), (0), (1023), (0), (10)))) &gt; (7))<br />{ if (_tim32I) { if (_isTimer(_tim32P, 300000)) {_tim32O = 1;}} else {_tim32I =1; _tim32P = millis();}} else {_tim32O = 0; _tim32I = 0;}<br />if(((map(( (analogRead (4))), (0), (1023), (0), (10)))) &lt;= (3)) _trgs5 = 1;<br />if(_tim33O) _trgs5 = 0;<br />if (_trgs5)<br />{ if (_tim28I) { if (_isTimer(_tim28P, 30000)) {_tim28O = 1;}} else {_tim28I =1; _tim28P = millis();}} else {_tim28O = 0; _tim28I = 0;}<br />if (((map(( (analogRead (4))), (0), (1023), (0), (10)))) &gt; (7))<br />{ if (_tim33I) { if (_isTimer(_tim33P, 300000)) {_tim33O = 1;}} else {_tim33I =1; _tim33P = millis();}} else {_tim33O = 0; _tim33I = 0;}<br />if (1) {<br />_dispTempLength2 = (((String((map(( (analogRead (0))), (0), (1023), (0), (10))), DEC)))).length();<br />if (_disp32oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp32oldLength = _dispTempLength2;<br />_lcd2.setCursor(7, 1);<br />_lcd2.print(((String((map(( (analogRead (0))), (0), (1023), (0), (10))), DEC))));<br />} else {<br />if (_disp32oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp32oldLength = 0;} <br />}<br />if (1) {<br />_dispTempLength2 = (String(&quot;Ocenka sveta &quot;)).length();<br />if (_disp29oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp29oldLength = _dispTempLength2;<br />_lcd2.setCursor(int((20 - _dispTempLength2)/2), 0);<br />_lcd2.print(String(&quot;Ocenka sveta &quot;));<br />} else {<br />if (_disp29oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp29oldLength = 0;} <br />}<br />if(!(( (map(( (analogRead (0))), (0), (1023), (0), (10))))==(_SV1CP2))){_SV1CP2needSend = 1;} _SV1CP2 = (map(( (analogRead (0))), (0), (1023), (0), (10))); <br />if (1) {<br />_dispTempLength2 = (String(&quot; LUX:&quot;)).length();<br />if (_disp9oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp9oldLength = _dispTempLength2;<br />_lcd2.setCursor(0, 1);<br />_lcd2.print(String(&quot; LUX:&quot;));<br />} else {<br />if (_disp9oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp9oldLength = 0;} <br />}<br />_gtv3 = _tim24O;<br />if(!(( (map(( (analogRead (1))), (0), (1023), (0), (10))))==(_SV2CP2))){_SV2CP2needSend = 1;} _SV2CP2 = (map(( (analogRead (1))), (0), (1023), (0), (10))); <br />if (1) {<br />_dispTempLength2 = (((String((map(( (analogRead (1))), (0), (1023), (0), (10))), DEC)))).length();<br />if (_disp24oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp24oldLength = _dispTempLength2;<br />_lcd2.setCursor(9, 1);<br />_lcd2.print(((String((map(( (analogRead (1))), (0), (1023), (0), (10))), DEC))));<br />} else {<br />if (_disp24oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp24oldLength = 0;} <br />}<br />_gtv2 = _tim25O;<br />if(!(( (map(( (analogRead (2))), (0), (1023), (0), (10))))==(_SV3CP2))){_SV3CP2needSend = 1;} _SV3CP2 = (map(( (analogRead (2))), (0), (1023), (0), (10))); <br />if (1) {<br />_dispTempLength2 = (((String((map(( (analogRead (2))), (0), (1023), (0), (10))), DEC)))).length();<br />if (_disp26oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp26oldLength = _dispTempLength2;<br />_lcd2.setCursor(11, 1);<br />_lcd2.print(((String((map(( (analogRead (2))), (0), (1023), (0), (10))), DEC))));<br />} else {<br />if (_disp26oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp26oldLength = 0;} <br />}<br />_gtv5 = _tim26O;<br />if (1) {<br />_dispTempLength2 = (((String((map(( (analogRead (3))), (0), (1023), (0), (10))), DEC)))).length();<br />if (_disp13oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp13oldLength = _dispTempLength2;<br />_lcd2.setCursor(13, 1);<br />_lcd2.print(((String((map(( (analogRead (3))), (0), (1023), (0), (10))), DEC))));<br />} else {<br />if (_disp13oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp13oldLength = 0;} <br />}<br />if(!(( (map(( (analogRead (3))), (0), (1023), (0), (10))))==(_SV4CP2))){_SV4CP2needSend = 1;} _SV4CP2 = (map(( (analogRead (3))), (0), (1023), (0), (10))); <br />_gtv4 = _tim27O;<br />if (1) {<br />_dispTempLength2 = (((String((map(( (analogRead (4))), (0), (1023), (0), (10))), DEC)))).length();<br />if (_disp14oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp14oldLength = _dispTempLength2;<br />_lcd2.setCursor(15, 1);<br />_lcd2.print(((String((map(( (analogRead (4))), (0), (1023), (0), (10))), DEC))));<br />} else {<br />if (_disp14oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp14oldLength = 0;} <br />}<br />if(!(( (map(( (analogRead (4))), (0), (1023), (0), (10))))==(_SV5CP2))){_SV5CP2needSend = 1;} _SV5CP2 = (map(( (analogRead (4))), (0), (1023), (0), (10))); <br />_gtv7 = _tim28O;</p><p>//Плата:3<br />//Наименование:Таймеры на включение и выключение<br />if(_gtv3) {_tim10O = 1; _tim10I = 1;} else { if(_tim10I) {_tim10I = 0; _tim10P = millis();} else { if (_tim10O) {if ( _isTimer(_tim10P, 60000)) _tim10O = 0;}}}<br />if (_tim10O)<br />{ if (_tim2I) { if (_isTimer(_tim2P, 60000)) {_tim2O = 1;}} else {_tim2I =1; _tim2P = millis();}} else {_tim2O = 0; _tim2I = 0;}<br />if(_gtv2) {_tim22O = 1; _tim22I = 1;} else { if(_tim22I) {_tim22I = 0; _tim22P = millis();} else { if (_tim22O) {if ( _isTimer(_tim22P, 120000)) _tim22O = 0;}}}<br />if (_tim22O)<br />{ if (_tim14I) { if (_isTimer(_tim14P, 60000)) {_tim14O = 1;}} else {_tim14I =1; _tim14P = millis();}} else {_tim14O = 0; _tim14I = 0;}<br />if(_gtv5) {_tim15O = 1; _tim15I = 1;} else { if(_tim15I) {_tim15I = 0; _tim15P = millis();} else { if (_tim15O) {if ( _isTimer(_tim15P, 180000)) _tim15O = 0;}}}<br />if (_tim15O)<br />{ if (_tim9I) { if (_isTimer(_tim9P, 180000)) {_tim9O = 1;}} else {_tim9I =1; _tim9P = millis();}} else {_tim9O = 0; _tim9I = 0;}<br />if(_gtv4) {_tim11O = 1; _tim11I = 1;} else { if(_tim11I) {_tim11I = 0; _tim11P = millis();} else { if (_tim11O) {if ( _isTimer(_tim11P, 240000)) _tim11O = 0;}}}<br />if (_tim11O)<br />{ if (_tim12I) { if (_isTimer(_tim12P, 240000)) {_tim12O = 1;}} else {_tim12I =1; _tim12P = millis();}} else {_tim12O = 0; _tim12I = 0;}<br />if(_gtv7) {_tim1O = 1; _tim1I = 1;} else { if(_tim1I) {_tim1I = 0; _tim1P = millis();} else { if (_tim1O) {if ( _isTimer(_tim1P, 60000)) _tim1O = 0;}}}<br />if (_tim1O)<br />{ if (_tim13I) { if (_isTimer(_tim13P, 60000)) {_tim13O = 1;}} else {_tim13I =1; _tim13P = millis();}} else {_tim13O = 0; _tim13I = 0;}<br />if (!(_gtv17)) {<br />_dispTempLength1 = (String(&quot;AVTOMAT&quot;)).length();<br />if (_disp3oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp3oldLength = _dispTempLength1;<br />_lcd1.setCursor(10, 3);<br />_lcd1.print(String(&quot;AVTOMAT&quot;));<br />} else {<br />if (_disp3oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp3oldLength = 0;} <br />}<br />_gtv1 = ( (( (_tim2O) &amp;&amp; (!(_gtv17)) &amp;&amp; (_gtv11) )) &amp;&amp; (!(_gtv55)) );<br />_gtv13 = ( (( (_tim14O) &amp;&amp; (!(_gtv17)) &amp;&amp; (_gtv11) )) &amp;&amp; (!(_gtv55)) );<br />_gtv14 = ( (( (_tim9O) &amp;&amp; (!(_gtv17)) &amp;&amp; (_gtv11) )) &amp;&amp; (!(_gtv55)) );<br />_gtv15 = ( (( (_tim12O) &amp;&amp; (!(_gtv17)) &amp;&amp; (_gtv11) )) &amp;&amp; (!(_gtv55)) );<br />_gtv16 = ( (( (_tim13O) &amp;&amp; (!(_gtv17)) &amp;&amp; (_gtv11) )) &amp;&amp; (!(_gtv55)) );</p><p>//Плата:4<br />//Наименование:Кнопочное управление светом<br />if (1) {<br />_dispTempLength1 = (((String((byte(_gtv28)), DEC)))).length();<br />if (_disp15oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp15oldLength = _dispTempLength1;<br />_lcd1.setCursor(8, 1);<br />_lcd1.print(((String((byte(_gtv28)), DEC))));<br />} else {<br />if (_disp15oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp15oldLength = 0;} <br />}<br />if (( (_gtv1) || (( (_gtv28) &amp;&amp; (_gtv17) )) )) {<br />_dispTempLength1 = (String(&quot;GR1-on&quot;)).length();<br />if (_disp1oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp1oldLength = _dispTempLength1;<br />_lcd1.setCursor(0, 1);<br />_lcd1.print(String(&quot;GR1-on&quot;));<br />} else {<br />if (_disp1oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp1oldLength = 0;} <br />}<br />if (!(( (_gtv1) || (( (_gtv28) &amp;&amp; (_gtv17) )) ))) {<br />_dispTempLength1 = (String(&quot;GR1-off&quot;)).length();<br />if (_disp10oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp10oldLength = _dispTempLength1;<br />_lcd1.setCursor(0, 1);<br />_lcd1.print(String(&quot;GR1-off&quot;));<br />} else {<br />if (_disp10oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp10oldLength = 0;} <br />}<br />digitalWrite(5, !(( (_gtv1) || (( (_gtv28) &amp;&amp; (_gtv17) )) )));<br />_gtv12 = ( (_gtv1) || (( (_gtv28) &amp;&amp; (_gtv17) )) );<br />if (( (_gtv13) || (( (_gtv29) &amp;&amp; (_gtv17) )) )) {<br />_dispTempLength1 = (String(&quot;GR2-on&quot;)).length();<br />if (_disp2oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp2oldLength = _dispTempLength1;<br />_lcd1.setCursor(0, 2);<br />_lcd1.print(String(&quot;GR2-on&quot;));<br />} else {<br />if (_disp2oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp2oldLength = 0;} <br />}<br />if (1) {<br />_dispTempLength1 = (((String((byte(_gtv29)), DEC)))).length();<br />if (_disp12oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp12oldLength = _dispTempLength1;<br />_lcd1.setCursor(8, 2);<br />_lcd1.print(((String((byte(_gtv29)), DEC))));<br />} else {<br />if (_disp12oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp12oldLength = 0;} <br />}<br />if (!(( (_gtv13) || (( (_gtv29) &amp;&amp; (_gtv17) )) ))) {<br />_dispTempLength1 = (String(&quot;GR2-off&quot;)).length();<br />if (_disp11oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp11oldLength = _dispTempLength1;<br />_lcd1.setCursor(0, 2);<br />_lcd1.print(String(&quot;GR2-off&quot;));<br />} else {<br />if (_disp11oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp11oldLength = 0;} <br />}<br />digitalWrite(6, !(( (_gtv13) || (( (_gtv29) &amp;&amp; (_gtv17) )) )));<br />_gtv19 = ( (_gtv13) || (( (_gtv29) &amp;&amp; (_gtv17) )) );<br />if (1) {<br />_dispTempLength1 = (((String((byte(_gtv30)), DEC)))).length();<br />if (_disp6oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp6oldLength = _dispTempLength1;<br />_lcd1.setCursor(8, 3);<br />_lcd1.print(((String((byte(_gtv30)), DEC))));<br />} else {<br />if (_disp6oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp6oldLength = 0;} <br />}<br />if (( (_gtv14) || (( (_gtv30) &amp;&amp; (_gtv17) )) )) {<br />_dispTempLength1 = (String(&quot;GR3-on&quot;)).length();<br />if (_disp4oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp4oldLength = _dispTempLength1;<br />_lcd1.setCursor(0, 3);<br />_lcd1.print(String(&quot;GR3-on&quot;));<br />} else {<br />if (_disp4oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp4oldLength = 0;} <br />}<br />if (!(( (_gtv14) || (( (_gtv30) &amp;&amp; (_gtv17) )) ))) {<br />_dispTempLength1 = (String(&quot;GR3-off&quot;)).length();<br />if (_disp16oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp16oldLength = _dispTempLength1;<br />_lcd1.setCursor(0, 3);<br />_lcd1.print(String(&quot;GR3-off&quot;));<br />} else {<br />if (_disp16oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp16oldLength = 0;} <br />}<br />digitalWrite(7, !(( (_gtv14) || (( (_gtv30) &amp;&amp; (_gtv17) )) )));<br />_gtv20 = ( (_gtv14) || (( (_gtv30) &amp;&amp; (_gtv17) )) );<br />if (1) {<br />_dispTempLength1 = (((String((byte(_gtv31)), DEC)))).length();<br />if (_disp7oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp7oldLength = _dispTempLength1;<br />_lcd1.setCursor(18, 1);<br />_lcd1.print(((String((byte(_gtv31)), DEC))));<br />} else {<br />if (_disp7oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp7oldLength = 0;} <br />}<br />if (( (_gtv15) || (( (_gtv31) &amp;&amp; (_gtv17) )) )) {<br />_dispTempLength1 = (String(&quot;GR4-on&quot;)).length();<br />if (_disp5oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp5oldLength = _dispTempLength1;<br />_lcd1.setCursor(10, 1);<br />_lcd1.print(String(&quot;GR4-on&quot;));<br />} else {<br />if (_disp5oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp5oldLength = 0;} <br />}<br />if (!(( (_gtv15) || (( (_gtv31) &amp;&amp; (_gtv17) )) ))) {<br />_dispTempLength1 = (String(&quot;GR4-off&quot;)).length();<br />if (_disp17oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp17oldLength = _dispTempLength1;<br />_lcd1.setCursor(10, 1);<br />_lcd1.print(String(&quot;GR4-off&quot;));<br />} else {<br />if (_disp17oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp17oldLength = 0;} <br />}<br />digitalWrite(8, !(( (_gtv15) || (( (_gtv31) &amp;&amp; (_gtv17) )) )));<br />_gtv21 = ( (_gtv15) || (( (_gtv31) &amp;&amp; (_gtv17) )) );<br />if (1) {<br />_dispTempLength1 = (((String((byte(_gtv32)), DEC)))).length();<br />if (_disp8oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp8oldLength = _dispTempLength1;<br />_lcd1.setCursor(18, 2);<br />_lcd1.print(((String((byte(_gtv32)), DEC))));<br />} else {<br />if (_disp8oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp8oldLength = 0;} <br />}<br />if (( (_gtv16) || (( (_gtv32) &amp;&amp; (_gtv17) )) )) {<br />_dispTempLength1 = (String(&quot;GR5-on&quot;)).length();<br />if (_disp25oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp25oldLength = _dispTempLength1;<br />_lcd1.setCursor(10, 2);<br />_lcd1.print(String(&quot;GR5-on&quot;));<br />} else {<br />if (_disp25oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp25oldLength = 0;} <br />}<br />if (!(( (_gtv16) || (( (_gtv32) &amp;&amp; (_gtv17) )) ))) {<br />_dispTempLength1 = (String(&quot;GR5-off&quot;)).length();<br />if (_disp18oldLength &gt; _dispTempLength1) {_isNeedClearDisp1 = 1;} <br />_disp18oldLength = _dispTempLength1;<br />_lcd1.setCursor(10, 2);<br />_lcd1.print(String(&quot;GR5-off&quot;));<br />} else {<br />if (_disp18oldLength &gt; 0) {_isNeedClearDisp1 = 1; _disp18oldLength = 0;} <br />}<br />digitalWrite(9, !(( (_gtv16) || (( (_gtv32) &amp;&amp; (_gtv17) )) )));<br />_gtv22 = ( (_gtv16) || (( (_gtv32) &amp;&amp; (_gtv17) )) );</p><p>//Плата:5<br />//Наименование:Отопление <br />if (1) {UB_260891097_ubi_135616755 = _RTC1_GetTime3_HourOut;<br />UB_260891097_ubi_251031219 = _RTC1_GetTime3_MinOut;<br />UB_260891097_ubi_242487598 = 6;<br />UB_260891097_ubi_153550548 = 0;<br />UB_260891097_ubi_231079258 = 22;<br />UB_260891097_ubi_78003274 = 15;<br />UB_260891097_Instance2 = _func_UB_260891097(UB_260891097_Instance2, UB_260891097_ubi_135616755, UB_260891097_ubi_251031219, UB_260891097_ubi_242487598, UB_260891097_ubi_153550548, UB_260891097_ubi_231079258, UB_260891097_ubi_78003274);}<br />if ((_gtv8) &lt;= (23))<br />{ if (_tim21I) { if (_isTimer(_tim21P, 60000)) {_tim21O = 1;}} else {_tim21I =1; _tim21P = millis();}} else {_tim21O = 0; _tim21I = 0;}<br />if ((_gtv8) &lt;= (23))<br />{ if (_tim16I) { if (_isTimer(_tim16P, 60000)) {_tim16O = 1;}} else {_tim16I =1; _tim16P = millis();}} else {_tim16O = 0; _tim16I = 0;}<br />if ((_gtv8) &lt;= (24))<br />{ if (_tim23I) { if (_isTimer(_tim23P, 60000)) {_tim23O = 1;}} else {_tim23I =1; _tim23P = millis();}} else {_tim23O = 0; _tim23I = 0;}<br />_RTC1.gettime();<br />_RTC1_GetTime3_HourOut = _RTC1.Hours;<br />_RTC1_GetTime3_MinOut = _RTC1.minutes;<br />_gtv6 = UB_260891097_Instance2.ubo_115169610;<br />digitalWrite(10, !(( (( (_gtv18) &amp;&amp; (_gtv24) )) || (( (!(_gtv18)) &amp;&amp; (_tim21O) )) )));<br />_gtv40 = ( (( (_gtv18) &amp;&amp; (_gtv24) )) || (( (!(_gtv18)) &amp;&amp; (_tim21O) )) );<br />digitalWrite(11, !(( (( (_gtv18) &amp;&amp; (_gtv25) )) || (( (!(_gtv18)) &amp;&amp; (_tim16O) )) )));<br />_gtv41 = ( (( (_gtv18) &amp;&amp; (_gtv25) )) || (( (!(_gtv18)) &amp;&amp; (_tim16O) )) );<br />digitalWrite(12, !(( (( (!(_gtv18)) &amp;&amp; (_tim23O) )) || (( (_gtv18) &amp;&amp; (_gtv26) )) )));<br />_gtv42 = ( (( (!(_gtv18)) &amp;&amp; (_tim23O) )) || (( (_gtv18) &amp;&amp; (_gtv26) )) );<br />digitalWrite(1, !(( (_gtv18) &amp;&amp; (_gtv27) )));<br />_gtv43 = ( (_gtv18) &amp;&amp; (_gtv27) );</p><p>//Плата:6<br />//Наименование:Датчики отопления<br />_gtv10 = (((_dht1.temperature)-(2.00))+(_gtv59))/(2);<br />if(_isTimer(_dht1Tti, 1000)) {<br />if(_isTimer(_dht1LRT,( _dht1.getMinimumSamplingPeriod()))) {<br />_dht1.readSensor();<br />_dht1LRT = millis(); <br />_dht1Tti = millis(); <br />}<br />}<br />if (1) {<br />_dispTempLength2 = ((( _floatToStringWitRaz((_dht1.temperature)-(2.00),0)))).length();<br />if (_disp19oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp19oldLength = _dispTempLength2;<br />_lcd2.setCursor(0, 2);<br />_lcd2.print((( _floatToStringWitRaz((_dht1.temperature)-(2.00),0))));<br />} else {<br />if (_disp19oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp19oldLength = 0;} <br />}<br />if (1) {<br />_dispTempLength2 = ((( _floatToStringWitRaz(_dht1.humidity,0)))).length();<br />if (_disp22oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp22oldLength = _dispTempLength2;<br />_lcd2.setCursor(0, 3);<br />_lcd2.print((( _floatToStringWitRaz(_dht1.humidity,0))));<br />} else {<br />if (_disp22oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp22oldLength = 0;} <br />}<br />if(!(( (((_dht1.temperature)-(2.00))+(_gtv59))/(2))==(_SV6CP2))){_SV6CP2needSend = 1;} _SV6CP2 = (((_dht1.temperature)-(2.00))+(_gtv59))/(2); <br />if (1) {<br />_dispTempLength2 = ((( _floatToStringWitRaz(_RV1CP2,0)))).length();<br />if (_disp20oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp20oldLength = _dispTempLength2;<br />_lcd2.setCursor(4, 3);<br />_lcd2.print((( _floatToStringWitRaz(_RV1CP2,0))));<br />} else {<br />if (_disp20oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp20oldLength = 0;} <br />}<br />if(!(( _dht1.humidity)==(_SV7CP2))){_SV7CP2needSend = 1;} _SV7CP2 = _dht1.humidity; <br />_gtv57 = ( _floatToStringWitRaz(_RV1CP2,0));<br />_gtv9 = _RV1CP2;<br />if (1) {<br />_dispTempLength2 = (String(&quot;PS&nbsp; GR1 GR4&quot;)).length();<br />if (_disp27oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp27oldLength = _dispTempLength2;<br />_lcd2.setCursor(4, 2);<br />_lcd2.print(String(&quot;PS&nbsp; GR1 GR4&quot;));<br />} else {<br />if (_disp27oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp27oldLength = 0;} <br />}<br />if (1) {<br />_dispTempLength2 = ((( _floatToStringWitRaz(_RV2CP2,0)))).length();<br />if (_disp23oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp23oldLength = _dispTempLength2;<br />_lcd2.setCursor(8, 3);<br />_lcd2.print((( _floatToStringWitRaz(_RV2CP2,0))));<br />} else {<br />if (_disp23oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp23oldLength = 0;} <br />}<br />_gtv51 = _RV2CP2;<br />if (1) {<br />_dispTempLength2 = ((( _floatToStringWitRaz(_RV3CP2,0)))).length();<br />if (_disp28oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp28oldLength = _dispTempLength2;<br />_lcd2.setCursor(12, 3);<br />_lcd2.print((( _floatToStringWitRaz(_RV3CP2,0))));<br />} else {<br />if (_disp28oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp28oldLength = 0;} <br />}<br />_gtv58 = ((_RV2CP2)+(_RV3CP2))/(2);<br />_gtv52 = _RV3CP2;<br />if (1) {<br />_dispTempLength2 = ((( _floatToStringWitRaz(_RV6CP2,0)))).length();<br />if (_disp21oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp21oldLength = _dispTempLength2;<br />_lcd2.setCursor(16, 3);<br />_lcd2.print((( _floatToStringWitRaz(_RV6CP2,0))));<br />} else {<br />if (_disp21oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp21oldLength = 0;} <br />}<br />if (1) {<br />_dispTempLength2 = (String(&quot;%&quot;)).length();<br />if (_disp33oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp33oldLength = _dispTempLength2;<br />_lcd2.setCursor(18, 3);<br />_lcd2.print(String(&quot;%&quot;));<br />} else {<br />if (_disp33oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp33oldLength = 0;} <br />}<br />_gtv50 = ( _floatToStringWitRaz(_RV6CP2,0));<br />if (1) {<br />_dispTempLength2 = ((( _floatToStringWitRaz(_RV5CP2,0)))).length();<br />if (_disp30oldLength &gt; _dispTempLength2) {_isNeedClearDisp2 = 1;} <br />_disp30oldLength = _dispTempLength2;<br />_lcd2.setCursor(16, 2);<br />_lcd2.print((( _floatToStringWitRaz(_RV5CP2,0))));<br />} else {<br />if (_disp30oldLength &gt; 0) {_isNeedClearDisp2 = 1; _disp30oldLength = 0;} <br />}<br />_gtv8 = _RV5CP2;<br />_gtv59 = _RV1CP1;<br />_gtv60 = ( _floatToStringWitRaz(_RV2CP1,2));<br />_gtv61 = ( _floatToStringWitRaz(_RV3CP1,2));<br />_gtv62 = ( _floatToStringWitRaz(_RV4CP1,2));<br />_gtv63 = ( _floatToStringWitRaz(_RV5CP1,2));<br />_gtv64 = ( _floatToStringWitRaz(_RV6CP1,2));</p><p>//Плата:7<br />//Наименование:Управление трехходовиками<br />if ((_gtv58) &gt; (21))<br />{ if (_tim4I) { if (_isTimer(_tim4P, 15000)) {_tim4O = 1;}} else {_tim4I =1; _tim4P = millis();}} else {_tim4O = 0; _tim4I = 0;}<br />if ((_gtv58) &lt; (19))<br />{ if (_tim3I) { if (_isTimer(_tim3P, 15000)) {_tim3O = 1;}} else {_tim3I =1; _tim3P = millis();}} else {_tim3O = 0; _tim3I = 0;}<br />if (( (( (( (!(_gtv23)) &amp;&amp; (( (_tim4O) &amp;&amp; (_gtv6) )) )) || (( (_gtv23) &amp;&amp; (_gtv47) )) )) || (( (( (!(_gtv23)) &amp;&amp; (( (_tim18O) &amp;&amp; (!(_gtv6)) )) )) || (( (_gtv23) &amp;&amp; (_gtv47) )) )) )) {if (! _gen1I){_gen1I = 1; _gen1O = 1; _gen1P = millis();}} else { _gen1I = 0 ; _gen1O= 0; } if (_gen1I &amp;&amp;&nbsp; _gen1O)&nbsp; &nbsp;_gen1O = !( _isTimer( _gen1P , 3600000 ));<br />if ((_gtv58) &gt; (16))<br />{ if (_tim18I) { if (_isTimer(_tim18P, 15000)) {_tim18O = 1;}} else {_tim18I =1; _tim18P = millis();}} else {_tim18O = 0; _tim18I = 0;}<br />if ((_gtv58) &lt; (14))<br />{ if (_tim17I) { if (_isTimer(_tim17P, 15000)) {_tim17O = 1;}} else {_tim17I =1; _tim17P = millis();}} else {_tim17O = 0; _tim17I = 0;}<br />if (( (( (( (!(_gtv23)) &amp;&amp; (( (_tim3O) &amp;&amp; (_gtv6) )) )) || (( (_gtv46) &amp;&amp; (_gtv23) )) )) || (( (( (!(_gtv23)) &amp;&amp; (( (_tim17O) &amp;&amp; (!(_gtv6)) )) )) || (( (_gtv46) &amp;&amp; (_gtv23) )) )) )) {if (! _gen2I){_gen2I = 1; _gen2O = 1; _gen2P = millis();}} else { _gen2I = 0 ; _gen2O= 0; } if (_gen2I &amp;&amp;&nbsp; _gen2O)&nbsp; &nbsp;_gen2O = !( _isTimer( _gen2P , 3600000 ));<br />if (( (( (( (!(_gtv23)) &amp;&amp; (( (_tim5O) &amp;&amp; (_gtv6) )) )) || (( (_gtv23) &amp;&amp; (_gtv48) )) )) || (( (( (!(_gtv23)) &amp;&amp; (( (_tim19O) &amp;&amp; (!(_gtv6)) )) )) || (( (_gtv48) &amp;&amp; (_gtv23) )) )) )) {if (! _gen5I){_gen5I = 1; _gen5O = 1; _gen5P = millis();}} else { _gen5I = 0 ; _gen5O= 0; } if (_gen5I &amp;&amp;&nbsp; _gen5O)&nbsp; &nbsp;_gen5O = !( _isTimer( _gen5P , 3600000 ));<br />if ((_gtv9) &gt; (17))<br />{ if (_tim6I) { if (_isTimer(_tim6P, 15000)) {_tim6O = 1;}} else {_tim6I =1; _tim6P = millis();}} else {_tim6O = 0; _tim6I = 0;}<br />if (( (( (( (!(_gtv23)) &amp;&amp; (( (_gtv6) &amp;&amp; (_tim6O) )) )) || (( (_gtv49) &amp;&amp; (_gtv23) )) )) || (( (( (!(_gtv23)) &amp;&amp; (( (_tim20O) &amp;&amp; (!(_gtv6)) )) )) || (( (_gtv49) &amp;&amp; (_gtv23) )) )) )) {if (! _gen6I){_gen6I = 1; _gen6O = 1; _gen6P = millis();}} else { _gen6I = 0 ; _gen6O= 0; } if (_gen6I &amp;&amp;&nbsp; _gen6O)&nbsp; &nbsp;_gen6O = !( _isTimer( _gen6P , 3600000 ));<br />if ((_gtv9) &lt; (16))<br />{ if (_tim5I) { if (_isTimer(_tim5P, 15000)) {_tim5O = 1;}} else {_tim5I =1; _tim5P = millis();}} else {_tim5O = 0; _tim5I = 0;}<br />if ((_gtv9) &gt; (19))<br />{ if (_tim20I) { if (_isTimer(_tim20P, 15000)) {_tim20O = 1;}} else {_tim20I =1; _tim20P = millis();}} else {_tim20O = 0; _tim20I = 0;}<br />if ((_gtv9) &lt; (17))<br />{ if (_tim19I) { if (_isTimer(_tim19P, 15000)) {_tim19O = 1;}} else {_tim19I =1; _tim19P = millis();}} else {_tim19O = 0; _tim19I = 0;}<br />if (( (( (!(_gtv23)) &amp;&amp; (_tim8O) )) || (( (_gtv23) &amp;&amp; (_gtv45) )) )) {if (! _gen3I){_gen3I = 1; _gen3O = 1; _gen3P = millis();}} else { _gen3I = 0 ; _gen3O= 0; } if (_gen3I &amp;&amp;&nbsp; _gen3O)&nbsp; &nbsp;_gen3O = !( _isTimer( _gen3P , 3600000 ));<br />if ((_gtv8) &gt; (20))<br />{ if (_tim8I) { if (_isTimer(_tim8P, 15000)) {_tim8O = 1;}} else {_tim8I =1; _tim8P = millis();}} else {_tim8O = 0; _tim8I = 0;}<br />if ((_gtv8) &lt; (14))<br />{ if (_tim7I) { if (_isTimer(_tim7P, 15000)) {_tim7O = 1;}} else {_tim7I =1; _tim7P = millis();}} else {_tim7O = 0; _tim7I = 0;}<br />if (_swi18) {if (! _gen4I){_gen4I = 1; _gen4O = 1; _gen4P = millis();}} else { _gen4I = 0 ; _gen4O= 0; } if (_gen4I &amp;&amp;&nbsp; _gen4O)&nbsp; &nbsp;_gen4O = !( _isTimer( _gen4P , 3600000 ));<br />if(_gtv56)<br />{_swi18=1;}<br />else<br />{_swi18=( (( (!(_gtv23)) &amp;&amp; (_tim7O) )) || (( (_gtv23) &amp;&amp; (_gtv44) )) );}<br />digitalWrite(24, _gen1O);<br />_gtv37 = _gen1O;<br />if(!(( _gen1O)==(_SV1CP1))){_SV1CP1needSend = 1;} _SV1CP1 = _gen1O; <br />digitalWrite(25, _gen2O);<br />_gtv36 = _gen2O;<br />if(!(( _gen2O)==(_SV2CP1))){_SV2CP1needSend = 1;} _SV2CP1 = _gen2O; <br />_gtv55 = (_gtv58) &gt; (25);<br />digitalWrite(27, _gen5O);<br />_gtv38 = _gen5O;<br />if(!(( _gen5O)==(_SV3CP1))){_SV3CP1needSend = 1;} _SV3CP1 = _gen5O; <br />_gtv39 = _gen6O;<br />digitalWrite(26, _gen6O);<br />if(!(( _gen6O)==(_SV4CP1))){_SV4CP1needSend = 1;} _SV4CP1 = _gen6O; <br />_gtv35 = _gen3O;<br />digitalWrite(22, _gen3O);<br />if(!(( _gen3O)==(_SV5CP1))){_SV5CP1needSend = 1;} _SV5CP1 = _gen3O; <br />digitalWrite(23, _gen4O);<br />_gtv34 = _gen4O;<br />if(!(( _gen4O)==(_SV6CP1))){_SV6CP1needSend = 1;} _SV6CP1 = _gen4O; </p><p>//Плата:8<br />//Наименование:Связь с интернетом<br />if(_gtv12)<br />{_swi6=255;}<br />else<br />{_swi6=0;}<br />if(_gtv19)<br />{_swi3=255;}<br />else<br />{_swi3=0;}<br />if(_gtv20)<br />{_swi1=255;}<br />else<br />{_swi1=0;}<br />if(_gtv21)<br />{_swi2=255;}<br />else<br />{_swi2=0;}<br />if(_gtv41)<br />{_swi15=255;}<br />else<br />{_swi15=0;}<br />if(_gtv42)<br />{_swi16=255;}<br />else<br />{_swi16=0;}<br />if(_gtv40)<br />{_swi14=255;}<br />else<br />{_swi14=0;}<br />if(_gtv34)<br />{_swi7=255;}<br />else<br />{_swi7=0;}<br />if(_gtv35)<br />{_swi8=255;}<br />else<br />{_swi8=0;}<br />if(_gtv36)<br />{_swi10=255;}<br />else<br />{_swi10=0;}<br />if(_gtv37)<br />{_swi11=255;}<br />else<br />{_swi11=0;}<br />if(_gtv38)<br />{_swi12=255;}<br />else<br />{_swi12=0;}<br />if(_gtv39)<br />{_swi13=255;}<br />else<br />{_swi13=0;}<br />if(_gtv22)<br />{_swi9=255;}<br />else<br />{_swi9=0;}<br />if(_gtv43)<br />{_swi17=255;}<br />else<br />{_swi17=0;}<br />if(_RV7CP1)<br />{_swi4=255;}<br />else<br />{_swi4=0;}<br />if(_RV8CP1)<br />{_swi5=255;}<br />else<br />{_swi5=0;}<br />RemoteXY.led_1_r = _swi6;<br />RemoteXY.led_2_r = _swi3;<br />RemoteXY.led_3_r = _swi1;<br />RemoteXY.led_4_r = _swi2;<br />((String(_gtv10, DEC))).toCharArray((RemoteXY.text_1), 11);<br />(_gtv50).toCharArray((RemoteXY.text_2), 11);<br />((String(_gtv51, DEC))).toCharArray((RemoteXY.text_3), 11);<br />((String(_gtv8, DEC))).toCharArray((RemoteXY.text_4), 11);<br />(String(&quot;&quot;)).toCharArray((RemoteXY.text_5), 11);<br />((String(_gtv52, DEC))).toCharArray((RemoteXY.text_6), 11);<br />((String((map(( (analogRead (0))), (0), (1023), (0), (10))), DEC))).toCharArray((RemoteXY.text_7), 11);<br />((String((map(( (analogRead (1))), (0), (1023), (0), (10))), DEC))).toCharArray((RemoteXY.text_8), 11);<br />((String((map(( (analogRead (2))), (0), (1023), (0), (10))), DEC))).toCharArray((RemoteXY.text_9), 11);<br />((String((map(( (analogRead (3))), (0), (1023), (0), (10))), DEC))).toCharArray((RemoteXY.text_10), 11);<br />RemoteXY.led_5_g = _swi14;<br />RemoteXY.led_6_g = _swi15;<br />RemoteXY.led_7_g = _swi16;<br />RemoteXY.led_8_b = _swi7;<br />RemoteXY.led_9_r = _swi8;<br />RemoteXY.led_10_b = _swi10;<br />RemoteXY.led_11_r = _swi11;<br />RemoteXY.led_12_b = _swi12;<br />RemoteXY.led_13_r = _swi13;<br />RemoteXY.led_14_r = _swi9;<br />((String((map(( (analogRead (4))), (0), (1023), (0), (10))), DEC))).toCharArray((RemoteXY.text_11), 11);<br />RemoteXY.led_15_r = _swi17;<br />(_gtv57).toCharArray((RemoteXY.text_12), 11);<br />(String(&quot;&quot;)).toCharArray((RemoteXY.text_13), 11);<br />(_gtv65).toCharArray((RemoteXY.text_14), 11);<br />(_gtv62).toCharArray((RemoteXY.text_15), 11);<br />(_gtv63).toCharArray((RemoteXY.text_16), 11);<br />(_gtv64).toCharArray((RemoteXY.text_17), 11);<br />RemoteXY.led_16_r = _swi4;<br />RemoteXY.led_17_r = _swi5;<br />_gtv17 = (RemoteXY.switch_1);<br />_gtv28 = (RemoteXY.switch_2);<br />_gtv29 = (RemoteXY.switch_3);<br />_gtv30 = (RemoteXY.switch_4);<br />_gtv31 = (RemoteXY.switch_5);<br />_gtv32 = (RemoteXY.switch_6);<br />_gtv18 = (RemoteXY.switch_7);<br />_gtv24 = (RemoteXY.switch_8);<br />_gtv25 = (RemoteXY.switch_9);<br />_gtv44 = ((RemoteXY.select_1) == 1);<br />_gtv26 = (RemoteXY.switch_10);<br />_gtv45 = ((RemoteXY.select_1) == 2);<br />_gtv23 = (RemoteXY.switch_11);<br />_gtv46 = ((RemoteXY.select_2) == 1);<br />_gtv47 = ((RemoteXY.select_2) == 2);<br />_gtv27 = (RemoteXY.switch_12);<br />_gtv56 = (RemoteXY.switch_13);<br />_gtv48 = ((RemoteXY.select_3) == 1);<br />_gtv49 = ((RemoteXY.select_3) == 2);</p><br /><p>if(_SV1CP2needSend) {<br />_SV1CP2needSend = 0;<br />Serial2.write (1);<br />Serial2.print (1);<br />Serial2.write (2);<br />Serial2.print (_SV1CP2);<br />Serial2.write (3);}if(_SV2CP2needSend) {<br />_SV2CP2needSend = 0;<br />Serial2.write (1);<br />Serial2.print (2);<br />Serial2.write (2);<br />Serial2.print (_SV2CP2);<br />Serial2.write (3);}if(_SV3CP2needSend) {<br />_SV3CP2needSend = 0;<br />Serial2.write (1);<br />Serial2.print (3);<br />Serial2.write (2);<br />Serial2.print (_SV3CP2);<br />Serial2.write (3);}if(_SV4CP2needSend) {<br />_SV4CP2needSend = 0;<br />Serial2.write (1);<br />Serial2.print (4);<br />Serial2.write (2);<br />Serial2.print (_SV4CP2);<br />Serial2.write (3);}if(_SV5CP2needSend) {<br />_SV5CP2needSend = 0;<br />Serial2.write (1);<br />Serial2.print (5);<br />Serial2.write (2);<br />Serial2.print (_SV5CP2);<br />Serial2.write (3);}if(_SV6CP2needSend) {<br />_SV6CP2needSend = 0;<br />Serial2.write (1);<br />Serial2.print (6);<br />Serial2.write (2);<br />Serial2.print (_SV6CP2);<br />Serial2.write (3);}if(_SV7CP2needSend) {<br />_SV7CP2needSend = 0;<br />Serial2.write (1);<br />Serial2.print (7);<br />Serial2.write (2);<br />Serial2.print (_SV7CP2);<br />Serial2.write (3);}if(_SV1CP1needSend) {<br />_SV1CP1needSend = 0;<br />Serial1.write (1);<br />Serial1.print (1);<br />Serial1.write (2);<br />Serial1.print (_SV1CP1);<br />Serial1.write (3);}if(_SV2CP1needSend) {<br />_SV2CP1needSend = 0;<br />Serial1.write (1);<br />Serial1.print (2);<br />Serial1.write (2);<br />Serial1.print (_SV2CP1);<br />Serial1.write (3);}if(_SV3CP1needSend) {<br />_SV3CP1needSend = 0;<br />Serial1.write (1);<br />Serial1.print (3);<br />Serial1.write (2);<br />Serial1.print (_SV3CP1);<br />Serial1.write (3);}if(_SV4CP1needSend) {<br />_SV4CP1needSend = 0;<br />Serial1.write (1);<br />Serial1.print (4);<br />Serial1.write (2);<br />Serial1.print (_SV4CP1);<br />Serial1.write (3);}if(_SV5CP1needSend) {<br />_SV5CP1needSend = 0;<br />Serial1.write (1);<br />Serial1.print (5);<br />Serial1.write (2);<br />Serial1.print (_SV5CP1);<br />Serial1.write (3);}if(_SV6CP1needSend) {<br />_SV6CP1needSend = 0;<br />Serial1.write (1);<br />Serial1.print (6);<br />Serial1.write (2);<br />Serial1.print (_SV6CP1);<br />Serial1.write (3);}</p><p>}<br />float&nbsp; _stringToFloat(String value)<br />&nbsp; {</p><p>&nbsp; return value.toFloat() ;<br />&nbsp; }<br />String&nbsp; _floatToStringWitRaz(float value, int raz)<br />{</p><p>&nbsp; return String(value,raz);<br />}<br />bool _isTimer(unsigned long startTime, unsigned long period )<br />&nbsp; {<br />&nbsp; unsigned long currentTime;<br />currentTime = millis();<br />if (currentTime&gt;= startTime) {return (currentTime&gt;=(startTime + period));} else {return (currentTime &gt;=(4294967295-startTime+period));}<br />&nbsp; }<br />void _readByteFromUART(byte data,int port)<br />{<br />if (port==1){ _sVFUPDPort1 = _ressiveByteFromUartForVariable(data, _sVFUPDPort1);}<br />if (port==2){ _sVFUPDPort2 = _ressiveByteFromUartForVariable(data, _sVFUPDPort2);}<br />}<br />struct&nbsp; _sVFUPD _ressiveByteFromUartForVariable(byte resData, struct _sVFUPD data)<br />{<br />if(_ressiveFromUartByteIsCommand(resData)){data = _nextStepRessiveVariableFromUart(resData, data); return data; }<br />data.data = data.data + char(resData); return data;<br />}<br />bool _ressiveFromUartByteIsCommand(byte data)<br />{<br /> if(data==1){return 1;}<br /> if(data==2){return 1;}<br /> if(data==3){return 1;}<br /> return 0;<br />}<br />struct&nbsp; _sVFUPD _nextStepRessiveVariableFromUart(byte resData, struct _sVFUPD data)<br />{<br /> if((resData==1)&amp;&amp;(data.mode==0)){data.mode=1; return data;}<br /> if((resData==2)&amp;&amp;(data.mode==1)){data.mode=2;&nbsp; data.index=data.data.toInt(); data.data=String(&quot;&quot;); return data;}<br /> if((resData==3)&amp;&amp;(data.mode==2)){data=_saveToVariableResiveFromUartVariable(data); return data;}<br />data.mode=0;&nbsp; &nbsp;data.data=String(&quot;&quot;); return data; <br />}<br />struct _sVFUPD _saveToVariableResiveFromUartVariable(struct _sVFUPD data)<br />{if((data.index==1)&amp;&amp;(data.port==2)){_RV1CP2 = (_stringToFloat(data.data));}if((data.index==2)&amp;&amp;(data.port==2)){_RV2CP2 = (_stringToFloat(data.data));}if((data.index==3)&amp;&amp;(data.port==2)){_RV3CP2 = (_stringToFloat(data.data));}if((data.index==5)&amp;&amp;(data.port==2)){_RV5CP2 = (_stringToFloat(data.data));}if((data.index==6)&amp;&amp;(data.port==2)){_RV6CP2 = (_stringToFloat(data.data));}if((data.index==6)&amp;&amp;(data.port==1)){_RV6CP1 = (_stringToFloat(data.data));}if((data.index==1)&amp;&amp;(data.port==1)){_RV1CP1 = (_stringToFloat(data.data));}if((data.index==2)&amp;&amp;(data.port==1)){_RV2CP1 = (_stringToFloat(data.data));}if((data.index==3)&amp;&amp;(data.port==1)){_RV3CP1 = (_stringToFloat(data.data));}if((data.index==4)&amp;&amp;(data.port==1)){_RV4CP1 = (_stringToFloat(data.data));}if((data.index==5)&amp;&amp;(data.port==1)){_RV5CP1 = (_stringToFloat(data.data));}if((data.index==7)&amp;&amp;(data.port==1)){_RV7CP1 = ((data.data).toInt());}if((data.index==8)&amp;&amp;(data.port==1)){_RV8CP1 = ((data.data).toInt());}<br />data.mode=0;&nbsp; &nbsp;data.data=String(&quot;&quot;); return data; <br />}<br />struct UB_260891097 _func_UB_260891097(struct UB_260891097 _ubInstans, int ubi_135616755, int ubi_251031219, int ubi_242487598, int ubi_153550548, int ubi_231079258, int ubi_78003274)<br />{<br />bool ubo_115169610 = _ubInstans.ubo_115169610;<br />bool _trgs1 = _ubInstans._trgs1;<br />if((((ubi_135616755)*(60))+(ubi_251031219)) &gt;= (((ubi_242487598)*(60))+(ubi_153550548))) _trgs1 = 1;<br />if((((ubi_135616755)*(60))+(ubi_251031219)) &gt;= (((ubi_231079258)*(60))+(ubi_78003274))) _trgs1 = 0;<br />ubo_115169610 = _trgs1;<br />_ubInstans.ubo_115169610 = ubo_115169610;<br />_ubInstans._trgs1 = _trgs1;<br />return _ubInstans;<br />}</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Sun, 17 Dec 2017 19:53:28 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1166#p1166</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1165#p1165</link>
			<description><![CDATA[<p>Как это сделать если я программирую через flprog?</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Sun, 17 Dec 2017 19:40:48 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1165#p1165</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1164#p1164</link>
			<description><![CDATA[<p>Разработка кода который работает совместно с RemoteXY имеет особенности. Если в вашем коде имеются какие либо задержки, например delay, циклы на которые уходят целые секунды, опросы датчиков которые работают не в фоновом режиме и требуют большого времени работы, и т.д., соответственно функция RemoteXY_Handler не вызывается так часто как это необходимо что бы успевать получать входящие пакеты данных. Буфер входящих пакетов у Arduino очень небольшой, входящие пакеты теряются и не обрабатываются. Все это приводит к обрыву связи.<br />Об этом так же говорится в статье по ссылке <a target="_blank" href="http://remotexy.com/ru/help/whatiscode/">http://remotexy.com/ru/help/whatiscode/</a><br />Необходимо изменить код программы таким образом что бы главный цикл программы выполнялся постоянно несколько раз в секунду. Думаю что для управления теплицей это вполне реально сделать.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sun, 17 Dec 2017 13:59:58 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1164#p1164</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1163#p1163</link>
			<description><![CDATA[<p>Я испытывал полный проект управления теплицей, попробую только код программы. Но это не решит вопроса. Мне нужен полный функционал.Как это решить? Могу отправить вам полный код программы, только я могу это сделать на эл почтовый адрес. Прошу дать его</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Sun, 17 Dec 2017 09:49:58 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1163#p1163</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1162#p1162</link>
			<description><![CDATA[<p>Вы испытываете проект без добавления какого либо своего кода? Только тот код который выдал редактор?<br />device not reply - означает что связь через облако была установлена, однако почему то на последующие запросы ответов нет.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sun, 17 Dec 2017 04:40:27 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1162#p1162</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1161#p1161</link>
			<description><![CDATA[<p>Попробовал создать еще один токен- проблему не решило. Ошибка времени ожидания и вылет. Пробую создавать проект с меньшим количеством переменных все пашет, на необходим именно с большим количеством. Как увеличить время ожидания подключения?Может это поможет? Связка Arduino Mega + ESP8266</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Sat, 16 Dec 2017 20:42:01 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1161#p1161</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1160#p1160</link>
			<description><![CDATA[<p>к вашему токену я подключаюсь без проблем мне же после полной переустановки библиотеки стал писать device not reply. Receive time out error, ну и дисконнект на токене.</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Sat, 16 Dec 2017 20:28:09 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1160#p1160</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1158#p1158</link>
			<description><![CDATA[<p>Попробуйте подключиться к токену f67fc1aeddce7bf9dfa88cafcb4055c3</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sat, 16 Dec 2017 09:32:52 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1158#p1158</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1157#p1157</link>
			<description><![CDATA[<p>Да, ваш проект у нас работает. Arduino Mega + ESP8266 подключенный к нашей точке доступа и выходом на облако. Т.е. через облако. Все три страницы вашего проекта работают. После обрывов связи подключение восстанавливается.<br />Проверьте, возможно у вас где то в памяти ПК осталась старая библиотека и именно она подтягивается при компиляции.<br />1. Удалите библиотеку полностью. Проверьте что она удалена попытавшись скомпилировать ваш скетч и получив ошибку.<br />2. Загрузите последнюю версию библиотеки.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sat, 16 Dec 2017 08:02:20 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1157#p1157</guid>
		</item>
		<item>
			<title><![CDATA[Re: проблема с подключением к облаку]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1156#p1156</link>
			<description><![CDATA[<p>не помогло, по прежнему вылет....</p>]]></description>
			<author><![CDATA[null@example.com (Volodia)]]></author>
			<pubDate>Fri, 15 Dec 2017 21:45:11 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1156#p1156</guid>
		</item>
	</channel>
</rss>
