We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d9ad6 commit 3f54b38Copy full SHA for 3f54b38
src/switchbot-ble.ts
@@ -273,6 +273,8 @@ export class SwitchBotBLE extends EventEmitter {
273
274
const p = { model: params.model || '', id: params.id || '' }
275
276
+ this.noble.removeAllListeners('discover')
277
+
278
this.noble.on('discover', async (peripheral: NobleTypes['peripheral']) => {
279
const ad = await Advertising.parse(peripheral, this.log.bind(this))
280
this.emit('debug', `Advertisement: ${ad}`)
0 commit comments