Doug Anson / mbedEndpointNetwork_BLE

Dependencies:   libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Sun Apr 12 06:11:25 2015 +0000
Parent:
25:51cc8937022a
Child:
27:bfadf9e0bbff
Commit message:
updates to reregistration

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	Sun Apr 12 03:48:48 2015 +0000
+++ b/NSDL/nsdl_support.cpp	Sun Apr 12 06:11:25 2015 +0000
@@ -131,10 +131,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");