From bca072e3ac69a1005810a9e28fe172d8e6a34b60 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Mon, 1 Dec 2014 11:07:30 +0000 Subject: [PATCH] add updateLockedStateCharacteristic() --- services/URIBeaconConfigService.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/URIBeaconConfigService.h b/services/URIBeaconConfigService.h index 04f71f1..947cc13 100644 --- a/services/URIBeaconConfigService.h +++ b/services/URIBeaconConfigService.h @@ -316,16 +316,22 @@ private: 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(&lockedState), sizeof(lockedState)); + } + void updateURIDataCharacteristic(void) { ble.updateCharacteristicValue(uriDataChar.getValueAttribute().getHandle(), uriData, uriDataLength); }