Hi - if you're trying to receive beacon data you don't actually need to be connected. Just the following code:
NRF.requestDevice({ filters: [{ services: ['e20a39f4-73f5-4bc4-a12f-17d1ad07a961'] }] }).then(function(d) { console.log("found device", d);
Is probably enough. Does the manufacturerData field (reported as new Uint8Array([16, 2, 11, 64]).buffer) contain the data that you need?
manufacturerData
new Uint8Array([16, 2, 11, 64]).buffer
@Gordon started
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.
Hi - if you're trying to receive beacon data you don't actually need to be connected. Just the following code:
Is probably enough. Does the
manufacturerData
field (reported asnew Uint8Array([16, 2, 11, 64]).buffer
) contain the data that you need?