MBED MQTT Lighting Endpoint for NXP Ublox (Ethernet enabled)
Dependencies: C027 C12832 EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: Definitions.h
- Revision:
- 203:11575677120c
- Parent:
- 202:f0cc00d2404b
- Child:
- 205:45e06626cb8e
--- a/Definitions.h Mon Mar 31 19:43:31 2014 +0000 +++ b/Definitions.h Mon Mar 31 20:26:25 2014 +0000 @@ -23,16 +23,16 @@ #include "mbed.h" // Platform Switch -#define _ENDPOINT_UBLOX_PLATFORM true // uncomment for the U-Blox MBED platform -//#define _ENDPOINT_FREESCALE_PLATFORM true // uncomment for the Freescale Freedom MBED platform -//#define _ENDPOINT_NXP_PLATFORM true // uncomment for the NXP MBED platform +#define _ENDPOINT_UBLOX_PLATFORM true // uncomment for the U-Blox MBED platform +//#define _ENDPOINT_FREESCALE_PLATFORM true // uncomment for the Freescale Freedom MBED platform +//#define _ENDPOINT_NXP_PLATFORM true // uncomment for the NXP MBED platform // Network Usage (default is Ethernet) -//#define CELLULAR_NETWORK true // true - use cellular network, false - use ethernet (cannot co-exist together) +//#define CELLULAR_NETWORK true // true - use cellular network, false - use ethernet (cannot co-exist together) // what kind of personality we are... -//#define LIGHT_PERSONALITY true // the endpoint will be a (set of) lights -#define COPCAR_PERSONALITY true // the endpoint will emulate a cop car +//#define LIGHT_PERSONALITY true // the endpoint will be a (set of) lights +#define COPCAR_PERSONALITY true // the endpoint will emulate a cop car // include common definitions #include "CommonDefinitions.h" @@ -41,23 +41,18 @@ #include "MQTTDefinitions.h" // Philips Light Config -#define PL_ENABLE false // true - enable for endpoint light, false - disable -#define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light +#define PL_ENABLE false // true - enable for endpoint light, false - disable +#define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light // External LED Light Configuration -#define EXT_LED_ENABLE false // true - enable external LED endpoint light, false - disable +#define EXT_LED_ENABLE false // true - enable external LED endpoint light, false - disable // Endpoint GPS Coordinates/Location -#define ENDPOINT_LOCATION "Las Vegas Country Club" // Where this light/endpoint lives -#define ENDPOINT_GPS_COORDS "-115.143470 36.131916" // golf course -115.143470 36.131916 +#define ENDPOINT_LOCATION "Las Vegas Police Dept" // Where this light/endpoint lives +#define ENDPOINT_GPS_COORDS "36.131735,-115.147683" // Joe Brown Drive // Reset our config values if needed #ifdef _ENDPOINT_UBLOX_PLATFORM - #undef LIGHT_NAME - #undef ENDPOINT_GPS_COORDS - #undef PERSONALITY_NAME - #define PERSONALITY_NAME "light-mqtt-%d0" // name of each personality in this endpoint - #define ENDPOINT_GPS_COORDS "-115.148713 36.133672" // golf course -115.143470 36.131916 #define UBLOX_USE_3G true // use 3G or ethernet #define UBLOX_MODEM UbloxUSBCDMAModem // CDMA modem #define UBLOX_CDMA_DELAY_MS 1000 // connect delay in MS