tcp socket client
Dependencies: EthernetInterface mbed-rtos mbed
Fork of TCPSocket_HelloWorld by
Diff: main.cpp
- Revision:
- 17:0d74817db362
- Parent:
- 16:bfcf5f6274a2
- Child:
- 18:2eaa23c78a5b
--- a/main.cpp Wed Apr 22 13:38:58 2015 +0000 +++ b/main.cpp Thu Apr 23 02:01:38 2015 +0000 @@ -29,3 +29,14 @@ while(1) {} } + +// override the default weak function to provide a specific mac address +extern "C" void mbed_mac_address(char *mac) +{ + mac[0] = 0x01; + mac[1] = 0x23; + mac[2] = 0x45; + mac[3] = 0x67; + mac[4] = 0x89; + mac[5] = 0xAB; +};