1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 10:35:50 +01:00

Xiaomi: Fix unencrypted support again

This commit is contained in:
Andreas Shimokawa 2023-10-20 17:45:23 +02:00 committed by José Rebelo
parent 8333b8b8d8
commit cd2d7d144e

View File

@ -124,12 +124,12 @@ public abstract class XiaomiSupport extends AbstractBTLEDeviceSupport {
this.characteristicCommandRead.setEncrypted(isEncrypted());
this.characteristicCommandRead.setHandler(this::handleCommandBytes);
this.characteristicCommandWrite = new XiaomiCharacteristic(this, btCharacteristicCommandWrite, authService);
this.characteristicCommandRead.setEncrypted(isEncrypted());
this.characteristicCommandWrite.setEncrypted(isEncrypted());
this.characteristicActivityData = new XiaomiCharacteristic(this, btCharacteristicActivityData, authService);
this.characteristicActivityData.setHandler(healthService.getActivityFetcher()::addChunk);
this.characteristicCommandRead.setEncrypted(isEncrypted());
this.characteristicActivityData.setEncrypted(isEncrypted());
this.characteristicDataUpload = new XiaomiCharacteristic(this, btCharacteristicDataUpload, authService);
this.characteristicCommandRead.setEncrypted(isEncrypted());
this.characteristicDataUpload.setEncrypted(isEncrypted());
builder.requestMtu(247);