MBED NanoService Lighting Endpoint for NXP Ublox (Ethernet enabled)

Dependencies:   C027 C12832 EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources

Committer:
ansond
Date:
Mon Mar 03 17:03:55 2014 +0000
Revision:
46:14840a4dbe68
Parent:
45:f9638c23b214
Child:
48:9f532bc8c4b6
updates

Who changed what in which revision?

UserRevisionLine numberNew 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 46:14840a4dbe68 28 // Memory Debug Enable/Disable
ansond 46:14840a4dbe68 29 #define ENABLE_MEMORY_DEBUG true // false - disable, true - enable
ansond 46:14840a4dbe68 30
ansond 0:dcced975fb52 31 // Our Endpoint Version Annoucement
ansond 0:dcced975fb52 32 #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(NSP) Endpoint v1.0"
ansond 0:dcced975fb52 33
ansond 23:7813eb9fea10 34 // Light Configuration
ansond 23:7813eb9fea10 35 #define LIGHT_NAME "mbed-nsp-light-%d" // name of each light in this endpoint
ansond 5:9e795e139e45 36
ansond 45:f9638c23b214 37 // Philips Light Config
ansond 45:f9638c23b214 38 #define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light
ansond 45:f9638c23b214 39
ansond 23:7813eb9fea10 40 // NSP Configuration
ansond 0:dcced975fb52 41 #define NSP_NODE_TYPE "MBED NSP light node" // Node type
ansond 36:24f2f710d2fd 42 #define NSP_NODE_LIFETIME "15" // Node lifetime
ansond 36:24f2f710d2fd 43 #define RD_UPDATE_PERIOD 10 // The number of seconds between NSP registration messages
ansond 0:dcced975fb52 44
ansond 4:2469fd2fba1c 45 // Endpoint GPS Coordinates
ansond 4:2469fd2fba1c 46 #define ENDPOINT_LOCATION "Oulo Finland" // Where this light/endpoint lives
ansond 16:2b016c0f4341 47 #define ENDPOINT_GPS_COORDS "65.017210, 25.492411" // work
ansond 16:2b016c0f4341 48 //#define ENDPOINT_GPS_COORDS "65.020071, 25.467880" // home
ansond 7:cca3a2adb6b8 49
ansond 0:dcced975fb52 50 // Transport Configuration
ansond 7:cca3a2adb6b8 51 #define NUM_TRANSPORTS 2 // Transports used
ansond 0:dcced975fb52 52 #define NSP_TRANSPORT 0 // NSP Transport index
ansond 7:cca3a2adb6b8 53 #define HTTP_TRANSPORT 1 // HTTP Transport index
ansond 0:dcced975fb52 54
ansond 7:cca3a2adb6b8 55 // NSP Configuration
ansond 45:f9638c23b214 56 #define NSP_ADDRESS "192.168.1.150" // Target NSP Service - work
ansond 45:f9638c23b214 57 //#define NSP_ADDRESS "10.1.0.83" // Target NSP Service - home
ansond 19:a1fb67efb302 58 #define NSP_PORT 5683 // Target NSP Service Port Number
ansond 0:dcced975fb52 59
ansond 0:dcced975fb52 60 #endif // _DEFINITIONS_H