Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package com.afunx.ble.blelitelib.operation;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
/* loaded from: classes.dex */
public class BleReadCharacteristicOperation extends BleOperationAbs<byte[]> {
private final BluetoothGatt mBluetoothGatt;
private final BluetoothGattCharacteristic mGattCharacteristic;
private BleReadCharacteristicOperation(BluetoothGatt bluetoothGatt, BluetoothGattCharacteristic bluetoothGattCharacteristic) {
this.mBluetoothGatt = bluetoothGatt;
this.mGattCharacteristic = bluetoothGattCharacteristic;
}
public static BleReadCharacteristicOperation createInstance(BluetoothGatt bluetoothGatt, BluetoothGattCharacteristic bluetoothGattCharacteristic) {
return new BleReadCharacteristicOperation(bluetoothGatt, bluetoothGattCharacteristic);
}
@Override // com.afunx.ble.blelitelib.operation.BleOperationAbs
protected void clearConcurrentOperation() {
}
@Override // com.afunx.ble.blelitelib.operation.BleOperation
public int getOperatcionCode() {
return 4;
}
@Override // com.afunx.ble.blelitelib.operation.BleOperation, java.lang.Runnable
public void run() {
this.mBluetoothGatt.readCharacteristic(this.mGattCharacteristic);
}
}