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:
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.
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.
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:
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.