Compiling error on dev branch
-
Hello
I have some trouble compiling the sensor examples from the development branch.
Every example besides the gatewayClients fails:In file included from /home/dakkar/devzone/Arduino/libraries/MySensors/MySensor.h:139:0, from /home/dakkar/devzone/Arduino/libraries/MySensors/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino:41: /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:59:2: error: 'EthernetServer' does not name a type EthernetServer _ethernetServer(_ethernetGatewayPort); ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:67:9: error: 'EthernetClient' does not name a type static EthernetClient client = EthernetClient(); ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportInit()': /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:123:4: error: 'Ethernet' was not declared in this scope Ethernet.begin(_ethernetGatewayMAC); ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:136:3: error: '_ethernetServer' was not declared in this scope _ethernetServer.begin(); ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportSend(MyMessage&)': /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:179:4: error: '_ethernetServer' was not declared in this scope _ethernetServer.write(_ethernetMsg); ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool _readFromClient()': /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:219:10: error: 'client' was not declared in this scope while (client.connected() && client.available()) { ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportAvailable()': /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:308:4: error: 'EthernetClient' was not declared in this scope EthernetClient newclient = _ethernetServer.available(); ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:308:19: error: expected ';' before 'newclient' EthernetClient newclient = _ethernetServer.available(); ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:310:8: error: 'newclient' was not declared in this scope if (newclient) { ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:311:9: error: 'client' was not declared in this scope if (client != newclient) { ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:319:8: error: 'client' was not declared in this scope if (client) { ^ /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp: In function 'void gatewayTransportRenewIP()': /home/dakkar/devzone/Arduino/libraries/MySensors/core/MyGatewayTransportEthernet.cpp:359:6: error: 'Ethernet' was not declared in this scope if (Ethernet.maintain() & ~(0x06)) { ^ exit status 1 Error compiling.
Sketch: MySensors/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino
Arduino: 1.6.6
OS: Ubuntu 15.10Any idea?
-
Found the error:
As soon as in MyConfig.h die following is enabled, compiling fails:
#define MY_GATEWAY_W5100
EDIT:
#define MY_GATEWAY_W5100
is not nessecary at all? even the gatewayClient sketch compiles successful without it.