Initial commit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user