<?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[Ethernet gateway compile error]]></title><description><![CDATA[<p dir="auto">Hi, could you please help me solv this error? I try compile GatewayW5100.ino from offical site and Arduino IDE show this error:<br />
In file included from C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:23:0,</p>
<pre><code>             from C:\Users\M\Documents\Arduino\libraries\MySensors-master/MySensors.h:261,

             from C:\Users\M\Desktop\GatewayW5100\GatewayW5100.ino:116:
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.h:34:31: error: 'SPI_MODE0' was not declared in this scope</p>
<p dir="auto">#define MY_RF24_SPI_DATA_MODE SPI_MODE0</p>
<pre><code>                           ^
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.h:38:76: note: in expansion of macro 'MY_RF24_SPI_DATA_MODE'</p>
<p dir="auto">SoftSPI&lt;MY_SOFT_SPI_MISO_PIN, MY_SOFT_SPI_MOSI_PIN, MY_SOFT_SPI_SCK_PIN, MY_RF24_SPI_DATA_MODE&gt; _SPI;</p>
<pre><code>                                                                        ^
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.h:38:97: error: template argument 4 is invalid</p>
<p dir="auto">SoftSPI&lt;MY_SOFT_SPI_MISO_PIN, MY_SOFT_SPI_MOSI_PIN, MY_SOFT_SPI_SCK_PIN, MY_RF24_SPI_DATA_MODE&gt; _SPI;</p>
<pre><code>                                                                                             ^
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.h:38:103: error: invalid type in declaration before ';' token</p>
<p dir="auto">SoftSPI&lt;MY_SOFT_SPI_MISO_PIN, MY_SOFT_SPI_MOSI_PIN, MY_SOFT_SPI_SCK_PIN, MY_RF24_SPI_DATA_MODE&gt; _SPI;</p>
<pre><code>                                                                                                   ^
</code></pre>
<p dir="auto">In file included from C:\Users\M\Documents\Arduino\libraries\MySensors-master/MySensors.h:261:0,</p>
<pre><code>             from C:\Users\M\Desktop\GatewayW5100\GatewayW5100.ino:116:
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp: In function 'uint8_t RF24_spiMultiByteTransfer(uint8_t, uint8_t*, uint8_t, bool)':</p>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:44:24: error: request for member 'transfer' in '_SPI', which is of non-class type 'int'</p>
<p dir="auto">uint8_t status = _SPI.transfer( cmd );</p>
<pre><code>                    ^
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:47:18: error: request for member 'transfer' in '_SPI', which is of non-class type 'int'</p>
<pre><code>status = _SPI.transfer( NOP );

              ^
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:49:24: error: request for member 'transfer' in '_SPI', which is of non-class type 'int'</p>
<p dir="auto">} else status = _SPI.transfer(*current++);</p>
<pre><code>                    ^
</code></pre>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp: In function 'bool RF24_initialize()':</p>
<p dir="auto">C:\Users\M\Documents\Arduino\libraries\MySensors-master/drivers/RF24/RF24.cpp:261:7: error: request for member 'begin' in '_SPI', which is of non-class type 'int'</p>
<p dir="auto">_SPI.begin();</p>
<pre><code>   ^
</code></pre>
<p dir="auto">exit status 1<br />
Nastala chyba při kompilaci u desky Arduino Nano.Thanks.</p>
]]></description><link>https://forum.mysensors.org/topic/5159/ethernet-gateway-compile-error</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 15:42:53 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/5159.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Oct 2016 15:17:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ethernet gateway compile error on Sun, 27 Nov 2016 17:35:39 GMT]]></title><description><![CDATA[<p dir="auto">Thank's!</p>
<p dir="auto">I downloaded the development version of the library and installed, seems to work fine and compiles without errors (except from the MY_LEDS_BLINKING_FEATURE which I removed)</p>
]]></description><link>https://forum.mysensors.org/post/53438</link><guid isPermaLink="true">https://forum.mysensors.org/post/53438</guid><dc:creator><![CDATA[miljume]]></dc:creator><pubDate>Sun, 27 Nov 2016 17:35:39 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Thu, 24 Nov 2016 22:03:17 GMT]]></title><description><![CDATA[<p dir="auto">You can either use the Library Manager to install MySensors 2.0 or download the development (2.1.0.beta) branch from github if you want the latest bugfixes and features.</p>
]]></description><link>https://forum.mysensors.org/post/53300</link><guid isPermaLink="true">https://forum.mysensors.org/post/53300</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Thu, 24 Nov 2016 22:03:17 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Thu, 24 Nov 2016 21:43:24 GMT]]></title><description><![CDATA[<p dir="auto">I only used the code that is written here: <a href="https://www.mysensors.org/build/ethernet_gateway" rel="nofollow ugc">https://www.mysensors.org/build/ethernet_gateway</a>. Have not changed anything at all</p>
<p dir="auto">Could it be that I have a mixup between old and new library files from Mysensors (i.e. old mysensors.h)?</p>
<p dir="auto">I didn't find a description on how to upgrade the library files for Mysensors so it might be that I did someting wrong</p>
]]></description><link>https://forum.mysensors.org/post/53299</link><guid isPermaLink="true">https://forum.mysensors.org/post/53299</guid><dc:creator><![CDATA[miljume]]></dc:creator><pubDate>Thu, 24 Nov 2016 21:43:24 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Thu, 24 Nov 2016 21:18:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miljume" aria-label="Profile: miljume">@<bdi>miljume</bdi></a></p>
<p dir="auto">Why would you put the RF24 library in the mix?</p>
<p dir="auto">The MySensors library has everything needed bundled for communication over the NRF24L01 radio.</p>
]]></description><link>https://forum.mysensors.org/post/53298</link><guid isPermaLink="true">https://forum.mysensors.org/post/53298</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Thu, 24 Nov 2016 21:18:06 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Thu, 24 Nov 2016 19:49:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">I have used the version on the build page for ethernet gateway and used the last version of RF24 library for maniacbug together with Mysensors 2.0 library</p>
<p dir="auto">But I still get a bunch of these errors when compiling</p>
<pre><code>MySensors.h:261: In file included from
EthernetGateway.ino:115: from
 
