MBED NanoService Lighting Endpoint for NXP Ublox (cellular enabled)
Dependencies: C027_Support C12832 StatusReporter LM75B c027_radios endpoint_core endpoint_nsp nsp_resources mbed mbed-rtos
Diff: Definitions.h
- Revision:
- 221:863be42b21f5
- Parent:
- 219:c40004da55c9
- Child:
- 222:b8acc55cfb0f
--- a/Definitions.h Wed Jul 09 21:12:42 2014 +0000 +++ b/Definitions.h Wed Jul 16 17:31:57 2014 +0000 @@ -32,19 +32,27 @@ //#define CELLULAR_DEBUG true // true - debug enabled, undef - no // NSP, which runs threaded, requires special handling of the cellular network stack with RTOS -#ifdef CELLULAR_NETWORK - #define NSP_CELLULAR_NETWORK true -#endif +//#ifdef CELLULAR_NETWORK +// #define NSP_CELLULAR_NETWORK true +//#endif // 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 +// APM Demo Light Configuration +#define APM_LIGHT_ENABLE false // true - enable APM Demo light, undef - disable + +// External LED Light Configuration +#define EXT_LED_ENABLE true // true - enable external LED endpoint light, false - disable + // include common definitions #include "CommonDefinitions.h" // turn these ON for NSP via cellular -#define ENABLE_THREADS true +#undef EH_USE_MUTEXES +#undef NETWORK_MUTEX +#define ENABLE_THREADS true // NSP specific definitions #include "NSPDefinitions.h" @@ -52,16 +60,16 @@ // OVERRIDE: NSP Endpoint #undef NSP_ADDRESS #undef NSP_PORT -#define NSP_ADDRESS "192.168.1.220" // Target NSP Service -#define NSP_PORT 5683 // Target NSP Service Port Number (def: 5683) +//#define NSP_ADDRESS "192.168.1.220" // Target NSP Service +//#define NSP_PORT 5683 // Target NSP Service Port Number (def: 5683) + +#define NSP_ADDRESS "72.182.18.233" // Target NSP Service +#define NSP_PORT 19648 // Target NSP Service Port Number (def: 5683) // 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 - // Endpoint GPS Coordinates #define ENDPOINT_LOCATION "Las Vegas Police Dept" // Where this light/endpoint lives #define ENDPOINT_GPS_COORDS "36.131735,-115.147683" // Joe Brown Drive