<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — No more connection with WiFi after new codes added with NodeMCU]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=420&amp;type=atom" />
	<updated>2018-03-18T10:07:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=420</id>
		<entry>
			<title type="html"><![CDATA[Re: No more connection with WiFi after new codes added with NodeMCU]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1425#p1425" />
			<content type="html"><![CDATA[<p>I think you use the wrong pins. When you write &#039;6&#039; it means GPIO6, but when you write &#039;D6&#039; (as written on the nodemcu) it actually means GPIO12. GPIO6, 7 and 8 are reserved and connected to the flash chip, this is most likely your problem.</p><p>Try:<br /></p><div class="codebox"><pre><code>#define Pin_A D6
#define Pin_B D7
#define Pin_C D8</code></pre></div><p>Also remove these delays.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2018-03-18T10:07:28Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1425#p1425</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[No more connection with WiFi after new codes added with NodeMCU]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1423#p1423" />
			<content type="html"><![CDATA[<p>I have found RemoteXY some days ago and it is a very interesting and useful application. I have tried to generate the code for NodeMCU V3 with the control Select. I have uploaded the code in to MCU and all went well. Second step has been to add a simple code in order to test the functionality of Select control function. I have defined 3 constants in order to define 3 different pin as output pin then with a switch-case structure it will set HIGH the pin in correspondence the selection made by controller. After this modification the board weren&#039;t no more possible to connected on WiFi network. As test I have commented all the codes added by me and I have added one line per time. Every time I have uploaded the code on the board in order to check the functionality. The problem is appered after adding the pinMode declaration:</p><p>pinMode(Pin_A, OUTPUT);<br />&nbsp; pinMode(Pin_B, OUTPUT);<br />&nbsp; pinMode(Pin_C, OUTPUT);</p><p>Follows all the code, anyone have some advice?</p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__ESP8266WIFI_LIB<br />#include &lt;ESP8266WiFi.h&gt;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_WIFI_SSID &quot;FRITZ!Box 7490&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;32189651531398700841&quot;<br />#define REMOTEXY_SERVER_PORT 6377</p><br /><p>#define Pin_A 6<br />#define Pin_B 7<br />#define Pin_C 8</p><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,1,0,0,0,11,0,8,13,1,<br />&nbsp; 3,3,29,36,8,22,2,26 };<br />&nbsp; <br />// this structure defines all the variables of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variable<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 /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); </p><p>&nbsp; pinMode(Pin_A, OUTPUT);<br />&nbsp; pinMode(Pin_B, OUTPUT);<br />&nbsp; pinMode(Pin_C, OUTPUT);<br />&nbsp; <br />&nbsp; // TODO you setup code</p><p>&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />switch (RemoteXY.select_1) {<br />&nbsp; case 0:<br />&nbsp; &nbsp; digitalWrite(Pin_B, LOW);&nbsp; &nbsp; <br />&nbsp; &nbsp; digitalWrite(Pin_C, LOW);&nbsp; &nbsp; <br />&nbsp; &nbsp; digitalWrite(Pin_A, HIGH);<br />&nbsp; &nbsp; delay(1000);<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; break;<br />&nbsp; case 1:<br />&nbsp; digitalWrite(Pin_A, LOW);&nbsp; &nbsp; <br />&nbsp; &nbsp; digitalWrite(Pin_C, LOW);&nbsp; <br />&nbsp; &nbsp; digitalWrite(Pin_B, HIGH);<br />&nbsp; &nbsp; delay(1000);<br />&nbsp; &nbsp; break;<br />&nbsp; case 2:<br />&nbsp; &nbsp; digitalWrite(Pin_A, LOW);&nbsp; &nbsp; <br />&nbsp; &nbsp; digitalWrite(Pin_B, LOW);&nbsp; <br />&nbsp; &nbsp; digitalWrite(Pin_C, HIGH);<br />&nbsp; &nbsp; delay(1000);</p><p>&nbsp; &nbsp; break;<br />}<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer</p><br /><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[mttchi]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=590</uri>
			</author>
			<updated>2018-03-17T23:46:59Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1423#p1423</id>
		</entry>
</feed>
