Initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.afunx.ble.blelitelib.operation;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.bluetooth.BluetoothGatt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BleRequestMtuOperation extends BleOperationAbs {
|
||||
private final BluetoothGatt mBluetoothGatt;
|
||||
private final int mMTU;
|
||||
|
||||
private BleRequestMtuOperation(BluetoothGatt bluetoothGatt, int i) {
|
||||
this.mBluetoothGatt = bluetoothGatt;
|
||||
this.mMTU = i;
|
||||
}
|
||||
|
||||
public static BleRequestMtuOperation createInstance(BluetoothGatt bluetoothGatt, int i) {
|
||||
return new BleRequestMtuOperation(bluetoothGatt, i);
|
||||
}
|
||||
|
||||
@Override // com.afunx.ble.blelitelib.operation.BleOperationAbs
|
||||
protected void clearConcurrentOperation() {
|
||||
}
|
||||
|
||||
@Override // com.afunx.ble.blelitelib.operation.BleOperation
|
||||
public int getOperatcionCode() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override // com.afunx.ble.blelitelib.operation.BleOperation, java.lang.Runnable
|
||||
@TargetApi(21)
|
||||
public void run() {
|
||||
this.mBluetoothGatt.requestMtu(this.mMTU);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user