Ethernet-based network support for mbedConnectorInterface.

Dependencies:   libnsdl EthernetInterface mbed-rtos

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Sun Apr 12 06:13:15 2015 +0000
Parent:
16:788f418740ae
Child:
18:4beaffb6468f
Commit message:
updates to re-registration

Changed in this revision

NSDL/nsdl_support.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/NSDL/nsdl_support.cpp	Sat Apr 11 21:14:37 2015 +0000
+++ b/NSDL/nsdl_support.cpp	Sun Apr 12 06:13:15 2015 +0000
@@ -122,10 +122,10 @@
         }
     }
     else {
-        endpoint_registered = false;
         endpoint_ptr = nsdl_init_register_endpoint(endpoint_ptr, (uint8_t *)null_domain, (uint8_t*)null_endpoint_name, null_ep_type, null_lifetime_ptr);
         if(sn_nsdl_update_registration(endpoint_ptr) != 0) {
             DBG("NSP re-registration failed\r\n");
+            endpoint_registered = false;
         }
         else {
             //DBG("NSP re-registration OK\r\n");