mqtt specific components for the impact mbed endpoint library
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Diff: MQTTDefinitions.h
- Revision:
- 8:17c29d3b967b
- Parent:
- 7:8a4a61202b36
- Child:
- 17:36a4ab911aaa
diff -r 8a4a61202b36 -r 17c29d3b967b MQTTDefinitions.h --- a/MQTTDefinitions.h Fri Mar 28 16:24:22 2014 +0000 +++ b/MQTTDefinitions.h Fri Mar 28 16:45:17 2014 +0000 @@ -20,11 +20,11 @@ #define _MQTT_DEFINITIONS_H_ // Our Endpoint Version Annoucement -#define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(MQTT) Endpoint v1.0" +#define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED MQTT Endpoint v1.0" // Until we get HTTPS with BasicAuth working in MBED... -#define GW_IPADDRESS "192.168.1.220" // gateway IP address (default) -#define USE_GW_HTTP_REDIRECTOR true // true - make http calls to IOC via GW, false - make http calls directly to IOC +#define GW_IPADDRESS "192.168.1.220" // gateway IP address (default) +#define USE_GW_HTTP_REDIRECTOR true // true - make http calls to IOC via GW, false - make http calls directly to IOC // Gateway REST API URL #define GW_REDIRECT_URL "http://%s:8888/NSP-IOC-Gateway/IOCRestAPI" @@ -32,8 +32,10 @@ // Preference File Configuration #define PREFERENCES_FILE "/local/mqtt.cfg" // preferences file for endpoint -// Light Configuration -#define PERSONALITY_NAME "light-mqtt-%d" // name of each personality (i.e. light) in this endpoint +// Personality Name Configuration +#ifdef LIGHT_PERSONALITY + #define PERSONALITY_NAME "light-mqtt-%d" // name of each personality (i.e. light) in this endpoint +#endif // Keyword Definitions for MQTT packets #define IOC_REQUEST_LOAD_ALL_VERB "load"