test
Dependencies: C12832 LM75B MMA7660 MQTT
Revision 21:d9b2537dcbc3, committed 2019-10-31
- Comitter:
- steveshun
- Date:
- Thu Oct 31 16:16:34 2019 +0000
- Parent:
- 20:b2a425418dcf
- Commit message:
- sheng
Changed in this revision
MQTT.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b2a425418dcf -r d9b2537dcbc3 MQTT.lib --- a/MQTT.lib Wed Nov 01 11:07:46 2017 +0000 +++ b/MQTT.lib Thu Oct 31 16:16:34 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/mqtt/code/MQTT/#b74b9ef26f33 +http://mbed.org/teams/mqtt/code/MQTT/#9cff7b6bbd01
diff -r b2a425418dcf -r d9b2537dcbc3 main.cpp --- a/main.cpp Wed Nov 01 11:07:46 2017 +0000 +++ b/main.cpp Thu Oct 31 16:16:34 2019 +0000 @@ -85,25 +85,21 @@ // 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, starting with 0x, e.g., 0x54... + s[0] = 0x68; + s[1] = 0xf7; + s[2] = 0x28; + s[3] = 0x06; + s[4] = 0x02; + s[5] = 0x63; + } */ - - void off() { r = g = b = 1.0; // 1 is off, 0 is full brightness