Peter_n:
The IP of the Arduino.
Do you use different mac addresses for everything ?
What does the serial monitor say for the IP address ?
Normally I would use a different IP for every Arduino because a MAC-address is in theory 'unique'. Don't really know since I've got no experience with the Arduino and ENC28J60.
What should I print on the serial monitor to test? Just send the IP-address to the serial monitor?
#include <EtherCard.h>
// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
static byte myip[] = { 192,168,1,203 };
byte Ethernet::buffer[500];
BufferFiller bfill;
void setup () {
if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
Serial.println( "Failed to access Ethernet controller");
ether.staticSetup(myip);
}
My code has been modified a little and it's full of errors so I deleted it and decided to start fresh since it was a mess.
So the code must be that I send for example a character and a boolean to a laptop or another Arduino client. I will try to test-write some code in a couple of minutes and think about it and upload the code to this topic too.
By the way the idea to use this Wi-Fi came from: http://www.instructables.com/id/Cheap-and-Easy-Arduino-Wi-Fi-Hack/
Regards,
Dries