<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Can't load GUI when connecting to NodeMCU as AP]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=800</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=800&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Can't load GUI when connecting to NodeMCU as AP.]]></description>
		<lastBuildDate>Wed, 21 Aug 2019 20:42:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Can't load GUI when connecting to NodeMCU as AP]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2354#p2354</link>
			<description><![CDATA[<p>Hello,</p><p>&nbsp; &nbsp; In my project i made a simple interface with a joystick, a slider and a selector to control a RC Car.</p><p>&nbsp; &nbsp; As i am new to this app i was going to test the components and wanted to sart by turning leds on and off through the selector.</p><p>&nbsp; &nbsp; The NodeMCU created the WiFi SSID, i successfully connected the the NodeMCU as AP with my Android Phone but when i connect within the RemoteXY App using Wi-Fi Point it gets stuck in the &quot;Connecting&quot; Screen with the circle and just wont load the interface.</p><p>Here&#039;s my test code.<br />/*<br />&nbsp; &nbsp;-- RC CAR --<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;This source code of graphical user interface <br />&nbsp; &nbsp;has been generated automatically by RemoteXY editor.<br />&nbsp; &nbsp;To compile this code using RemoteXY library 2.3.5 or later version <br />&nbsp; &nbsp;download by link <a target="_blank" href="http://remotexy.com/en/library/">http://remotexy.com/en/library/</a><br />&nbsp; &nbsp;To connect using RemoteXY mobile app by link <a target="_blank" href="http://remotexy.com/en/download/">http://remotexy.com/en/download/</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;- for ANDROID 4.3.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.3.5 or later version;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;This source code is free software; you can redistribute it and/or<br />&nbsp; &nbsp;modify it under the terms of the GNU Lesser General Public<br />&nbsp; &nbsp;License as published by the Free Software Foundation; either<br />&nbsp; &nbsp;version 2.1 of the License, or (at your option) any later version.&nbsp; &nbsp; <br />*/</p><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;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <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>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,4,0,0,0,63,0,8,13,0,<br />&nbsp; 5,0,65,21,30,30,2,26,31,4,<br />&nbsp; 0,8,2,15,59,2,26,3,2,43,<br />&nbsp; 25,12,22,2,26,129,0,2,3,31,<br />&nbsp; 6,50,86,101,108,111,99,105,100,97,<br />&nbsp; 100,101,0,129,0,68,13,22,6,50,<br />&nbsp; 68,105,114,101,195,167,195,163,111,0 };<br />&nbsp; <br />// this structure defines all the variables of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variable<br />&nbsp; int8_t joystick_1_x; // =-100..100 x-coordinate joystick position <br />&nbsp; int8_t joystick_1_y; // =-100..100 y-coordinate joystick position <br />&nbsp; int8_t slider_1; // =0..100 slider position <br />&nbsp; uint8_t select_1; // =0 if select position A, =1 if position B, =2 if position C, ... </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><br /><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); </p><p>&nbsp; pinMode(D2,OUTPUT);<br />&nbsp; pinMode(D3,OUTPUT);<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();</p><p>&nbsp; if(RemoteXY.select_1==0){<br />&nbsp; &nbsp; digitalWrite(D2,HIGH);<br />&nbsp; &nbsp; digitalWrite(D3,LOW);<br />&nbsp; }<br />&nbsp; else{<br />&nbsp; &nbsp; digitalWrite(D2,LOW);<br />&nbsp; &nbsp; digitalWrite(D3,HIGH);<br />&nbsp; }<br />&nbsp; <br />}</p>]]></description>
			<author><![CDATA[null@example.com (daniloy)]]></author>
			<pubDate>Wed, 21 Aug 2019 20:42:09 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2354#p2354</guid>
		</item>
	</channel>
</rss>
