You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I probably wouldn't change NRF.requestDevice since that's meant to work the same as the standard 'Web Bluetooth' one, but something like that could easily be a library.

    I don't have any Eddystone UUID beacons here so can't be a huge amount of help, but can you post up what you're getting from NRF.findDevices(print) for some Eddystone beacons that you know the UUID of so I can see exactly what we're getting and how to extract it?

    Once I know what bit of data needs to be extracted I imagine what you're after will look a lot like:

    NRF.findDevices(function(devices) {
      var yourDevices = devices.filter(d=>d.servicedata && d.servicedata["..."]==something);
      // ...
    }, 1000);
    

    So it shouldn't be too hard to work with. If you want to connect I believe you can just do yourDevices[0].connect - only difference is you get to be able to deal with >1 beacon if you found them.

About

Avatar for Gordon @Gordon started