Go Down

Topic: #include one library into another ? (Read 1 time) previous topic - next topic

Ole Weidner


I'm fairly new to the Arduino development platform. I'm trying to write a high-level network library (that supports a specific XML protocol) for Arduino. Since I don't want to re-implement the whole Ethernet stack, I thought it would make sense to re-use the one that already comes with Arduino. My idea is, to pass a reference to an Ethernet object in the constructor of my own class. I could then internally instantiate Client and Server objects.

My questions now are: (1) is that viable / sensible solution and (2) how would I do this technically? Right now, I'm failing simply because I can't include "Ethernet.h" from within my library code:

Code: [Select]
/Users/oweidner/Sketchbook/arduino/libraries/NeuroAutonomics/NAEmitter.h:19:22: error:
Ethernet.h: No such file or directory

Any ideas or suggestions are highly appreciated!


Coding Badly

Oct 07, 2010, 09:15 pm Last Edit: Oct 07, 2010, 09:15 pm by bcook Reason: 1

Have a look at this...


...and this...


I hope your project goes well!

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131