34 lines
1.3 KiB
Java
34 lines
1.3 KiB
Java
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);
|
|
}
|
|
}
|