Package 

Interface DataProvider

    • Method Summary

      Modifier and Type Method Description
      abstract Array<byte> getData(@NonNull() BluetoothDevice device) Returns the data that should be returned as Read response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getData

        @Nullable() abstract Array<byte> getData(@NonNull() BluetoothDevice device)

        Returns the data that should be returned as Read response.

        The data can be longer than MTU-1, but must not be longer than 512 bytes:

        Bluetooth LE Core Specification, version 5.2, Vol 3, Part F
        Chapter 3.2.9: Long attribute values
        "The maximum length of an attribute value shall be 512 octets."
        
        Parameters:
        device - the target device.