问题描述
你好,我叫南韩的李允素
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
我有一个问题.
在linux C/C ++环境中设置蓝牙连接时,我找不到在bluez中设置蓝牙针脚编号的API
I can not find a API of setting bluetooth pin number in bluez, when set a bluetooth connection in linux C/C++ environment
推荐答案
引脚由代理处理.如果要实现自己的代理,请阅读bluez/doc/agent-api.txt中的文档.总结:
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:
要注册您的代理商:
void RegisterAgent(对象代理,字符串功能)
void RegisterAgent(object agent, string capability)
您的代理对象将需要实现一些/所有代理回调.例如:
Your agent object will need to implement some/all of the agent callbacks. For example:
RequestPinCode字符串(对象设备)
string RequestPinCode(object device)
服务守护程序调用此方法需要获取用于身份验证的密码
This method gets called when the service daemon needs to get the passkey for an authentication
这篇关于如何在linux C/C ++中设置蓝牙针脚号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!