Exercise 5
Dependencies: C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
Revision 20:923a4ccddadd, committed 2017-04-26
- Comitter:
- steveshun
- Date:
- Wed Apr 26 13:55:24 2017 +0000
- Parent:
- 19:31b65908c2f3
- Commit message:
- IoT tutorial
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 04 14:50:51 2016 +0000 +++ b/main.cpp Wed Apr 26 13:55:24 2017 +0000 @@ -20,6 +20,8 @@ * * To do : * Add magnetometer sensor output to IoT data stream + * + * Go to the web: https://quickstart.internetofthings.ibmcloud.com/?deviceId=&cm_mc_uid=00123436039914622840741&cm_mc_sid_50200000=1472648543#/ * *******************************************************************************/ @@ -85,20 +87,20 @@ // 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. +//go to the web: https://quickstart.internetofthings.ibmcloud.com/?deviceId=&cm_mc_uid=00123436039914622840741&cm_mc_sid_50200000=1472648543#/ extern "C" void $Super$$mbed_mac_address(char *s); extern "C" void $Sub$$mbed_mac_address(char *s) { - -// define your own MAC Address - s[0] = 0x68; - s[1] = 0xf7; - s[2] = 0x28; - s[3] = 0x06; - s[4] = 0x02; - s[5] = 0x63; - +// define your own MAC Address, starting with 0x, e.g., 0x54... + s[0] = 0x__; + s[1] = 0x__; + s[2] = 0x__; + s[3] = 0x__; + s[4] = 0x__; + s[5] = 0x__; + }