35 lines
1.0 KiB
Java
35 lines
1.0 KiB
Java
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);
|
|
}
|
|
}
|