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:
- 144:c7913812742a
- Parent:
- 141:0a09f2d03528
- Child:
- 145:0a54b3df7a5b
--- a/Definitions.h Wed Mar 19 04:49:44 2014 +0000 +++ b/Definitions.h Wed Mar 19 15:26:10 2014 +0000 @@ -26,20 +26,20 @@ #include "CommonDefinitions.h" // Until we get HTTPS with BasicAuth working in MBED... -//#define GW_IPADDRESS "192.168.1.191" // mac at work -#define GW_IPADDRESS "192.168.1.220" // registrydb work and home - vm -//#define GW_IPADDRESS "10.1.0.27" // mini +#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" -#define USE_GW_HTTP_REDIRECTOR true // true - make http calls to IOC via GW, false - make http calls directly to IOC // Memory Debug Enable/Disable -// #define ENABLE_MEMORY_DEBUG true // false - disable, true - enable +// #define ENABLE_MEMORY_DEBUG true // false - disable, true - enable // Hush Logging -//#define HUSH_LOG true // false - logging output, true - no logging +//#define HUSH_LOG true // false - logging output, true - no logging // Hush LED usage -//define HUSH_LEDS true // false - enable LEDs, true - disable LEDs +//define HUSH_LEDS true // false - enable LEDs, true - disable LEDs // Our Endpoint Version Annoucement #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(MQTT) Endpoint v1.0" @@ -53,16 +53,14 @@ // Light Configuration #define LIGHT_NAME "light-mqtt-%d" // name of each light in this endpoint #define LIGHT_BLINK_WAIT_MS 1000 // time between blinks (ms) -#define LIGHT_NAME_INDEX 1 // start index for the ID of the light name - // 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 // External LED Light Configuration -#define EXT_LED_ENABLE true // true - enable external LED endpoint light, false - disable -#define EXT_LED_PIN p21 // pin to use for external LED cathode +#define EXT_LED_ENABLE true // true - enable external LED endpoint light, false - disable +#define EXT_LED_PIN p21 // pin to use for external LED cathode // Endpoint GPS Coordinates/Location #define ENDPOINT_LOCATION "Las Vegas Country Club" // Where this light/endpoint lives