mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Revision:
55:7992e9582e2e
Parent:
29:ac6390032cec
Child:
56:789a1a8c5ebe
diff -r 5beaf9ba8f6a -r 7992e9582e2e EmulatedLightResourceFactory.cpp
--- a/EmulatedLightResourceFactory.cpp	Sat Sep 13 04:29:36 2014 +0000
+++ b/EmulatedLightResourceFactory.cpp	Fri Sep 19 18:31:14 2014 +0000
@@ -92,30 +92,30 @@
     // create all of the resources we expect for this endpoint
     this->createResource("/dev/addldata","id:0");
     this->createResource("/dev/location",ENDPOINT_LOCATION);
-    this->createResource("/fw/devtype","Light");
+    //this->createResource("/fw/devtype","Light");
     this->createResource("/dev/bat","5.0V",(void *)&init_battery,NULL);
     this->createResource("/sen/I","0.1A",(void *)&init_current,NULL);
-    this->createResource("/dev/I","0.1A",(void *)&init_current,NULL);
+    //this->createResource("/dev/I","0.1A",(void *)&init_current,NULL);
 #ifndef CELLULAR_NETWORK
     this->createResource("/nw/ipaddr",ethernet.getIPAddress());
 #else
     this->createResource("/nw/ipaddr","0.0.0.0");
 #endif
     this->createResource(endpoint_name,"/lt/0/dim",LIGHT_DIM_STATE,(void *)&emulated_light_dimming_cb);          // Action: dim/brighten light
-    this->createResource("/nw/eripaddr","N/A");
+    //this->createResource("/nw/eripaddr","N/A");
     this->createResource(endpoint_name,"/lt/0/on",LIGHT_DEFAULT_STATE,(void *)&emulated_light_switch_cb);             // Action: light on/off
     //this->createResource(endpoint_name,"/lt/0/ctr",LIGHT_DEFAULT_STATE,(void *)&emulated_light_switch_cb);             // Action: light on/off
     this->createResource("/dev/mdl",MQTT_ENDPOINT_TYPE);
     this->createResource("/dev/mfg",PLATFORM_STRING);
     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","-75",(void *)&init_rssi,NULL);
+    //this->createResource("/nw/pipaddr","N/A");
+    //this->createResource("/dev/W","0.1W",(void *)&init_wattage,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("/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("/dev/V","5.0V",(void *)&init_voltage,NULL);
     this->createResource("/gps/loc",this->getGPSCoords(),(void *)&init_gps,NULL);
     this->createResource("/ns/nspaddr","(NA)");
     this->createResource(endpoint_name,"/dev/panic","0",(void *)&emulated_light_switch_cb);             // Action: light on/off