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@45:f9638c23b214, 2014-03-03 (annotated)
- Committer:
- ansond
- Date:
- Mon Mar 03 16:20:02 2014 +0000
- Revision:
- 45:f9638c23b214
- Parent:
- 36:24f2f710d2fd
- Child:
- 46:14840a4dbe68
updates
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:dcced975fb52 | 1 | /* Copyright C2013 Doug Anson, MIT License |
ansond | 0:dcced975fb52 | 2 | * |
ansond | 0:dcced975fb52 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
ansond | 0:dcced975fb52 | 4 | * and associated documentation files the "Software", to deal in the Software without restriction, |
ansond | 0:dcced975fb52 | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
ansond | 0:dcced975fb52 | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
ansond | 0:dcced975fb52 | 7 | * furnished to do so, subject to the following conditions: |
ansond | 0:dcced975fb52 | 8 | * |
ansond | 0:dcced975fb52 | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
ansond | 0:dcced975fb52 | 10 | * substantial portions of the Software. |
ansond | 0:dcced975fb52 | 11 | * |
ansond | 0:dcced975fb52 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
ansond | 0:dcced975fb52 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
ansond | 0:dcced975fb52 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
ansond | 0:dcced975fb52 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
ansond | 0:dcced975fb52 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
ansond | 0:dcced975fb52 | 17 | */ |
ansond | 0:dcced975fb52 | 18 | |
ansond | 0:dcced975fb52 | 19 | #ifndef _DEFINITIONS_H_ |
ansond | 0:dcced975fb52 | 20 | #define _DEFINITIONS_H_ |
ansond | 0:dcced975fb52 | 21 | |
ansond | 0:dcced975fb52 | 22 | // platform |
ansond | 0:dcced975fb52 | 23 | #include "mbed.h" |
ansond | 0:dcced975fb52 | 24 | |
ansond | 23:7813eb9fea10 | 25 | // include common definitions |
ansond | 23:7813eb9fea10 | 26 | #include "CommonDefinitions.h" |
ansond | 23:7813eb9fea10 | 27 | |
ansond | 0:dcced975fb52 | 28 | // Our Endpoint Version Annoucement |
ansond | 0:dcced975fb52 | 29 | #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(NSP) Endpoint v1.0" |
ansond | 0:dcced975fb52 | 30 | |
ansond | 23:7813eb9fea10 | 31 | // Light Configuration |
ansond | 23:7813eb9fea10 | 32 | #define LIGHT_NAME "mbed-nsp-light-%d" // name of each light in this endpoint |
ansond | 5:9e795e139e45 | 33 | |
ansond | 45:f9638c23b214 | 34 | // Philips Light Config |
ansond | 45:f9638c23b214 | 35 | #define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light |
ansond | 45:f9638c23b214 | 36 | |
ansond | 23:7813eb9fea10 | 37 | // NSP Configuration |
ansond | 0:dcced975fb52 | 38 | #define NSP_NODE_TYPE "MBED NSP light node" // Node type |
ansond | 36:24f2f710d2fd | 39 | #define NSP_NODE_LIFETIME "15" // Node lifetime |
ansond | 36:24f2f710d2fd | 40 | #define RD_UPDATE_PERIOD 10 // The number of seconds between NSP registration messages |
ansond | 0:dcced975fb52 | 41 | |
ansond | 4:2469fd2fba1c | 42 | // Endpoint GPS Coordinates |
ansond | 4:2469fd2fba1c | 43 | #define ENDPOINT_LOCATION "Oulo Finland" // Where this light/endpoint lives |
ansond | 16:2b016c0f4341 | 44 | #define ENDPOINT_GPS_COORDS "65.017210, 25.492411" // work |
ansond | 16:2b016c0f4341 | 45 | //#define ENDPOINT_GPS_COORDS "65.020071, 25.467880" // home |
ansond | 7:cca3a2adb6b8 | 46 | |
ansond | 0:dcced975fb52 | 47 | // Transport Configuration |
ansond | 7:cca3a2adb6b8 | 48 | #define NUM_TRANSPORTS 2 // Transports used |
ansond | 0:dcced975fb52 | 49 | #define NSP_TRANSPORT 0 // NSP Transport index |
ansond | 7:cca3a2adb6b8 | 50 | #define HTTP_TRANSPORT 1 // HTTP Transport index |
ansond | 0:dcced975fb52 | 51 | |
ansond | 7:cca3a2adb6b8 | 52 | // NSP Configuration |
ansond | 45:f9638c23b214 | 53 | #define NSP_ADDRESS "192.168.1.150" // Target NSP Service - work |
ansond | 45:f9638c23b214 | 54 | //#define NSP_ADDRESS "10.1.0.83" // Target NSP Service - home |
ansond | 19:a1fb67efb302 | 55 | #define NSP_PORT 5683 // Target NSP Service Port Number |
ansond | 0:dcced975fb52 | 56 | |
ansond | 0:dcced975fb52 | 57 | #endif // _DEFINITIONS_H |