go-ble / ble

Bluetooth Low Energy for Linux / macOS
BSD 3-Clause "New" or "Revised" License
298 stars 107 forks source link

Example of pairing with a secure passkey #82

Closed srossross closed 2 years ago

srossross commented 3 years ago

@roylee17 directed me here from https://github.com/paypal/gatt/issues/46

A more maintained repo by the community can be found here: https://github.com/go-ble/ble

Are there any examples of how run a peripheral device that requires a secure passkey?

srossross commented 3 years ago

@moogle19 or @estutzenberger my team is happy to contribute these examples to the project if you could point us in the right direction

stutzenbergere commented 3 years ago

@srossross There is an example in our fork: https://github.com/rigado/ble/blob/master/examples/hrs_smp/main.go

We haven't been back porting the changes are making into this repo because we are only able to update things as needed to support our development needs. Feel free to use the fork as well however!