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:
- 255:cdb7231f83df
- Parent:
- 254:fb2a891a0d98
- Child:
- 256:a6e651374060
--- a/services/URIBeaconConfigService.h Fri Dec 12 15:52:48 2014 +0000 +++ b/services/URIBeaconConfigService.h Wed Jan 21 09:32:47 2015 +0000 @@ -107,7 +107,7 @@ configureGAP(); uriDataChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::uriDataWriteAuthorizationCallback); - flagsChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::falgsAuthorizationCallback); + flagsChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::flagsAuthorizationCallback); txPowerLevelsChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::denyGATTWritesIfLocked); txPowerModeChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::denyGATTWritesIfLocked); beaconPeriodChar.setWriteAuthorizationCallback(this, &URIBeaconConfigService::denyGATTWritesIfLocked); @@ -389,7 +389,7 @@ } } - void falgsAuthorizationCallback(GattCharacteristicWriteAuthCBParams *params) { + void flagsAuthorizationCallback(GattCharacteristicWriteAuthCBParams *params) { if (lockedState || ((*(params->data) & 0xFE) != 0)) { params->authorizationReply = false; }