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

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

Newcastle, England
Offline Offline
Sr. Member
****
Karma: 2
Posts: 489
Always learning!
View Profile
WWW
 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.

Onions.
Logged

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

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

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

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Pages: [1]   Go Up
Jump to: