Go Down

Topic: how to convert a mac adress (Read 495 times) previous topic - next topic

meviar

Jul 09, 2011, 11:25 am Last Edit: Jul 09, 2011, 11:41 am by meviar Reason: 1
Hey,

I recently bought a wifi shield from dfrobot.com  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.

Onions

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

Just a guess, though.

Onions.
My website: http://www.harryrabbit.co.uk/electronics/home.html Up and running now! (Feel free to look round!) :D

Jack Christensen

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy