Hi, I'm trying to create a library for debug purpouses that will write messages either to the serial or to an UDP port on a server.
To use UDP datagrams, I'm using ClientUDP extension to the ethernet library from Ilya Danilov (http://arduino-powered.blogspot.com/2009/07/using-udp-with-arduino.html) .
In a regular sketch, you will use ClientUDP udp(ip,port); to create an instance of this class and then udp.write or whatever function on the lib. But, right now, I'm stuck with the syntax to, either pass this object to the library to reuse this conection, or store the object in the constructor of my class, and then use it from within my methods.
but this does not compile.
I've also tried in the declaration of my library
private: int _Mode; ClientUDPP _udp;
and then, in th constructor:
with no luck,
Can someone help me???
Thx in advance for your help regards Chano