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:
- 74:4c8bf308383e
- Parent:
- 52:d1aaf4c7fd6a
- Child:
- 76:888c43aceb1c
--- a/EmulatedResourceFactory.cpp Tue Mar 04 17:22:59 2014 +0000
+++ b/EmulatedResourceFactory.cpp Tue Mar 04 18:36:20 2014 +0000
@@ -67,6 +67,7 @@
// create all of the resources we expect for this endpoint
this->createResource("/dev/addldata","AdditionalData");
this->createResource("/dev/location",ENDPOINT_LOCATION);
+ this->createResource("/fw/devtype","Light");
this->createResource("/dev/bat","0.0",(void *)&init_battery,NULL);
this->createResource("/sen/I","0.0",(void *)&init_current,NULL);
this->createResource("/nw/ipaddr",ethernet.getIPAddress());
@@ -77,7 +78,7 @@
this->createResource("/gps/int","0");
this->createResource("/gps/fix","1");
this->createResource("/nw/pipaddr","N/A");
- this->createResource("/nw/prssi","N/A");
+ this->createResource("/nw/prssi","-70");
this->createResource("/sen/temp","0.0",(void *)&init_temperature,NULL);
this->createResource("/sen/V","5.0",(void *)&init_voltage,NULL);
this->createResource("/gps/loc",ENDPOINT_GPS_COORDS,(void *)&init_gps,NULL);