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

Revision:
277:1407d2f1ce3c
Parent:
246:6c2402f286f6
--- a/services/LinkLossService.h	Thu Jan 22 09:59:43 2015 +0000
+++ b/services/LinkLossService.h	Thu Jan 22 09:59:44 2015 +0000
@@ -43,8 +43,7 @@
         ble(bleIn),
         alertLevel(levelIn),
         callback(callbackIn),
-        alertLevelChar(GattCharacteristic::UUID_ALERT_LEVEL_CHAR, reinterpret_cast<uint8_t *>(&alertLevel), sizeof(uint8_t), sizeof(uint8_t),
-                       GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_WRITE) {
+        alertLevelChar(GattCharacteristic::UUID_ALERT_LEVEL_CHAR, reinterpret_cast<uint8_t *>(&alertLevel)) {
         static bool serviceAdded = false; /* We should only ever add one LinkLoss service. */
         if (serviceAdded) {
             return;
@@ -94,10 +93,11 @@
     }
 
 private:
-    BLEDevice          &ble;
-    AlertLevel_t        alertLevel;
-    callback_t          callback;
-    GattCharacteristic  alertLevelChar;
+    BLEDevice    &ble;
+    AlertLevel_t  alertLevel;
+    callback_t    callback;
+
+    ReadWriteGattCharacteristic<uint8_t> alertLevelChar;
 };
 
 #endif /* __BLE_LINK_LOSS_SERVICE_H__ */
\ No newline at end of file