Nordic stack and drivers for the mbed BLE API Modified for HRM1017 for library 0.1.0

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Thu Jul 03 10:01:02 2014 +0100
Parent:
35:7174913c9d67
Child:
37:c29c330d942c
Commit message:
trigger onDataSent() for BLE_EVT_TX_COMPLETE

Changed in this revision

nRF51GattServer.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/nRF51GattServer.cpp	Fri Jun 27 13:58:12 2014 +0100
+++ b/nRF51GattServer.cpp	Thu Jul 03 10:01:02 2014 +0100
@@ -232,6 +232,10 @@
             event = GattServerEvents::GATT_EVENT_DATA_WRITTEN;
             break;
 
+        case BLE_EVT_TX_COMPLETE:
+            handleEvent(GattServerEvents::GATT_EVENT_DATA_SENT);
+            return;
+
         case BLE_GATTS_EVT_HVC:
             /* Indication confirmation received */
             event        = GattServerEvents::GATT_EVENT_CONFIRMATION_RECEIVED;