MBED NanoService Lighting Endpoint for NXP Ublox (Ethernet enabled)
Dependencies: C027 C12832 EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources
Revision 68:965b2b01451c, committed 2014-03-06
- Comitter:
- ansond
- Date:
- Thu Mar 06 04:59:20 2014 +0000
- Parent:
- 67:b43c99c88bda
- Child:
- 69:bacdc1b30920
- Commit message:
- updates
Changed in this revision
Definitions.h | Show annotated file Show diff for this revision Revisions of this file |
nsp_resources/nsdl_support.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Definitions.h Thu Mar 06 02:50:40 2014 +0000 +++ b/Definitions.h Thu Mar 06 04:59:20 2014 +0000 @@ -49,8 +49,8 @@ // NSP Configuration #define NSP_NODE_TYPE "Light" // Node type -#define NSP_NODE_LIFETIME "60" // Node lifetime -#define RD_UPDATE_PERIOD 30 // The number of seconds between NSP registration messages +#define NSP_NODE_LIFETIME "15" // Node lifetime +#define RD_UPDATE_PERIOD 15 // The number of seconds between NSP (re)registration messages // Endpoint GPS Coordinates #define ENDPOINT_LOCATION "Oulo Finland" // Where this light/endpoint lives @@ -63,8 +63,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 #endif // _DEFINITIONS_H \ No newline at end of file
--- a/nsp_resources/nsdl_support.cpp Thu Mar 06 02:50:40 2014 +0000 +++ b/nsp_resources/nsdl_support.cpp Thu Mar 06 04:59:20 2014 +0000 @@ -104,7 +104,7 @@ static void registration_update_thread(void const *args) { sn_nsdl_ep_parameters_s *endpoint_ptr = NULL; int count = 0; - int val = RD_UPDATE_PERIOD*100; + int val = RD_UPDATE_PERIOD*4; while(true) { wait_ms(250); if (error_handler != NULL) error_handler->blinkTransportRxLED();