Pages: [1]   Go Down
Author Topic: how to convert a mac adress  (Read 443 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
« Last Edit: July 09, 2011, 04:41:47 am by meviar » Logged

Newcastle, England
Offline Offline
Sr. Member
Karma: 3
Posts: 489
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Just a guess, though.


My website: Up and running now! (Feel free to look round!) smiley-grin

Grand Blanc, MI, USA
Online Online
Faraday Member
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at

Pages: [1]   Go Up
Jump to: