mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 02:55:50 +01:00
Xiaomi: Fix unencrypted support again
This commit is contained in:
parent
8333b8b8d8
commit
cd2d7d144e
@ -124,12 +124,12 @@ public abstract class XiaomiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
this.characteristicCommandRead.setEncrypted(isEncrypted());
|
this.characteristicCommandRead.setEncrypted(isEncrypted());
|
||||||
this.characteristicCommandRead.setHandler(this::handleCommandBytes);
|
this.characteristicCommandRead.setHandler(this::handleCommandBytes);
|
||||||
this.characteristicCommandWrite = new XiaomiCharacteristic(this, btCharacteristicCommandWrite, authService);
|
this.characteristicCommandWrite = new XiaomiCharacteristic(this, btCharacteristicCommandWrite, authService);
|
||||||
this.characteristicCommandRead.setEncrypted(isEncrypted());
|
this.characteristicCommandWrite.setEncrypted(isEncrypted());
|
||||||
this.characteristicActivityData = new XiaomiCharacteristic(this, btCharacteristicActivityData, authService);
|
this.characteristicActivityData = new XiaomiCharacteristic(this, btCharacteristicActivityData, authService);
|
||||||
this.characteristicActivityData.setHandler(healthService.getActivityFetcher()::addChunk);
|
this.characteristicActivityData.setHandler(healthService.getActivityFetcher()::addChunk);
|
||||||
this.characteristicCommandRead.setEncrypted(isEncrypted());
|
this.characteristicActivityData.setEncrypted(isEncrypted());
|
||||||
this.characteristicDataUpload = new XiaomiCharacteristic(this, btCharacteristicDataUpload, authService);
|
this.characteristicDataUpload = new XiaomiCharacteristic(this, btCharacteristicDataUpload, authService);
|
||||||
this.characteristicCommandRead.setEncrypted(isEncrypted());
|
this.characteristicDataUpload.setEncrypted(isEncrypted());
|
||||||
|
|
||||||
builder.requestMtu(247);
|
builder.requestMtu(247);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user