feat: video/gif partial support

This commit is contained in:
2026-02-04 12:37:40 +07:00
parent e1041ea845
commit 8b34e589bc
13 changed files with 1150 additions and 59 deletions
+3 -1
View File
@@ -595,11 +595,13 @@ export class BleUploader {
/**
* Send image data packets to device with batched acknowledgment waiting
* @param fullData Complete image data payload
* @param packetType Packet type for header
* @param onProgress Progress callback with (progress, status)
* @returns True if successful
*/
public async sendData(
fullData: Buffer,
packetType: PacketType,
onProgress?: (progress: number, status?: string) => void,
): Promise<boolean> {
if (!this.writeCharacteristic) {
@@ -638,7 +640,7 @@ export class BleUploader {
chunk,
totalChunks,
remainingPackets,
this.protocolConfig.cmdSubtype,
packetType,
);
logger.info(