noble / noble-device

A Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble
MIT License
97 stars 66 forks source link

Addition of "stopDiscover*" methods #10

Open raykamp opened 9 years ago

raykamp commented 9 years ago

This feature request came from this issue: https://github.com/sandeepmistry/noble-device/issues/9#issuecomment-100063639

"It seems like there should be a way to have a user request that a discovery attempt should end. If I call "discoverAll", then I can end this attempt by calling "stopDiscoverAll" with the same listener function. If I call "discover", "discoverWithFilter", or "discoverByUuid" then I'm unable to cancel these discovery attempts."