Skip to content
Discussion options

You must be logged in to vote

Have you tried setting the new MAC after active()? I'm fairly sure this was working previously but haven't tested it in a while...

mac = '00:11:22:33:44:55'

nic = network.WIZNET5K(spi, cs, rst)

nic.active(True)

# Set a custom MAC address. Must be exactly 6 hex pairs. Upper or lower case. Colons optional.
nic.config(mac=bytes.fromhex(mac.replace(':', '')))

new_mac = nic.config('mac').hex(':')

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by huababua
Comment options

You must be logged in to vote
3 replies
@MilhouseVH
Comment options

@scruss
Comment options

@MilhouseVH
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants