expo-ble模块测试demo 联调BLE模块 take 3 添加跟多log
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user