android 蓝牙开发listenUsingInsecureRfcommWithServiceRecord方法

查看:906
本文介绍了android 蓝牙开发listenUsingInsecureRfcommWithServiceRecord方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

listenUsingInsecureRfcommWithServiceRecord(String name, UUID uuid)
Create a listening, insecure RFCOMM Bluetooth socket with Service Record.

listenUsingRfcommWithServiceRecord(String name, UUID uuid)
Create a listening, secure RFCOMM Bluetooth socket with Service Record.

这两个方法有什么区别?

解决方案

我个人不是太清楚,一些有些用处的解释是,这两个方法一个是安全的,一个是不安全的连接。
比如:蓝牙耳机就是不安全的设备,当然还有其他。
另外有说法是使用不安全的方法,可以不同过key进行配对,具体其实题主自己通过可用的设备测试可能会好点。

这篇关于android 蓝牙开发listenUsingInsecureRfcommWithServiceRecord方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