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

How to get device name? #58

Closed DrCWO closed 3 months ago

DrCWO commented 1 year ago

I experimented a bit and knowing the UUID of the device I can work with it. As I found I can get the list of the UUIDs of the discovered devices.

How can I find out the name of the device belonging to the UUID? Background: I like to connect to a special device who's name I will know but not its UUID.

A hint would be appreciated.

Thanks DrCWO

chrvadala commented 3 months ago

With this method you can get the device name https://github.com/chrvadala/node-ble/blob/main/docs/api.md#Device+getName