ethernet gateway compile problem

  • Hero Member


    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.

  • Admin

    Did you include SoftSPI from the sketch?

  • Hero Member

    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
      #define SOFTSPI   // Requires library from

  • Admin

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

    Which Arduino IDE version are you running?

  • Hero Member

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

Log in to reply

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.