<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Wifimanager Help]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1255&amp;type=atom" />
	<updated>2021-02-26T10:21:39Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1255</id>
		<entry>
			<title type="html"><![CDATA[Wifimanager Help]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3587#p3587" />
			<content type="html"><![CDATA[<p>I want to add wifimanage so i can chose the wifi then remotexy work<br />can anyone edit this simple sketch to help me<br />thank u</p><br /><br /><p>#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD<br />#include &lt;ESP8266WiFi.h&gt;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_WIFI_SSID &quot;YOUR_SSID&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;YOUR_PASS&quot;<br />#define REMOTEXY_CLOUD_SERVER &quot;&quot;<br />#define REMOTEXY_CLOUD_PORT 6376<br />#define REMOTEXY_CLOUD_TOKEN &quot;&quot;</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,1,0,0,0,20,0,10,13,0,<br />&nbsp; 2,0,39,24,22,11,2,26,31,31,<br />&nbsp; 79,78,0,79,70,70,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 switch_1; // =1 if switch ON and =0 if OFF </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><p>#define PIN_SWITCH_1 D0</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_SWITCH_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_SWITCH_1, (RemoteXY.switch_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[johnwahba2002]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1697</uri>
			</author>
			<updated>2021-02-26T10:21:39Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3587#p3587</id>
		</entry>
</feed>
