MBED MQTT Lighting Endpoint for NXP LPC1768+AppBoard
Dependencies: C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Definitions.h@183:2a0f35485632, 2014-03-28 (annotated)
- Committer:
- ansond
- Date:
- Fri Mar 28 16:24:31 2014 +0000
- Revision:
- 183:2a0f35485632
- Parent:
- 181:f78020a9b78a
- Child:
- 190:fc7814c8a5c5
refactor personality
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 172:e996f6ce25f7 | 1 | /* Copyright C2013 Doug Anson, MIT License |
ansond | 172:e996f6ce25f7 | 2 | * |
ansond | 172:e996f6ce25f7 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
ansond | 172:e996f6ce25f7 | 4 | * and associated documentation files the "Software", to deal in the Software without restriction, |
ansond | 172:e996f6ce25f7 | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
ansond | 172:e996f6ce25f7 | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
ansond | 172:e996f6ce25f7 | 7 | * furnished to do so, subject to the following conditions: |
ansond | 172:e996f6ce25f7 | 8 | * |
ansond | 172:e996f6ce25f7 | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
ansond | 172:e996f6ce25f7 | 10 | * substantial portions of the Software. |
ansond | 172:e996f6ce25f7 | 11 | * |
ansond | 172:e996f6ce25f7 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
ansond | 172:e996f6ce25f7 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
ansond | 172:e996f6ce25f7 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
ansond | 172:e996f6ce25f7 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
ansond | 172:e996f6ce25f7 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
ansond | 172:e996f6ce25f7 | 17 | */ |
ansond | 172:e996f6ce25f7 | 18 | |
ansond | 172:e996f6ce25f7 | 19 | #ifndef _DEFINITIONS_H_ |
ansond | 172:e996f6ce25f7 | 20 | #define _DEFINITIONS_H_ |
ansond | 172:e996f6ce25f7 | 21 | |
ansond | 172:e996f6ce25f7 | 22 | // platform |
ansond | 172:e996f6ce25f7 | 23 | #include "mbed.h" |
ansond | 172:e996f6ce25f7 | 24 | |
ansond | 173:b8f479524c92 | 25 | // Platform Switch |
ansond | 181:f78020a9b78a | 26 | //#define _ENDPOINT_UBLOX_PLATFORM true // uncomment for the U-Blox MBED platform |
ansond | 181:f78020a9b78a | 27 | //#define _ENDPOINT_FREESCALE_PLATFORM true // uncomment for the Freescale Freedom MBED platform |
ansond | 181:f78020a9b78a | 28 | #define _ENDPOINT_NXP_PLATFORM true // uncomment for the NXP MBED platform |
ansond | 181:f78020a9b78a | 29 | |
ansond | 181:f78020a9b78a | 30 | // what kind of personality we are... |
ansond | 181:f78020a9b78a | 31 | #define LIGHT_PERSONALITY true // the endpoint will be a (set of) lights |
ansond | 183:2a0f35485632 | 32 | //#define COPCAR_PERSONALITY true // the endpoint will emulate a cop car |
ansond | 173:b8f479524c92 | 33 | |
ansond | 172:e996f6ce25f7 | 34 | // include common definitions |
ansond | 172:e996f6ce25f7 | 35 | #include "CommonDefinitions.h" |
ansond | 172:e996f6ce25f7 | 36 | |
ansond | 174:4da75aabdd67 | 37 | // MQTT specific support |
ansond | 174:4da75aabdd67 | 38 | #include "MQTTDefinitions.h" |
ansond | 172:e996f6ce25f7 | 39 | |
ansond | 172:e996f6ce25f7 | 40 | // Philips Light Config |
ansond | 172:e996f6ce25f7 | 41 | #define PL_ENABLE false // true - enable for endpoint light, false - disable |
ansond | 172:e996f6ce25f7 | 42 | #define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light |
ansond | 172:e996f6ce25f7 | 43 | |
ansond | 172:e996f6ce25f7 | 44 | // External LED Light Configuration |
ansond | 172:e996f6ce25f7 | 45 | #define EXT_LED_ENABLE true // true - enable external LED endpoint light, false - disable |
ansond | 172:e996f6ce25f7 | 46 | |
ansond | 172:e996f6ce25f7 | 47 | // Endpoint GPS Coordinates/Location |
ansond | 172:e996f6ce25f7 | 48 | #define ENDPOINT_LOCATION "Las Vegas Country Club" // Where this light/endpoint lives |
ansond | 172:e996f6ce25f7 | 49 | #define ENDPOINT_GPS_COORDS "-115.143470 36.131916" // golf course -115.143470 36.131916 |
ansond | 172:e996f6ce25f7 | 50 | |
ansond | 172:e996f6ce25f7 | 51 | // MBED doesnt have a good notion of time - so we code it here |
ansond | 172:e996f6ce25f7 | 52 | #define ENDPOINT_STARTTIME "\"STARTDATETIME\":\"2014-03-09T22:03:06-07:00\"," |
ansond | 172:e996f6ce25f7 | 53 | #define ENDPOINT_STOPTIME "\"ENDDATETIME\":\"2015-03-10T03:35:55-07:00\"," |
ansond | 172:e996f6ce25f7 | 54 | #define ENDPOINT_TIMEZONE "\"TIMEZONEOFFSET\":\"-07:00\"" |
ansond | 172:e996f6ce25f7 | 55 | |
ansond | 174:4da75aabdd67 | 56 | // DEBUG Memory Debug Enable/Disable |
ansond | 174:4da75aabdd67 | 57 | // #define ENABLE_MEMORY_DEBUG true // false - disable, true - enable |
ansond | 172:e996f6ce25f7 | 58 | |
ansond | 174:4da75aabdd67 | 59 | // DEBUG Hush Logging |
ansond | 174:4da75aabdd67 | 60 | //#define HUSH_LOG true // false - logging output, true - no logging |
ansond | 172:e996f6ce25f7 | 61 | |
ansond | 174:4da75aabdd67 | 62 | // DEBUG Hush LED usage |
ansond | 174:4da75aabdd67 | 63 | //define HUSH_LEDS true // false - enable LEDs, true - disable LEDs |
ansond | 172:e996f6ce25f7 | 64 | |
ansond | 174:4da75aabdd67 | 65 | // KEIL: our MAC address |
ansond | 174:4da75aabdd67 | 66 | //#define MAC_ADDRESS 0xa0,0x12,0xAB,0xE3,0x4F,0x56 |
ansond | 172:e996f6ce25f7 | 67 | |
ansond | 172:e996f6ce25f7 | 68 | #endif // _DEFINITIONS_H |