如何启动蓝牙配对过程? [英] How to start bluetooth pairing process?
问题描述
我的PC和数据库上有一个Java应用程序。在DB中有一些MAC
和PIN数据。
I have an Java application on my PC and database.There are some MAC and PIN data in DB.
我正在发送消息(现在它的文本文件通过OBEX put方法,但在
以后它将是短信我希望:)),所以当我发现了一些
设备,然后发现所需的服务我正在寻找数据库,如果数据库中的
手机MAC我需要开始使用预定义的PIN配对。
我编码了所有的过程,除了PAIRING ...如何初始化
呢?
I'm sending messages (now it's text files over OBEX put method, but in future it will be SMS messages i hope :) ), so when i discover some device, then discover needed service i'm looking to the DB and if the phone MAC in the DB i need to start PAIRING with predefined PIN. I've coded all the process, except the PAIRING... How to initialize it ?
推荐答案
您必须注册一个passkey-agent,在请求时输入PIN。更多信息此处。
You have to register a passkey-agent which inputs the PIN when it is requested. More info here.
这篇关于如何启动蓝牙配对过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!