mbed Sensor node for Instrumented Booth over ETH.
Dependencies: EthernetInterface-1 MaxbotixDriver Presence HTU21D_TEMP_HUMID_SENSOR_SAMPLE Resources SHARPIR mbed-rtos mbed-src WDT_K64F nsdl_lib
Fork of Trenton_Switch_LPC1768_ETH by
Diff: NSDL/nsdl_support.cpp
- Revision:
- 38:9066ab490386
- Parent:
- 26:4cac6b346e4f
diff -r 99422e2b1056 -r 9066ab490386 NSDL/nsdl_support.cpp --- a/NSDL/nsdl_support.cpp Tue Dec 16 12:26:35 2014 +0000 +++ b/NSDL/nsdl_support.cpp Thu Dec 18 08:55:33 2014 +0000 @@ -136,10 +136,12 @@ sn_nsdl_ep_parameters_s *endpoint_ptr = NULL; endpoint_ptr = nsdl_init_register_endpoint(endpoint_ptr, (uint8_t*)endpoint_name, ep_type, lifetime_ptr); - if(sn_nsdl_register_endpoint(endpoint_ptr) != 0) + if(sn_nsdl_register_endpoint(endpoint_ptr) != 0) { printf("NSP re-registering failed\r\n"); - else + } else { printf("NSP re-registering OK\r\n"); + sn_nsdl_update_registration(endpoint_ptr); + } nsdl_clean_register_endpoint(&endpoint_ptr); }