tinygo-org / bluetooth

Cross-platform Bluetooth API for Go and TinyGo. Supports Linux, macOS, Windows, and bare metal using Nordic SoftDevice or HCI
https://tinygo.org
Other
729 stars 136 forks source link

Question: How do I pair devices with security code? #276

Open Aukstkalnis opened 4 months ago

Aukstkalnis commented 4 months ago

Hello. I am trying to find out how to pair to a central device that requires a pairing key. I could not find any info in the examples. Should I use another library for this purpose? Or should I directly interact with bluetoochctl (a.k.a bluez)?

Use case: I am writhing application that connects to device, makes some configuration and disconnects. So, there will be a lot of devices and each has its own pairing code.