Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Compiling error on dev branch

Compiling error on dev branch

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dakkyD Offline
    dakkyD Offline
    dakky
    wrote on last edited by dakky
    #1

    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.10

    Any idea?

    Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
    Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

    Software: MySensors 2.0development

    1 Reply Last reply
    0
    • dakkyD Offline
      dakkyD Offline
      dakky
      wrote on last edited by dakky
      #2

      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.

      Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
      Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

      Software: MySensors 2.0development

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      15

      Online

      12.1k

      Users

      11.2k

      Topics

      113.4k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular