Package 

Interface MtuCallback

    • Method Summary

      Modifier and Type Method Description
      abstract void onMtuChanged(@NonNull() BluetoothDevice device, @IntRange(from = 23, to = 517) int mtu) Method called when the MTU request has finished with success.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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).