1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 01:55:50 +01:00
Gadgetbridge/app
MrYoranimo 44d50e6246 Xiaomi: implement requesting chunks for incomplete transactions
When using characteristics for communication with a Xiaomi protobuf
device, a chunked transaction could be sent out-of-sequence or
incomplete, which would result in either a corrupted payload or the
characteristic to halt because the device would not receive an
acknowledgement.

This changeset implements a map to store the received chunk data and
sequence number, that allows us to reassemble the payload in sequence
after confirming having received all chunks for the transaction. A list
of missing chunks is sent to the device if not all chunks have been
received and 5 seconds have passed since the last chunk was sent.
2024-12-03 19:23:26 +00:00
..
src Xiaomi: implement requesting chunks for incomplete transactions 2024-12-03 19:23:26 +00:00
build.gradle Update dependency org.robolectric:robolectric to v4.14.1 2024-11-24 09:05:44 +00:00
lint-baseline.xml Update linter baseline 2024-02-19 12:14:36 +01:00
proguard-rules.pro Update gson to 2.11.0, simplify android-emojify 2024-07-04 22:41:22 +01:00