I'm trying to compile the example code for the Arduino Ethernet shield on my new Illuminato, and I'm getting this error:
error: 'byte' does not name a type In function 'void setup()':The example code is from the playground;
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 10, 0, 0, 177 };
byte server[] = { 64, 233, 187, 99 }; // Google
Client client(server, 80);
void setup()
{
Ethernet.begin(mac, ip);
Serial.begin(9600);
delay(1000);
Serial.println("connecting...");
if (client.connect()) {
Serial.println("connected");
client.println("GET /search?q=arduino HTTP/1.0");
client.println();
} else {
Serial.println("connection failed");
}
}
void loop()
{
if (client.available()) {
char c = client.read();
Serial.print(c);
}
if (!client.connected()) {
Serial.println();
Serial.println("disconnecting.");
client.stop();
for(;;)
;
}
}
The highlighted line is
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };I'm assuming something is borked in the Illuminato core files, since it will compile fine if I select another board than the Illuminato. Unfortunately, I have only a vague idea what the "core files" actually do, and I'm way out of my league to debug this. The liquidware guys seem to be otherwise engaged, so I'm hoping to find some insight here! I'd really like to be able to play with my Ethernet shield!
Thanks for your help!