add updateLockedStateCharacteristic()
This commit is contained in:
parent
0c38a1e8ef
commit
bca072e3ac
1 changed files with 6 additions and 0 deletions
|
@ -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<uint8_t *>(&lockedState), sizeof(lockedState));
|
||||
}
|
||||
|
||||
void updateURIDataCharacteristic(void) {
|
||||
ble.updateCharacteristicValue(uriDataChar.getValueAttribute().getHandle(), uriData, uriDataLength);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue