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. ethernet gateway compile problem

ethernet gateway compile problem

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 2.1k Views 1 Watching
  • 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.
  • ferpandoF Offline
    ferpandoF Offline
    ferpando
    Hero Member
    wrote on last edited by ferpando
    #1

    Hello,

    I just started to put together this type of gateway just to do some testing and I'm getting this error when compiling:

    In file included from /Volumes/Macintosh HD/Users/fernandocheca/Documents/Arduino/libraries/MySensors/MySensor.h:28,
                     from EthernetGateway.ino:52:
    /Volumes/Macintosh HD/Users/fernandocheca/Documents/Arduino/libraries/MySensors/utility/RF24.h:51: error: ISO C++ forbids declaration of 'SoftSPI' with no type
    /Volumes/Macintosh HD/Users/fernandocheca/Documents/Arduino/libraries/MySensors/utility/RF24.h:51: error: expected ';' before '<' token
    

    What could be the problem?

    I just uncommented the softSPI line and compile.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      Did you include SoftSPI from the sketch?

      ferpandoF 1 Reply Last reply
      0
      • H hek

        Did you include SoftSPI from the sketch?

        ferpandoF Offline
        ferpandoF Offline
        ferpando
        Hero Member
        wrote on last edited by
        #3

        @hek
        all I did was remove the comment from last line

          /*** USER DEFINES:  ***/  
          //#define FAILURE_HANDLING
          //#define SERIAL_DEBUG  
          #define MINIMAL
          //#define SPI_UART  // Requires library from https://github.com/TMRh20/Sketches/tree/master/SPI_UART
          #define SOFTSPI   // Requires library from https://github.com/greiman/DigitalIO
          /**********************/```
        1 Reply Last reply
        0
        • H Offline
          H Offline
          hek
          Admin
          wrote on last edited by
          #4

          Yes, and because Arduino IDE has a broken build system you also have to include DigitalIO in your sketch.

          https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino#L41

          Which Arduino IDE version are you running?

          ferpandoF 1 Reply Last reply
          0
          • H hek

            Yes, and because Arduino IDE has a broken build system you also have to include DigitalIO in your sketch.

            https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino#L41

            Which Arduino IDE version are you running?

            ferpandoF Offline
            ferpandoF Offline
            ferpando
            Hero Member
            wrote on last edited by
            #5

            @hek
            version 1.0.6
            ok, I added the include and compiled correctly.
            Thank you

            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


            18

            Online

            12.0k

            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