We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be9d50 commit 48eff78Copy full SHA for 48eff78
src/switchbot-ble.ts
@@ -300,7 +300,11 @@ export class SwitchBotBLE extends EventEmitter {
300
301
this.noble.on('discover', async (peripheral: NobleTypes['peripheral']) => {
302
const ad = await Advertising.parse(peripheral, this.log.bind(this))
303
+ this.emit('debug', `Advertisement: ${ad}`)
304
+ this.emit('debug', `Filter ID: ${p.id}`)
305
+ this.emit('debug', `Filter Model: ${p.model}`)
306
if (ad && await this.filterAd(ad, p.id, p.model)) {
307
+ this.emit('debug', `Advertisement passed filter: ${ad}`)
308
if (this.onadvertisement) {
309
this.onadvertisement(ad)
310
}
0 commit comments