问题
Hi my name is yunsu lee from south korea
Because i have a just little bit english skill, i hope to your understanding about my awkward english
I have a one question.
I can not find a API of setting bluetooth pin number in bluez, when set a bluetooth connection in linux C/C++ environment
回答1:
Pins are handled by an Agent. If you want to implement your own agent read the doc in bluez/doc/agent-api.txt. In summary:
To register your agent:
void RegisterAgent(object agent, string capability)
Your agent object will need to implement some/all of the agent callbacks. For example:
string RequestPinCode(object device)
This method gets called when the service daemon needs to get the passkey for an authentication
来源:https://stackoverflow.com/questions/27632755/how-can-i-set-the-bluetooth-pin-number-in-linux-c-c