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

Confusing docs on pair vs connect #42

Open ChocolateLoverRaj opened 1 year ago

ChocolateLoverRaj commented 1 year ago

I'm not sure what the difference between pair and connect is. Will pair pair the device without connecting? Will connect internally call pair first if not already paired?

Docs on pair: https://github.com/chrvadala/node-ble/blob/eb20e9c32d431df65ee5718c6c0e968b09524085/docs/api.md?plain=1#L277-L278

Doc on connect: https://github.com/chrvadala/node-ble/blob/eb20e9c32d431df65ee5718c6c0e968b09524085/docs/api.md?plain=1#L289-L290