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:
- 273:9b82fc10574a
- Parent:
- 272:65b9d9c87ed1
- Child:
- 274:f540619754bb
diff -r 65b9d9c87ed1 -r 9b82fc10574a services/URIBeaconConfigService.h --- a/services/URIBeaconConfigService.h Wed Jan 21 09:32:52 2015 +0000 +++ b/services/URIBeaconConfigService.h Wed Jan 21 09:32:53 2015 +0000 @@ -123,7 +123,14 @@ beaconPeriodChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::denyGATTWritesIfLocked); resetChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::denyGATTWritesIfLocked); - GattCharacteristic *charTable[] = {&lockedStateChar, &lockChar, &unlockChar, &uriDataChar, &flagsChar, &txPowerLevelsChar, &beaconPeriodChar, &resetChar}; + GattCharacteristic *charTable[] = {&lockedStateChar, + &lockChar, + &unlockChar, + &uriDataChar, + &flagsChar, + &txPowerLevelsChar, + &beaconPeriodChar, + &resetChar}; GattService beaconControlService(URIBeacon2ControlServiceUUID, charTable, sizeof(charTable) / sizeof(GattCharacteristic *)); ble.addService(beaconControlService);