Bluetooth device with password
Y2JChamp opened this issue · 3 comments
Y2JChamp commented
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?
troystribling commented
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.
Y2JChamp commented
Hello troy,
do u have an example code for what you have described?
Thanks a lot
troystribling commented
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.