folpindo / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Add printable for MAC addresses in Ethernet library #840

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What change would like to see?
 It'd be useful to be able to print MAC addresses as well as IP addresses.

Original issue reported on code.google.com by tom.i...@gmail.com on 2 Mar 2012 at 10:45

GoogleCodeExporter commented 9 years ago
The change is trivial, but what's your use case? You know what MAC address 
you're using when you initialise it.

Original comment by achan1...@gmail.com on 20 Mar 2014 at 7:16

GoogleCodeExporter commented 9 years ago
You only know the address if it is physically printed on the board, which is 
not always the case. So being able to print it, in cases where, for example, 
the sticker is gone, would be useful.

Original comment by t...@nyu.edu on 20 Mar 2014 at 7:20

GoogleCodeExporter commented 9 years ago
You have to provide a MAC address when you call Ethernet.begin(), but if you 
don't have a sticker you can just make something up and it will use what you 
give it instead of the "proper" address.  It shouldn't matter what address you 
use, as long as it's unique on your network.

That said, there's no harm in adding the functionality.  I'll give it a go.

Original comment by achan1...@gmail.com on 20 Mar 2014 at 9:42