how to convert a mac adress


I recently bought a wifi shield from but i cant get the script to work because i need to convert my mac adress to something like this: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

MAC adress is 00-08-DC-16-5B-92

Could anyone please tell me how i can convert a mac adress or convert the adress for me.

I would assume that 00-08-DC-16-5B-92 would become byte mac[] = { 0x00, 0x08, 0xDC, 0x16, 0x5B, 0x92 }; ?

Just a guess, though.


Good guess, that's what I'd do!