From 5678b22b5e465437d2a7bde93dc1acb0d79365c7 Mon Sep 17 00:00:00 2001 From: Yudi Xiao <463708580@qq.com> Date: Thu, 11 Dec 2025 16:46:49 +0800 Subject: [PATCH] =?UTF-8?q?expo-ble=E6=A8=A1=E5=9D=97=E6=B5=8B=E8=AF=95dem?= =?UTF-8?q?o=20=E8=81=94=E8=B0=83BLE=E6=A8=A1=E5=9D=97=20take=2011=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9Elog=20=E5=89=8D4=20=E4=B8=AAframe=20=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ble/services/BleProtocolService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ble/services/BleProtocolService.ts b/ble/services/BleProtocolService.ts index 2051353..119b4da 100644 --- a/ble/services/BleProtocolService.ts +++ b/ble/services/BleProtocolService.ts @@ -169,6 +169,8 @@ export class BleProtocolService { console.debug(`Sending ${total} frames`); for (let i = 0; i < total; i++) { const frame = frames[i]; + if (i < 5) + console.debug("raw frame \n", Array.from(frame).map(b => b.toString(16).padStart(2, '0')).join(' ')); console.debug(`Writing frame ${i + 1}/${total}, length = ${frame.length}`); const base64 = Buffer.from(frame).toString('base64'); const result = await this.client.write(deviceId, BLE_UUIDS.SERVICE, BLE_UUIDS.WRITE_CHARACTERISTIC, base64, false);