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:
- 169:6ee5d76fc0e7
- Parent:
- 168:1539ef71d305
diff -r 1539ef71d305 -r 6ee5d76fc0e7 EmulatedResourceFactory.cpp
--- a/EmulatedResourceFactory.cpp Tue Mar 25 03:26:36 2014 +0000
+++ b/EmulatedResourceFactory.cpp Tue Mar 25 04:36:32 2014 +0000
@@ -94,33 +94,20 @@
this->createResource(endpoint_name,"/lt/0/dim","25",(void *)&emulated_light_dimming_cb); // Action: dim/brighten light
this->createResource("/nw/eripaddr","N/A");
this->createResource(endpoint_name,"/lt/0/on","1",(void *)&emulated_light_switch_cb); // Action: light on/off
- //this->createResource(endpoint_name,"/lt/0/ctr","1",(void *)&emulated_light_switch_cb); // Action: light on/off
+ this->createResource(endpoint_name,"/lt/0/ctr","1",(void *)&emulated_light_switch_cb); // Action: light on/off
this->createResource("/dev/mdl","MQTT MBED Light");
this->createResource("/dev/mfg","NXP MBED");
this->createResource("/gps/int","60");
this->createResource("/gps/fix","1");
this->createResource("/nw/pipaddr","N/A");
this->createResource("/dev/W","0.1W",(void *)&init_wattage,NULL);
- this->createResource("/nw/prssi","-73",(void *)&init_rssi,NULL);
+ this->createResource("/nw/prssi","-75",(void *)&init_rssi,NULL);
this->createResource("/sen/temp","10.0C",(void *)&init_temperature,NULL);
this->createResource("/dev/t","10.0C",(void *)&init_temperature,NULL);
this->createResource("/sen/V","5.0V",(void *)&init_voltage,NULL);
this->createResource("/dev/V","5.0V",(void *)&init_voltage,NULL);
this->createResource("/gps/loc",this->getGPSCoords(),(void *)&init_gps,NULL);
-
- //this->createResource("/res/int","1");
- //this->createResource("/res/systime","1010101");
- //this->createResource("/fw/curr/NanoLightingApplication/ver","1.0");
- //this->createResource("/fw/new/NanoLightingApplication/ver","1.0");
- //this->createResource("/fw/upload","false");
- //this->createResource("/fw/download","none");
this->createResource("/ns/nspaddr","(NA)");
- //this->createResource("/lt/0/ontime","0");
- //this->createResource("/lt/0/pfact","1.0");
- //this->createResource("/lt/0/sched","none");
- //this->createResource("/lt/0/sched_elem","0");
- //this->createResource("/lt/0/totKwh","6.23");
- //this->createResource("/nw/utlz","0.01%");
this->createResource(endpoint_name,"/dev/panic","0",(void *)&emulated_light_switch_cb); // Action: light on/off
#ifdef MAC_ADDRESS