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
Diff: NSDL/nsdl_support.cpp
- Revision:
- 6:98af441fd960
- Parent:
- 5:9233e88b9c83
- Child:
- 7:203c348ccc66
--- a/NSDL/nsdl_support.cpp Mon Feb 16 06:37:35 2015 +0000 +++ b/NSDL/nsdl_support.cpp Tue Feb 17 02:56:36 2015 +0000 @@ -99,14 +99,14 @@ } static uint8_t tx_cb(sn_nsdl_capab_e protocol, uint8_t *data_ptr, uint16_t data_len, sn_nsdl_addr_s *address_ptr) { - //DBG("NSP: sending %d bytes...\r\n",data_len); - int sent = server.sendTo(nsp, (char*)data_ptr, data_len); + DBG("NSP: tx_cb(): sending %d bytes...\r\n",data_len); + int sent = server.sendTo(nsp,(char*)data_ptr, data_len); return 1; } static uint8_t rx_cb(sn_coap_hdr_s *coap_packet_ptr, sn_nsdl_addr_s *address_ptr) { // Rx callback process it... - //DBG("NSP: received data. processing...\r\n"); + DBG("NSP: rx_cb(): received data. processing...\r\n"); return 0; } @@ -192,7 +192,7 @@ // only process if we are registered and thus connected... otherwise ignore if (__registered == true) { - //DBG("NSP: waiting for data...\r\n"); + DBG("NSP: waiting for data...\r\n"); int n = server.receiveFrom(from,nsp_buffer,sizeof(nsp_buffer)); if (n >= 0) { DBG("NSP: received %d bytes... processing..\r\n.",n);