lsongdev / node-bluetooth

:large_blue_diamond:😬Bluetooth serial port communication for Node.js
https://npmjs.org/node-bluetooth
Other
197 stars 56 forks source link

Is there a way to get channel information? #12

Closed danshev closed 6 years ago

danshev commented 6 years ago

If we want to connect to a device, we need address & channel.

device.listPairedDevices(console.log); does not return channel ... so how do we get it?

lsongdev commented 6 years ago

use device.findSerialPortChannel to get channel information, and call connect to a device .