eschava / node-red-contrib-xiaomi-ble

Xiaomi Bluetooth4 (BLE) sensors
MIT License
19 stars 15 forks source link

"noble.stopScanning();" isn't working #20

Open moryoav opened 4 years ago

moryoav commented 4 years ago

I'm using one of the supported Intel-based adapters on Windows 10. Possibly because there's a long distance between the PC and the sensors, I sometimes don't get a result. I would be willing to try again and retrigger the node, but that's not possible. I realized that when I get to a timeout, the code gets stuck in line 162 (stopScanning). I tried to put another node.status after this line and it doesn't get there. And so it doesn't let me call the node again (probably node.scanningActive is still true). Is there a way to forcibly stop the scan somehow?

eschava commented 4 years ago

Could you please redirect this issue to the issue tracker of the noble library ( https://github.com/abandonware/noble ) ?