extern "C" void mbed_mac_address(char *mac) { mac[0]=0x00; mac[1]=0x02; mac[2]=0xf7; mac[3]=0xf0; mac[4]=0x22; mac[5]=0x45; } // this is required to set the mac address as there is no mbed chip on lpcxpresso
char mac[16];
I did this when implementing the new official libraries on the LPCxpresso
Not sure about get but you can still set it with
<<code>>
extern "C" void mbed_mac_address(char *mac) { mac[0]=0x00; mac[1]=0x02; mac[2]=0xf7; mac[3]=0xf0; mac[4]=0x22; mac[5]=0x45; } // this is required to set the mac address as there is no mbed chip on lpcxpresso
char mac[16];
<</code>>
I did this when implementing the new official libraries on the LPCxpresso
I added a getMACAddress() to the current ethernet library - might be the same thing you are looking for.
<<program /users/jonathonfletcher/code/EthernetInterface/>>
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Hi just a quick question with the new Ethernet library can we still get and set mac address ?
many thanks chris