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 81:f10d6a416a72, committed 2014-03-11
- Comitter:
- ansond
- Date:
- Tue Mar 11 20:31:42 2014 +0000
- Parent:
- 80:76fc0c8f8f5d
- Child:
- 82:66a9800af243
- Commit message:
- updates
Changed in this revision
--- a/Definitions.h Tue Mar 11 20:11:44 2014 +0000 +++ b/Definitions.h Tue Mar 11 20:31:42 2014 +0000 @@ -25,9 +25,15 @@ // include common definitions #include "CommonDefinitions.h" +// 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) +//#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
--- a/endpoint_core.lib Tue Mar 11 20:11:44 2014 +0000 +++ b/endpoint_core.lib Tue Mar 11 20:31:42 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/ansond/code/endpoint_core/#9e902c2b855e +http://mbed.org/users/ansond/code/endpoint_core/#24af66daaf17
--- a/nsp_resources/nsdl_support.cpp Tue Mar 11 20:11:44 2014 +0000 +++ b/nsp_resources/nsdl_support.cpp Tue Mar 11 20:31:42 2014 +0000 @@ -144,7 +144,7 @@ void nsdl_event_loop() { // start the registration update thread - //Thread registration_thread(registration_update_thread); + Thread registration_thread(registration_update_thread); sn_nsdl_addr_s received_packet_address; Endpoint from; @@ -156,12 +156,9 @@ received_packet_address.addr_ptr = nsp_received_address; - char *value = NULL; - while(true) { if (error_handler != NULL) error_handler->log("Reading from socket..."); int n = server.receiveFrom(from,nsp_buffer,sizeof(nsp_buffer)); - registration_update_thread(NULL); if (n > 0) sn_nsdl_process_coap((uint8_t*)nsp_buffer, n, &received_packet_address); if (error_handler != NULL) error_handler->blinkTransportRxLED(); if (error_handler != NULL) error_handler->log("DONE Reading from socket...");