Doug Anson / mbedEndpointNetwork_BLE

Dependencies:   libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Sat Apr 11 18:43:16 2015 +0000
Parent:
22:8f6d03b2f844
Child:
24:0be5b09a207e
Commit message:
updates to auto init register if reregistration fails...

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 18:14:49 2015 +0000
+++ b/NSDL/nsdl_support.cpp	Sat Apr 11 18:43:16 2015 +0000
@@ -131,12 +131,14 @@
         }
     }
     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");
         }
         else {
             //DBG("NSP re-registration OK\r\n");
+            endpoint_registered = true;
         }
     }
     nsdl_clean_register_endpoint(&endpoint_ptr);