ethernet gateway compile problem


  • Hero Member

    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.


  • Admin

    Did you include SoftSPI from the sketch?


  • Hero Member

    @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
      /**********************/```

  • Admin

    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?


  • Hero Member

    @hek
    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.