expo-ble模块测试demo 联调BLE模块 take 3 添加跟多log

This commit is contained in:
Yudi Xiao
2025-12-10 20:16:05 +08:00
parent 56a5d0d45e
commit 1d3a7eba45
4 changed files with 23 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ export class FileTransferService {
return FileTransferService.instance;
}
public async transferFile(deviceId: string, filePath: string, type: number, onProgress?: (progress: number) => void): Promise<void> {
public async transferFile(deviceId: string, filePath: string, type: COMMAND_TYPES, onProgress?: (progress: number) => void): Promise<void> {
try {
const response = await fetch(filePath);
if (!response.ok) {