chrvadala / node-ble

Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus
https://www.npmjs.com/package/node-ble
MIT License
310 stars 45 forks source link

Filter by services #22

Open Bunagana opened 3 years ago

Bunagana commented 3 years ago

Hi @chrvadala, Thank you for this project. Is there a way to discover devices by services? Is there a way to get the name of devices instead of the uuid when calling getDevices()? Thanks

chrvadala commented 3 years ago

This feature isn't supported by the underling Bluez component, so you have to go through every device and ask its name.

In a future release I could introduce an helper function that cycle on each device and get its name for you.

Thanks for the suggestion

rabee05 commented 3 years ago

Hello @chrvadala, I am wondering if you have ever tried using "AdvertisingData" from the device-api(d-bus), it still says experimental. dict AdvertisingData [readonly, experimental]

Do you have any thoughts or recommendations how to get the data from a remote device GAP?

Thanks, R