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
Definitions.h
- Committer:
- ansond
- Date:
- 2014-03-13
- Revision:
- 93:5caec31ed46a
- Parent:
- 90:01f06917252d
- Child:
- 95:b7abdaefa83a
File content as of revision 93:5caec31ed46a:
/* Copyright C2013 Doug Anson, MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files the "Software", to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, publish, distribute, * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or * substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef _DEFINITIONS_H_ #define _DEFINITIONS_H_ // platform #include "mbed.h" // include common definitions #include "CommonDefinitions.h" // NSP Configuration #define NSP_ADDRESS "192.168.1.150" // Target NSP Service - work //#define NSP_ADDRESS "192.168.1.220" // Target NSP Service - home vm //#define NSP_ADDRESS "10.1.0.81" // Target NSP Service - home #define NSP_PORT 5683 // Target NSP Service Port Number // Hush Logging //#define HUSH_LOG true // false - logging output, true - no logging // Hush LED usage //#define HUSH_LEDS true // false - enable LEDs, true - disable LEDs // Memory Debug Enable/Disable //#define ENABLE_MEMORY_DEBUG true // false - disable, true - enable (for all error_handler->log() operations) //#define MEMORY_LOGGING true // false - disable, true - enable (for error_handler->log_memory() operations only) // Enable/Disable NSP Get and GetPut operations #define NSP_ENABLE_GET true // true - enable, false - disable #define NSP_ENABLE_GETPUT true // true - enable, false - disable // our MAC address #define MAC_ADDRESS 0x00,0x12,0xAB,0xE3,0x4F,0x55 // Our Endpoint Version Annoucement #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(NSP) Endpoint v1.0" // Light Configuration #define LIGHT_NAME "light-nsp-%d" // name of each light in this endpoint #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_DOUG // Default light for Philips Light // NSP Configuration #define NSP_NODE_TYPE "Light" // Node type #define NSP_NODE_LIFETIME "90" // Node lifetime #define RD_UPDATE_PERIOD 60 // The number of seconds between NSP (re)registration messages // Endpoint GPS Coordinates #define ENDPOINT_LOCATION "Las Vegas Country Club"// Where this light/endpoint lives #define ENDPOINT_GPS_COORDS "36.131258,-115.144414" // golf course 36.131258,-115.144414 // Transport Configuration #define NUM_TRANSPORTS 2 // Transports used #define NSP_TRANSPORT 0 // NSP Transport index #define HTTP_TRANSPORT 1 // HTTP Transport index #endif // _DEFINITIONS_H