Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027 C12832 EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: EmulatedResourceFactory.cpp
- Revision:
- 79:67accc95965a
- Parent:
- 78:b154b806b559
- Child:
- 81:84b580179eb5
--- a/EmulatedResourceFactory.cpp Tue Mar 04 21:09:29 2014 +0000
+++ b/EmulatedResourceFactory.cpp Tue Mar 04 21:42:39 2014 +0000
@@ -101,7 +101,12 @@
this->createResource("/lt/0/sched_elem","0");
this->createResource("/lt/0/totKwh","6.23");
this->createResource("/nw/utlz","0.01%");
+#ifdef MAC_ADDRESS
+ extern char fmt_mac[RESOURCE_VALUE_LEN+1];
+ this->createResource("/nw/macaddr",fmt_mac);
+#else
this->createResource("/nw/macaddr","00:00:00:00:00");
+#endif
}
void EmulatedResourceFactory::createResource(char *name,char *value) { ResourceFactory::createResource(name,value); }