Dependencies: C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IoTClientEthernet by
Diff: main.cpp
- Revision:
- 19:31b65908c2f3
- Parent:
- 18:94da9de96d54
- Child:
- 20:0bac4068e9c0
--- a/main.cpp Wed Aug 12 20:50:56 2015 +0000 +++ b/main.cpp Sun Dec 04 14:50:51 2016 +0000 @@ -85,23 +85,22 @@ // this is how to do it. In this example, we take // the original Mbed Set MAC address and combine it // with a prefix of our choosing. - /* + extern "C" void $Super$$mbed_mac_address(char *s); extern "C" void $Sub$$mbed_mac_address(char *s) { - char originalMAC[6] = ""; - $Super$$mbed_mac_address(originalMAC); + - char mac[6]; - mac[0] = 0x00; - mac[1] = 0x08; - mac[2] = 0xdc; - mac[3] = originalMAC[3]; - mac[4] = originalMAC[4]; - mac[5] = originalMAC[5]; - memcpy(s, mac, 6); +// define your own MAC Address + s[0] = 0x68; + s[1] = 0xf7; + s[2] = 0x28; + s[3] = 0x06; + s[4] = 0x02; + s[5] = 0x63; + } -*/ + void off()