Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Nov 21 09:23:22 2014 +0000
Parent:
127:4e106f4a80b7
Child:
129:fca6e5ba7d39
Commit message:
Synchronized with git rev 90f241a5
Author: Rohit Grover
GattServer:: mark a few helper methods as protected.

Changed in this revision

public/GattServer.h Show annotated file Show diff for this revision Revisions of this file
--- a/public/GattServer.h	Fri Nov 21 09:23:22 2014 +0000
+++ b/public/GattServer.h	Fri Nov 21 09:23:22 2014 +0000
@@ -66,6 +66,12 @@
         onConfirmationReceived = callback;
     }
 
+protected:
+    GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) {
+        /* empty */
+    }
+
+protected:
     void handleDataWrittenEvent(const GattCharacteristicWriteCBParams *params) {
         if (onDataWritten.hasCallbacksAttached()) {
             onDataWritten.call(params);
@@ -99,11 +105,6 @@
     }
 
 protected:
-    GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) {
-        /* empty */
-    }
-
-protected:
     uint8_t serviceCount;
     uint8_t characteristicCount;
     uint8_t descriptorCount;