ethernet gateway compile problem
-
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 '<' tokenWhat could be the problem?
I just uncommented the softSPI line and compile.
-
@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 /**********************/``` -
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?
-
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?
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