Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more
Diff: services/URIBeaconConfigService.h
- Revision:
- 214:7d79fa197212
- Parent:
- 213:ac3b745af1d0
- Child:
- 215:f9d0169b9c28
--- a/services/URIBeaconConfigService.h Mon Dec 01 14:31:18 2014 +0000 +++ b/services/URIBeaconConfigService.h Mon Dec 01 14:31:19 2014 +0000 @@ -316,16 +316,22 @@ flags = 0; effectiveTxPower = 0; beaconPeriod = 0; + lockedState = false; updateGATT(); } void updateGATT(void) { + updateLockedStateCharacteristic(); updateURIDataCharacteristic(); updateFlagsCharacteristic(); updateBeaconPeriodCharacteristic(); } + void updateLockedStateCharacteristic(void) { + ble.updateCharacteristicValue(lockedStateChar.getValueAttribute().getHandle(), reinterpret_cast<uint8_t *>(&lockedState), sizeof(lockedState)); + } + void updateURIDataCharacteristic(void) { ble.updateCharacteristicValue(uriDataChar.getValueAttribute().getHandle(), uriData, uriDataLength); }