From fda66f8773619d527c313dda874ca4f5541aad4a Mon Sep 17 00:00:00 2001 From: Jeongmin An Date: Wed, 4 Dec 2024 03:05:55 +0900 Subject: [PATCH] feat: Advertisement packet data logging --- src/device/device.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/device/device.ts b/src/device/device.ts index 02ca1779..edda8f51 100644 --- a/src/device/device.ts +++ b/src/device/device.ts @@ -312,6 +312,7 @@ export abstract class deviceBase { // Set an event handler let serviceData = { model: this.device.bleModel, modelName: this.device.bleModelName } as ad['serviceData'] switchbot.onadvertisement = (ad: ad) => { + this.debugLog(`ad: ${JSON.stringify(ad, null, ' ')}`) if (this.device.bleMac === ad.address && ad.serviceData.model === this.device.bleModel) { this.debugLog(`${JSON.stringify(ad, null, ' ')}`) this.debugLog(`address: ${ad.address}, model: ${ad.serviceData.model}`)