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 22:afb208d1d79e, committed 2014-04-02
- Comitter:
- ansond
- Date:
- Wed Apr 02 02:30:33 2014 +0000
- Parent:
- 21:54e3ad1c5c2e
- Child:
- 23:34086bc15b02
- Commit message:
- updates
Changed in this revision
EmulatedLightResourceFactory.cpp | Show annotated file Show diff for this revision Revisions of this file |
MQTTDefinitions.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/EmulatedLightResourceFactory.cpp Tue Apr 01 22:15:44 2014 +0000 +++ b/EmulatedLightResourceFactory.cpp Wed Apr 02 02:30:33 2014 +0000 @@ -101,7 +101,7 @@ 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 MBED Light"); + this->createResource("/dev/mdl",MQTT_ENDPOINT_TYPE); this->createResource("/dev/mfg",PLATFORM_STRING); this->createResource("/gps/int","60"); this->createResource("/gps/fix","1");
--- a/MQTTDefinitions.h Tue Apr 01 22:15:44 2014 +0000 +++ b/MQTTDefinitions.h Wed Apr 02 02:30:33 2014 +0000 @@ -34,12 +34,14 @@ // Personality Name Configuration #ifdef LIGHT_PERSONALITY - #define PERSONALITY_NAME "light-mqtt-%d" // name of each personality (i.e. light) in this endpoint - #define PERSONALITY_TYPE LIGHT_TYPE_STRING // type of personality + #define PERSONALITY_NAME "light-mqtt-%d" // name of each personality (i.e. light) in this endpoint + #define PERSONALITY_TYPE LIGHT_TYPE_STRING // type of personality + #define MQTT_ENDPOINT_TYPE "MBED MQTT Light Node" // mfg type #endif #ifdef COPCAR_PERSONALITY - #define PERSONALITY_NAME "copcar-mqtt-%d" // name of each personality (i.e. copcar) in this endpoint - #define PERSONALITY_TYPE "Cop Car" // type of personality + #define PERSONALITY_NAME "copcar-mqtt-%d" // name of each personality (i.e. copcar) in this endpoint + #define PERSONALITY_TYPE "Cop Car" // type of personality + #define MQTT_ENDPOINT_TYPE "MBED MQTT Cop Car" // mfg type #endif // Keyword Definitions for MQTT packets