One thing that might help is stopping the system Bluetooth (sudo /etc/init.d/bluetooth stop). I think what can happen is the system starts its own scan for available Bluetooth devices, then stop scanning when it's finished, which stops Noble's scan.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
One thing that might help is stopping the system Bluetooth (
sudo /etc/init.d/bluetooth stop
). I think what can happen is the system starts its own scan for available Bluetooth devices, then stop scanning when it's finished, which stops Noble's scan.You could also try handling the
scanStop
event and using it to start scanning again? https://github.com/noble/noble/blob/master/README.md#scan-stopped