<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GatewayESP8266 Compile problem.]]></title><description><![CDATA[<p dir="auto">I,m having a problem compiling GatewayESP8266. I downloaded the latest libraries and started with a fresh copy of the Gateway program. I put in my WiFi and gateway info and it complied. I then enabled UDP and I got the expected error that it needed a MY_CONTROLLER_IP_ADDRESS. I added the address of Vera and that's when things went sideways. I got the following error.</p>
<p dir="auto">In file included from C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/MySensors.h:200:0,</p>
<pre><code>             from C:\Users\RWoerz\AppData\Local\Temp\arduino_modified_sketch_73845\GatewayESP8266.ino:134:
</code></pre>
<p dir="auto">C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportAvailable()':</p>
<p dir="auto">C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:302:35: error: no match for 'operator[]' (operand types are 'inputBuffer' and 'int')</p>
<p dir="auto">_ethernetServer.read(inputString[0].string, MY_GATEWAY_MAX_RECEIVE_LENGTH);</p>
<pre><code>                               ^
</code></pre>
<p dir="auto">C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:303:14: error: no match for 'operator[]' (operand types are 'inputBuffer' and 'int')</p>
<p dir="auto">inputString[0].string[packet_size] = 0;</p>
<pre><code>          ^
</code></pre>
<p dir="auto">In file included from C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/MySensors.h:28:0,</p>
<pre><code>             from C:\Users\RWoerz\AppData\Local\Temp\arduino_modified_sketch_73845\GatewayESP8266.ino:134:
</code></pre>
<p dir="auto">C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:304:55: error: no match for 'operator[]' (operand types are 'inputBuffer' and 'int')</p>
<p dir="auto">debug(PSTR("UDP packet received: %s\n"), inputString[0].string);</p>
<pre><code>                                                   ^
</code></pre>
<p dir="auto">C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/core/MySensorsCore.h:90:40: note: in definition of macro 'debug'</p>
<p dir="auto">#define debug(x,...) hwDebugPrint(x, ##<strong>VA_ARGS</strong>)   //!&lt; debug, to be removed (follow-up PR)</p>
<pre><code>                                    ^
</code></pre>
<p dir="auto">In file included from C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/MySensors.h:200:0,</p>
<pre><code>             from C:\Users\RWoerz\AppData\Local\Temp\arduino_modified_sketch_73845\GatewayESP8266.ino:134:
</code></pre>
<p dir="auto">C:\Users\RWoerz\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:305:58: error: no match for 'operator[]' (operand types are 'inputBuffer' and 'int')</p>
<p dir="auto">const bool ok = protocolParse(_ethernetMsg, inputString[0].string);</p>
<pre><code>                                                      ^
</code></pre>
<p dir="auto">Multiple libraries were found for "WiFiUdp.h"<br />
Used: C:\Users\RWoerz\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi<br />
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi<br />
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi<br />
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi<br />
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi<br />
Multiple libraries were found for "MySensors.h"<br />
Used: C:\Users\RWoerz\Documents\Arduino\libraries\MySensors<br />
Not used: C:\Users\RWoerz\Documents\Arduino\libraries\arduino_343871<br />
Not used: C:\Users\RWoerz\Documents\Arduino\libraries\arduino_271619<br />
exit status 1<br />
Error compiling for board NodeMCU 1.0 (ESP-12E Module).</p>
]]></description><link>https://forum.mysensors.org/topic/7865/gatewayesp8266-compile-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 19:13:12 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7865.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Oct 2017 16:54:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GatewayESP8266 Compile problem. on Thu, 26 Oct 2017 00:32:48 GMT]]></title><description><![CDATA[<p dir="auto">Thanks that seems to have worked. This is what is needed.<br />
In the file MyGatewayTransportEthernet.cpp around line 301 the following changes need to be made. All the [0]'s need to be removed.</p>
<p dir="auto">Old:<br />
#if defined(MY_GATEWAY_ESP8266)<br />
_ethernetServer.read(inputString[0].string, MY_GATEWAY_MAX_RECEIVE_LENGTH);<br />
inputString[0].string[packet_size] = 0;<br />
debug(PSTR("UDP packet received: %s\n"), inputString[0].string);<br />
const bool ok = protocolParse(_ethernetMsg, inputString[0].string);<br />
#else</p>
<p dir="auto">New:<br />
#if defined(MY_GATEWAY_ESP8266)<br />
_ethernetServer.read(inputString.string, MY_GATEWAY_MAX_RECEIVE_LENGTH);<br />
inputString.string[packet_size] = 0;<br />
debug(PSTR("UDP packet received: %s\n"), inputString.string);<br />
const bool ok = protocolParse(_ethernetMsg, inputString.string);<br />
#else</p>
]]></description><link>https://forum.mysensors.org/post/78210</link><guid isPermaLink="true">https://forum.mysensors.org/post/78210</guid><dc:creator><![CDATA[RWoerz]]></dc:creator><pubDate>Thu, 26 Oct 2017 00:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to GatewayESP8266 Compile problem. on Wed, 25 Oct 2017 18:17:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rwoerz" aria-label="Profile: RWoerz">@<bdi>RWoerz</bdi></a> looks similar to <a href="https://github.com/mysensors/MySensors/issues/919" rel="nofollow ugc">https://github.com/mysensors/MySensors/issues/919</a></p>
]]></description><link>https://forum.mysensors.org/post/78195</link><guid isPermaLink="true">https://forum.mysensors.org/post/78195</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 25 Oct 2017 18:17:47 GMT</pubDate></item></channel></rss>