meta-rpi-bt-dac
meta-rpi-bt-dac copied to clipboard
Trusted connection with PIN
Hey,
Thanks for that project. It works great. Is there a way to add a request for a PIN to make sure only my devices can connect?
Thanks, Max
Sorry for taking so long to reply. I have not been active with this project lately.
I have not tried this, but I think you should be able to set up a PIN code by implementing the RequestPinCode method (https://github.com/pauloborges/bluez/blob/master/doc/agent-api.txt#L80) for the pairing agent (https://github.com/spietika/meta-rpi-bt-dac/blob/master/recipes-connectivity/a2dp-agent/files/agent.c) which now only has the AuthorizeService method implemented.