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:
17:36a4ab911aaa
Parent:
14:717372430717
Child:
22:afb208d1d79e
diff -r 4cc5df8bf10c -r 36a4ab911aaa EmulatedLightResourceFactory.cpp
--- a/EmulatedLightResourceFactory.cpp	Mon Mar 31 18:57:58 2014 +0000
+++ b/EmulatedLightResourceFactory.cpp	Mon Mar 31 21:03:09 2014 +0000
@@ -97,10 +97,10 @@
 #else
     this->createResource("/nw/ipaddr","0.0.0.0");
 #endif
-    this->createResource(endpoint_name,"/lt/0/dim","25",(void *)&emulated_light_dimming_cb);          // Action: dim/brighten light
+    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(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/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 MBED Light");
     this->createResource("/dev/mfg",PLATFORM_STRING);
     this->createResource("/gps/int","60");