Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen for Beacons #1

Open
pacmac opened this issue May 3, 2020 · 3 comments
Open

Listen for Beacons #1

pacmac opened this issue May 3, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@pacmac
Copy link

pacmac commented May 3, 2020

Hi;

Very frustrated with noble so testing out your libraries.

I am able to discover my devices, but how would I use this to listen for beacon transmissions and read the device manufacturer's data ?

I don't see any method or property related to the manufacturer's data.

Id not want to connect to the device, but to simply read the raw data and decode it ?

Thanks

@chrvadala
Copy link
Owner

I know, I wrote this library because I was frustrated too by noble. :)
This project is quite new, It will allow you to get advertised data, but today I can't provide you an official release date. I hope to start working on it soon.

@chrvadala chrvadala added the enhancement New feature or request label May 3, 2020
@dzek69
Copy link

dzek69 commented Nov 29, 2020

@chrvadala
hey, any update on your progress? because project seems to be dead currently :(

i was looking for alternative to noble too, still no stable library for node

chrvadala pushed a commit that referenced this issue Dec 13, 2020
@trobstFairway
Copy link

For anyone interested, I added the function below to node-ble/src/Device.js to receive manufacturing data (useful for reading data from Beacons):

async getManfData() {
return this.helper.prop('ManufacturerData')
}

which you can call like so:

const mdata = await device.getManfData()

This returns an object whose keys are the 16-bit Manufacturer ID. You may get the raw data by doing (for example):

const mdataRaw = m[Object.keys(m)[0]].value

Hope this helps!

@chrvadala chrvadala self-assigned this Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants