MBED NanoService Lighting Endpoint for NXP Ublox (Ethernet enabled)
Dependencies: C027 C12832 EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources
Diff: Definitions.h
- Revision:
- 21:e491f70f6a8a
- Parent:
- 19:a1fb67efb302
- Child:
- 22:0f673155e6e4
--- a/Definitions.h Fri Feb 28 23:43:57 2014 +0000 +++ b/Definitions.h Sat Mar 01 05:31:34 2014 +0000 @@ -48,8 +48,8 @@ #define LIGHT_ON_STATE "0" // initial state of each light in this endpoint #define LIGHT_DIM_STATE "25" // initial dimming state of each light in this endpoint #define NSP_NODE_TYPE "MBED NSP light node" // Node type -#define NSP_NODE_LIFETIME "60" // Node lifetime -#define RD_UPDATE_PERIOD 60 // The number of seconds between NSP registration messages +#define NSP_NODE_LIFETIME "30" // Node lifetime +#define RD_UPDATE_PERIOD 30 // The number of seconds between NSP registration messages // Endpoint GPS Coordinates #define ENDPOINT_LOCATION "Oulo Finland" // Where this light/endpoint lives @@ -57,8 +57,8 @@ //#define ENDPOINT_GPS_COORDS "65.020071, 25.467880" // home // TEMP - until we get HTTPS with BasicAuth working in MBED... -#define GW_IPADDRESS "192.168.1.191" // work -//#define GW_IPADDRESS "10.1.0.27" // home +//#define GW_IPADDRESS "192.168.1.191" // work +#define GW_IPADDRESS "10.1.0.27" // home #define GW_REDIRECT_URL "http://%s:8888/NSP-IOC-Gateway/IOCRestAPI" #define USE_GW_HTTP_REDIRECTOR true // true - make http calls to IOC via GW, false - make http calls directly to IOC @@ -94,8 +94,8 @@ #define HTTP_TRANSPORT 1 // HTTP Transport index // NSP Configuration -#define NSP_ADDRESS "192.168.1.150" // Target NSP Service - work -//#define NSP_ADDRESS "10.1.0.83" // Target NSP Service - home +//#define NSP_ADDRESS "192.168.1.150" // Target NSP Service - work +#define NSP_ADDRESS "10.1.0.83" // Target NSP Service - home #define NSP_PORT 5683 // Target NSP Service Port Number // Main Loop