troystribling/BlueCap

Bluetooth device with password

Y2JChamp opened this issue · 3 comments

Hello, i have to connect to a bluetooth device that requires a password.
How can i add it programmatically or display an input field to the user?

Create a authentication service with password management characteristics? Make it secure so that the data is encrypted. You probably should also have your own layer of encryption.

Hello troy,
do u have an example code for what you have described?

Thanks a lot

There are examples that show how to set up the services and characteristics but none that implement authentication.

See https://github.com/troystribling/BlueCap/tree/master/Examples/CentralManager and https://github.com/troystribling/BlueCap/tree/master/Examples/PeripheralManager.