-
@FunctionalInterface() public interface ReadProgressCallback
-
-
Method Summary
Modifier and Type Method Description abstract voidonPacketReceived(@NonNull() BluetoothDevice device, @Nullable() Array<byte> data, @IntRange(from = 0) int index)Callback received each time the value was read or has changed using notifications orindications when DataMerger was used. -
-
Method Detail
-
onPacketReceived
abstract void onPacketReceived(@NonNull() BluetoothDevice device, @Nullable() Array<byte> data, @IntRange(from = 0) int index)
Callback received each time the value was read or has changed using notifications orindications when DataMerger was used.
- Parameters:
device- the target device.data- the last packet received.index- the index of a packet that will be merged into a single Data.
-
-
-
-