<?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=398</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=398&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Старые примеры на новых железках.]]></description>
		<lastBuildDate>Thu, 01 Mar 2018 10:38:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Старые примеры на новых железках]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=1364#p1364</link>
			<description><![CDATA[<p>Добрый день, можете поделиться примерами реализации подобных функций?<br />Все примеры на сайте собраны на модулях связи, которые сейчас уже никто не использует.<br />При попытке переделать скетчи, ArduinoIDE сыпет ошибками.<br />Исходные железки NodeM, 4 Relay module, DHT22</p><p>////////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />////////////////////////////////////////////// </p><p>// определение режима соединения и подключение библиотеки RemoteXY&nbsp; <br />#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT<br />#include &lt;ESP8266WiFi.h&gt; </p><p>#include &lt;RemoteXY.h&gt; </p><p>// настройки соединения&nbsp; <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>// конфигурация интерфейса&nbsp; &nbsp;<br />#pragma pack(push, 1) <br />uint8_t RemoteXY_CONF[] = <br />&nbsp; { 255,4,0,22,0,181,0,8,8,1,<br />&nbsp; 129,0,2,4,18,6,31,84,101,109,<br />&nbsp; 112,58,0,129,0,2,11,16,6,31,<br />&nbsp; 72,117,109,58,0,67,4,22,5,20,<br />&nbsp; 5,94,8,11,67,4,22,12,20,5,<br />&nbsp; 135,8,11,1,0,45,80,12,12,190,<br />&nbsp; 31,66,0,129,0,2,83,22,6,31,<br />&nbsp; 208,151,208,178,208,190,208,189,208,190,<br />&nbsp; 208,186,0,129,0,2,25,29,6,31,<br />&nbsp; 208,161,208,178,208,181,209,130,32,49,<br />&nbsp; 0,129,0,2,58,43,6,31,208,161,<br />&nbsp; 208,178,208,181,209,130,32,51,0,129,<br />&nbsp; 0,2,42,33,6,31,208,161,208,178,<br />&nbsp; 208,181,209,130,32,50,0,2,0,39,<br />&nbsp; 23,22,11,133,26,31,31,79,78,0,<br />&nbsp; 79,70,70,0,2,0,39,39,22,11,<br />&nbsp; 133,26,31,31,79,78,0,79,70,70,<br />&nbsp; 0,2,0,39,55,22,11,133,26,31,<br />&nbsp; 31,79,78,0,79,70,70,0 }; <br />&nbsp; &nbsp;<br />// структура определяет все переменные вашего интерфейса управления&nbsp; <br />struct { </p><p>&nbsp; &nbsp; // input variable<br />&nbsp; uint8_t button_1; // =1 если кнопка нажата, иначе =0 <br />&nbsp; uint8_t switch_1; // =1 если переключатель включен и =0 если отключен <br />&nbsp; uint8_t switch_2; // =1 если переключатель включен и =0 если отключен <br />&nbsp; uint8_t switch_3; // =1 если переключатель включен и =0 если отключен </p><p>&nbsp; &nbsp; // output variable<br />&nbsp; char temp_1[11];&nbsp; // =строка UTF8 оканчивающаяся нулем <br />&nbsp; char hum_1[11];&nbsp; // =строка UTF8 оканчивающаяся нулем </p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0 </p><p>} RemoteXY; <br />#pragma pack(pop) </p><p>///////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />/////////////////////////////////////////////</p>]]></description>
			<author><![CDATA[null@example.com (stepa)]]></author>
			<pubDate>Thu, 01 Mar 2018 10:38:40 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=1364#p1364</guid>
		</item>
	</channel>
</rss>
