<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Need Help, Timeout Wifi Connections at Esp8266 and mobile app]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1574&amp;type=atom" />
	<updated>2022-12-10T15:07:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1574</id>
		<entry>
			<title type="html"><![CDATA[Re: Need Help, Timeout Wifi Connections at Esp8266 and mobile app]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4898#p4898" />
			<content type="html"><![CDATA[<p>Don&#039;t change the variables in the RemoteXY struct. Copy it from the editor as is and do not change it.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2022-12-10T15:07:45Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4898#p4898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Need Help, Timeout Wifi Connections at Esp8266 and mobile app]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4895#p4895" />
			<content type="html"><![CDATA[<p>// The code works for 5 sec. , after that the wifi connections interrupts<br />// I work with an rgb led strip, who should activated the led strip in colour red, when i push the button on the app.</p><p>//Maybe the line &quot; void ledleiste(uint32_t color) { &quot; works not cause, i havnt marked the color as an remotexy</p><br /><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT<br />#include &lt;ESP8266WiFi.h&gt;<br />#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_WIFI_SSID &quot;MagnWallR&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;Bodensee9&quot;<br />#define REMOTEXY_SERVER_PORT 6377</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =&nbsp; &nbsp;// 27 bytes<br />&nbsp; { 255,1,0,0,0,20,0,16,179,1,2,0,41,12,14,7,2,26,1,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; uint8_t r;<br />&nbsp; uint8_t g;<br />&nbsp; uint8_t b;<br />&nbsp; uint8_t i;</p><br /><p>&nbsp; <br />} 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>#include &lt;Adafruit_NeoPixel.h&gt;<br />Adafruit_NeoPixel strip(10, 12, NEO_GRB + NEO_KHZ800);</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; strip.begin();&nbsp; </p><p>&nbsp; <br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();</p><p>if(RemoteXY.switch_1==1){</p><p>&nbsp; RemoteXY.r =150;<br />&nbsp; RemoteXY.g =0;<br />&nbsp; RemoteXY.b =0;</p><p>&nbsp; ledleiste(strip.Color(RemoteXY.r ,RemoteXY.g, RemoteXY.b));<br />&nbsp; strip.show();</p><p>}else{<br />&nbsp; RemoteXY.r =0;<br />&nbsp; RemoteXY.g =0;<br />&nbsp; RemoteXY.b =0;</p><p>&nbsp; ledleiste(strip.Color(RemoteXY.r ,RemoteXY.g, RemoteXY.b));<br />&nbsp; strip.show();</p><p>}<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay() </p><p>}</p><p>void ledleiste(uint32_t color) {<br />&nbsp; <br />&nbsp; for(RemoteXY.i=0; RemoteXY.i&lt;strip.numPixels(); RemoteXY.i++) <br />&nbsp; &nbsp; strip.setPixelColor(RemoteXY.i, color);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[florent.b]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2279</uri>
			</author>
			<updated>2022-12-09T20:21:22Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4895#p4895</id>
		</entry>
</feed>
