MAC adress in userdefs file

Feb 24, 2015 at 4:54 PM
Probably an beginners question - I don't know anything about Arduino or networking but I would like to have a solarmeter....

How should I configure the MAC address: I get constant compilation errors, no matter what I do: the address mentioned in the manual (0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED), variants of other MAC's in my network (00:1C:D9:86:B3:4E), 3-digit octal numbers etc.


Further - can I configure the Static Byte IP freely (all my network IPs are 192.168.178.xxx).

Any help would be appreciated
Feb 24, 2015 at 5:01 PM
Edited Feb 24, 2015 at 5:01 PM
These are mine :

//*****************************************************************
// Network variables
static byte mac[] = { 0xAA, 0xAA, 0xAA, 0xAA, 0x11, 0x11 }; // MAC address can be any number, as long as it is unique in your local network
static byte ip[] = { 192,168,5,99 }; // IP of arduino
static byte dnsserver[] = {8,8,8,8}; // or use { 8, 8, 8, 8 } as general DNS server from Google if you have no other option
static byte gateway[] = { 192, 168, 5, 1 }; // use the address of your gateway { 192, 168, 1, 1 } if your router supports this
static byte subnet[] = { 255, 255, 255, 0 };

Perhaps this help...
Make sure that all this are unique numbers..
Feb 24, 2015 at 6:30 PM
Thanks, I don't get these MAC error anymore. But now there are others in a separate post.