Shop OBEX P1 Docs P2 Docs Learn Events
MAC Address — Parallax Forums

MAC Address

arsenycharsenych Posts: 2
edited 2012-07-14 23:53 in Accessories
I am stumped. Do I just modify the source code to reflect my mac address? Or does it go somewhere else?
I am stumped!


VAR 'Variables to be located here
'***************************************


'Configuration variables for the W5100
byte MAC[6] '6 element array contianing MAC or source hardware address ex. "02:00:00:01:23:45"
byte Gateway[4] '4 element array containing gateway address ex. "192.168.0.1"
byte Subnet[4] '4 element array contianing subnet mask ex. "255.255.255.0"
byte IP[4] '4 element array containing IP address ex. "192.168.0.13"


'verify variables for the W5100
byte vMAC[6] '6 element array contianing MAC or source hardware address ex. "02:00:00:01:23:45"
byte vGateway[4] '4 element array containing gateway address ex. "192.168.0.1"
byte vSubnet[4] '4 element array contianing subnet mask ex. "255.255.255.0"
byte vIP[4] '4 element array containing IP address ex. "192.168.0.13"


long localSocket '1 element for the socket number


'Variables to info for where to return the data to
byte destIP[4] '4 element array containing IP address ex. "192.168.0.16"
long destSocket '1 element for the socket number

Comments

  • Mike GMike G Posts: 2,702
    edited 2012-07-14 23:53
    I am stumped. Do I just modify the source code to reflect my mac address?
    You should use the MAC address found on the sticker underneath the Spinneret board but as long as the MAC address is unique on the network - you're good.
Sign In or Register to comment.