hi,
ik working on a project tosend some signals via ethernet, but the arduino resets if i send a command,
the serial monitor sends the setuproutine every time i give input via the web...
can anybody help me?
udpknop.ino (8.95 KB)
hi,
ik working on a project tosend some signals via ethernet, but the arduino resets if i send a command,
the serial monitor sends the setuproutine every time i give input via the web...
can anybody help me?
udpknop.ino (8.95 KB)
byte Ethernet::buffer[1200]; // tcp/ip send and receive buffer
Which Arduino do you have? Using 60% of the memory on a 328-based machine hardly seems like a good idea. Do you REALLY plan to send or receive 1200 byte packets?
word len = ether.packetReceive();
word pos = ether.packetLoop(len);
Word? WTF is a word? The Arduino isn't running a Microsoft operating system. Don't borrow this crap from Microslop!
You should be looking at how much (or how little) memory you have, and how much you are (over)using.
http://playground.arduino.cc/Code/AvailableMemory
Paul may be a bit harsh, but he's basically right. Whatever your HW config, you should first try to use "standard" examples of sketches, as provided with the libraries. It seems that some recent changes broke it, as indicated in the forum on jeelabs http://jeelabs.net/search?utf8=✓&q=ethercard
Using an older version, I managed to get both DHCP and static IP examples working, and send data to Xively for example.