-
@FunctionalInterface() public interface MtuCallback
-
-
Method Summary
Modifier and Type Method Description abstract voidonMtuChanged(@NonNull() BluetoothDevice device, @IntRange(from = 23, to = 517) int mtu)Method called when the MTU request has finished with success. -
-
Method Detail
-
onMtuChanged
abstract void onMtuChanged(@NonNull() BluetoothDevice device, @IntRange(from = 23, to = 517) int mtu)
Method called when the MTU request has finished with success. The MTU value maybe different than requested one. The maximum packet size is 3 bytes less then MTU.
- Parameters:
device- the target device.mtu- the new MTU (Maximum Transfer Unit).
-
-
-
-