• Yes, absolutely. The easiest thing to do is to use NRF.requestDevice: http://www.espruino.com/Reference#l_NRF_¬≠requestDevice

    NRF.requestDevice({ timeout:500,  filters: [{ namePrefix: 'Puck.js' }] }).then(function(device) { 
    }).catch(function() {
     // device not in range

    In the example above I added a timeout of 0.5 sec (the default is 2). When Scanning the device uses quite a lot of power compared to normal, so really you want to scan as rarely and for as short a period as possible (unless you're not battery powered of course).


Avatar for Gordon @Gordon started