I don't know why this is happening.
Fork of BLE_API by
Diff: services/URIBeaconConfigService.h
- Revision:
- 279:00649389c020
- Parent:
- 278:8a935a2d4a16
- Child:
- 280:68c8a5e55c96
--- a/services/URIBeaconConfigService.h Fri Feb 13 13:00:40 2015 +0000 +++ b/services/URIBeaconConfigService.h Fri Feb 13 13:00:40 2015 +0000 @@ -145,7 +145,7 @@ GattService configService(UUID_URI_BEACON_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *)); - ble.addService(configService); + ble.addService(configService); ble.onDataWritten(this, &URIBeaconConfigService::onDataWrittenCallback); initSucceeded = true; @@ -217,12 +217,12 @@ void updateCharacteristicValues(void) { ble.updateCharacteristicValue(lockedStateChar.getValueHandle(), &lockedState, 1); ble.updateCharacteristicValue(uriDataChar.getValueHandle(), params.uriData, params.uriDataLength); - ble.updateCharacteristicValue(flagsChar.getValueHandle(), ¶ms.flags, 1); + ble.updateCharacteristicValue(flagsChar.getValueHandle(), ¶ms.flags, 1); ble.updateCharacteristicValue(beaconPeriodChar.getValueHandle(), - reinterpret_cast<uint8_t *>(¶ms.beaconPeriod), sizeof(uint16_t)); + reinterpret_cast<uint8_t *>(¶ms.beaconPeriod), sizeof(uint16_t)); ble.updateCharacteristicValue(txPowerModeChar.getValueHandle(), ¶ms.txPowerMode, 1); ble.updateCharacteristicValue(advPowerLevelsChar.getValueHandle(), - reinterpret_cast<uint8_t *>(params.advPowerLevels), sizeof(PowerLevels_t)); + reinterpret_cast<uint8_t *>(params.advPowerLevels), sizeof(PowerLevels_t)); } private: