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
Diff: services/URIBeaconConfigService.h
- Revision:
- 276:daa42f59bdb8
- Parent:
- 275:4abc3126f1e1
- Child:
- 277:1407d2f1ce3c
diff -r 4abc3126f1e1 -r daa42f59bdb8 services/URIBeaconConfigService.h --- a/services/URIBeaconConfigService.h Wed Jan 21 09:32:53 2015 +0000 +++ b/services/URIBeaconConfigService.h Thu Jan 22 09:59:43 2015 +0000 @@ -135,8 +135,8 @@ &beaconPeriodChar, &resetChar}; GattService beaconControlService(URIBeacon2ControlServiceUUID, charTable, sizeof(charTable) / sizeof(GattCharacteristic *)); + ble.addService(beaconControlService); - ble.addService(beaconControlService); ble.onDataWritten(this, &URIBeaconConfigService::onDataWritten); } @@ -386,7 +386,6 @@ } else if (handle == unlockChar.getValueHandle()) { memset(lockBits, 0, SIZEOF_LOCK_BITS); lockedState = false; - storage_saveLockBits(); } else if (handle == uriDataChar.getValueHandle()) { uriDataLength = params->len;