RF24.cpp: 25:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t MY_RF24_BASE_ADDR[MY_RF24_ADDR_WIDTH] = { MY_RF24_BASE_RADIO_ID }
 
RF24.cpp: 26:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t MY_RF24_NODE_ADDRESS = AUTO
 
RF24.cpp: 28:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_csn(bool level) {
 
RF24.cpp: 32:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_ce(bool level) {
 
RF24.cpp: 36:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_spiMultiByteTransfer(uint8_t cmd, uint8_t* buf, uint8_t len, bool aReadMode) {
 
RF24.cpp: 60:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_spiByteTransfer(uint8_t cmd) {
 
RF24.cpp: 64:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_RAW_readByteRegister(uint8_t cmd) {
 
RF24.cpp: 70:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_RAW_writeByteRegister(uint8_t cmd, uint8_t value) {
 
RF24.cpp: 75:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_flushRX(void) {
 
RF24.cpp: 80:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_flushTX(void) {
 
RF24.cpp: 85:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_getStatus(void) {
 
RF24.cpp: 89:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setChannel(uint8_t channel) {
 
RF24.cpp: 93:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setRetries(uint8_t retransmitDelay, uint8_t retransmitCount) {
 
RF24.cpp: 97:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setAddressWidth(uint8_t width) {
 
RF24.cpp: 101:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setRFSetup(uint8_t RFsetup) {
 
RF24.cpp: 105:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setFeature(uint8_t feature) {
 
RF24.cpp: 109:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setPipe(uint8_t pipe) {
 
RF24.cpp: 113:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setAutoACK(uint8_t pipe) {
 
RF24.cpp: 117:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setDynamicPayload(uint8_t pipe) {
 
RF24.cpp: 121:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setRFConfiguration(uint8_t configuration) {
 
RF24.cpp: 125:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setPipeAddress(uint8_t pipe, uint8_t* address, uint8_t width) {
 
RF24.cpp: 129:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setPipeLSB(uint8_t pipe, uint8_t LSB) {
 
RF24.cpp: 133:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setStatus(uint8_t status) {
 
RF24.cpp: 136:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_enableFeatures(void) {
 
RF24.cpp: 140:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_openWritingPipe(uint8_t recipient) {
 
RF24.cpp: 147:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_startListening(void) {
 
RF24.cpp: 157:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_stopListening(void) {
 
RF24.cpp: 167:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_powerDown(void) {
 
RF24.cpp: 173:1: error: 'LOCAL' does not name a type
   LOCAL bool RF24_sendMessage( uint8_t recipient, const void* buf, uint8_t len ) {
 
RF24.cpp: 208:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_getDynamicPayloadSize(void) {
 
RF24.cpp: 220:1: error: 'LOCAL' does not name a type
   LOCAL bool RF24_isDataAvailable() {
 
RF24.cpp: 226:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_readMessage( void* buf) {
 
RF24.cpp: 235:1: error: 'LOCAL' does not name a type
   LOCAL void RF24_setNodeAddress(uint8_t address) {
 
RF24.cpp: 245:1: error: 'LOCAL' does not name a type
   LOCAL uint8_t RF24_getNodeID(void) {
 
RF24.cpp: 249:1: error: 'LOCAL' does not name a type
   LOCAL bool RF24_sanityCheck(void) {
 
RF24.cpp: 256:1: error: 'LOCAL' does not name a type
   LOCAL bool RF24_initialize(void) {
 
MyTransportNRF24.cpp:22: In file included from
MySensors.h:262: from
EthernetGateway.ino:115: from
 
RF24.h: In function void setup()
 
RF24.h: 121:6: error: redefinition of 'void setup()
   void setup()
 
RF24.cpp:23: In file included from
MySensors.h:261: from
EthernetGateway.ino:115: from
RF24.h:121: note  void setup() previously defined here
   void setup()
 
MyTransportNRF24.cpp:22: In file included from
MySensors.h:262: from
EthernetGateway.ino:115: from
 
RF24.h: In function void loop()
 
RF24.h: 125:6: error: redefinition of 'void loop()
   void loop() {
 
RF24.cpp:23: In file included from
MySensors.h:261: from
EthernetGateway.ino:115: from
RF24.h:125: note  void loop() previously defined here
   void loop() {
 
MySensors.h:262: In file included from
EthernetGateway.ino:115: from
 
MyTransportNRF24.cpp: In function bool transportInit()
 
MyTransportNRF24.cpp: 44:25: error: 'RF24_initialize' was not declared in this scope
   return RF24_initialize()
 
MyTransportNRF24.cpp: In function void transportSetAddress(uint8_t)
 
MyTransportNRF24.cpp: 48:29: error: 'RF24_setNodeAddress' was not declared in this scope
   RF24_setNodeAddress(address)
 
MyTransportNRF24.cpp: 49:22: error: 'RF24_startListening' was not declared in this scope
   RF24_startListening()
 
MyTransportNRF24.cpp: In function uint8_t transportGetAddress()
 
MyTransportNRF24.cpp: 53:24: error: 'RF24_getNodeID' was not declared in this scope
   return RF24_getNodeID()
 
MyTransportNRF24.cpp: In function bool transportSend(uint8_t, const void*, uint8_t)
 
MyTransportNRF24.cpp: 67:56: error: 'RF24_sendMessage' was not declared in this scope
   bool status = RF24_sendMessage( recipient, data, len )
 
MyTransportNRF24.cpp: In function bool transportAvailable()
 
MyTransportNRF24.cpp: 74:36: error: 'RF24_isDataAvailable' was not declared in this scope
   bool avail = RF24_isDataAvailable()
 
MyTransportNRF24.cpp: In function bool transportSanityCheck()
 
MyTransportNRF24.cpp: 79:26: error: 'RF24_sanityCheck' was not declared in this scope
   return RF24_sanityCheck()
 
MyTransportNRF24.cpp: In function uint8_t transportReceive(void*)
 
MyTransportNRF24.cpp: 83:37: error: 'RF24_readMessage' was not declared in this scope
   uint8_t len = RF24_readMessage(data)
 
MyTransportNRF24.cpp: In function void transportPowerDown()
 
MyTransportNRF24.cpp: 94:17: error: 'RF24_powerDown' was not declared in this scope
   RF24_powerDown()
 
MySensors.h:288: In file included from
EthernetGateway.ino:115: from
 
MySensorsCore.cpp: In function void _process()
 
MySensorsCore.cpp: 39:15: error: 'ledsProcess' was not declared in this scope
   ledsProcess()
 
MySensorsCore.cpp: In function void _infiniteLoop()
 
MySensorsCore.cpp: 62:16: error: 'ledsProcess' was not declared in this scope
   ledsProcess()
 
MySensorsCore.cpp: In function void _begin()
 
MySensorsCore.cpp: 79:12: error: 'ledsInit' was not declared in this scope
   ledsInit()
 
EthernetGateway.ino: In function void setup()
 
EthernetGateway.ino: 121:6: error: redefinition of 'void setup()
   void setup()
 
RF24.cpp:23: In file included from
MySensors.h:261: from
EthernetGateway.ino:115: from
RF24.h:121: note  void setup() previously defined here
   void setup()
 
EthernetGateway.ino: In function void loop()
 
EthernetGateway.ino: 125:6: error: redefinition of 'void loop()
   void loop() {
 
RF24.cpp:23: In file included from
MySensors.h:261: from
EthernetGateway.ino:115: from
RF24.h:125: note  void loop() previously defined here
   void loop() {
Error compiling project sources
</code></pre>
<p dir="auto">Anyone that can tell me why?</p>
<p dir="auto">Regards,<br />
Mikael</p>
]]></description><link>https://forum.mysensors.org/post/53294</link><guid isPermaLink="true">https://forum.mysensors.org/post/53294</guid><dc:creator><![CDATA[miljume]]></dc:creator><pubDate>Thu, 24 Nov 2016 19:49:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Sat, 22 Oct 2016 21:06:29 GMT]]></title><description><![CDATA[<p dir="auto">Two build pages (<a href="https://www.mysensors.org/build/ethernet_gateway" rel="nofollow ugc">ethernet gateway</a> and <a href="https://www.mysensors.org/build/battery" rel="nofollow ugc">battery powered sensors</a>) used the development version of sketches, instead of the master version. I have updated them now.</p>
]]></description><link>https://forum.mysensors.org/post/50951</link><guid isPermaLink="true">https://forum.mysensors.org/post/50951</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Sat, 22 Oct 2016 21:06:29 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Sat, 22 Oct 2016 20:51:14 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for reporting this.</p>
<p dir="auto">The build pages currently use the development branch of MySensors, and therefore require the development version of the MySensors library. I understand that this is confusing and I'll discuss with the core team.</p>
<p dir="auto">In the meanwhile, either:</p>
<ul>
<li>use MySensors 2.0 with the sketches from master (example: <a href="https://github.com/mysensors/MySensors/blob/master/examples/GatewayW5100/GatewayW5100.ino" rel="nofollow ugc">https://github.com/mysensors/MySensors/blob/master/examples/GatewayW5100/GatewayW5100.ino</a> )</li>
</ul>
<p dir="auto">OR</p>
<ul>
<li>use MySensors development branch from github with the sketches from the build pages/development branch on github</li>
</ul>
<p dir="auto">Sorry for the confusion.</p>
]]></description><link>https://forum.mysensors.org/post/50950</link><guid isPermaLink="true">https://forum.mysensors.org/post/50950</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Sat, 22 Oct 2016 20:51:14 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Sat, 22 Oct 2016 20:37:37 GMT]]></title><description><![CDATA[<p dir="auto">I've got the same error but the thing missing is incluse spi.h somewhere below...</p>
]]></description><link>https://forum.mysensors.org/post/50949</link><guid isPermaLink="true">https://forum.mysensors.org/post/50949</guid><dc:creator><![CDATA[Sander Stolk]]></dc:creator><pubDate>Sat, 22 Oct 2016 20:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Ethernet gateway compile error on Sat, 22 Oct 2016 20:17:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marek-b%C4%9Blu%C5%A1a" aria-label="Profile: Marek-Běluša">@<bdi>Marek-Běluša</bdi></a>  You do not appear to have installed the MySensors library correctly.  Delete the MySensors-master folder in your libraries folder and re-install . Use the method <a href="https://forum.mysensors.org/topic/4676/error-compiling-atsha204-h-not-found/2">shown here</a></p>
]]></description><link>https://forum.mysensors.org/post/50943</link><guid isPermaLink="true">https://forum.mysensors.org/post/50943</guid><dc:creator><![CDATA[Boots33]]></dc:creator><pubDate>Sat, 22 Oct 2016 20:17:08 GMT</pubDate></item></channel></rss>