ethernet gateway compile problem
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.
Did you include SoftSPI from the sketch?
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 /**********************/```
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?
ok, I added the include and compiled correctly.