BLE mbed Endpoint network stack for mbedConnectorInterface. The stack makes use of a special BLE Socket abstraction to create socket() semantics over BLE.

Dependencies:   libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler

Revision:
25:51cc8937022a
Parent:
24:0be5b09a207e
Child:
26:6c1ee1a58f8e
--- a/NSDL/nsdl_support.cpp	Sat Apr 11 21:18:47 2015 +0000
+++ b/NSDL/nsdl_support.cpp	Sun Apr 12 03:48:48 2015 +0000
@@ -190,7 +190,7 @@
    
     memset(&received_packet_address, 0, sizeof(sn_nsdl_addr_s));
     memset(nsp_received_address, 0, sizeof(nsp_received_address));
-    received_packet_address.addr_ptr = nsp_received_address;    
+    received_packet_address.addr_ptr = nsp_received_address;  
             
     // re-registration update ticker...
     Ticker ticker;
@@ -202,7 +202,7 @@
         ble.waitForEvent();
         
         // only process if we are registered and thus connected... otherwise ignore
-        if (__registered == true) {
+        if (endpoint_registered == true) {
             //DBG("NSP: waiting for data...\r\n");
             memset(nsp_buffer,0,NSDL_BUFFER_LENGTH);
             int n = server.receiveFrom(from,nsp_buffer,NSDL_BUFFER_LENGTH);