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}`)