android 蓝牙技术 学习记录 二

android 蓝牙连接 关键类

BluetoothDevice--------------------蓝牙设备

BluetoothGattCallback--------------连接回调

BluetoothGatt----------------------gatt

  1. public BluetoothGatt connectGatt(Context context, boolean autoConnect,

BluetoothGattCallback callback) ;

2.public BluetoothGatt connectGatt(Context context, boolean autoConnect,

BluetoothGattCallback callback, int transport) ;

3.public BluetoothGatt connect Gatt(Context context, boolean autoConnect,

BluetoothGattCallback callback, int transport, int phy) ;

4.public BluetoothGatt connectGatt(Context context, boolean autoConnect,

BluetoothGattCallback callback, int transport, int phy,

Handler handler) ;

5.public BluetoothGatt connectGatt(Context context, boolean autoConnect,

BluetoothGattCallback callback, int transport, boolean opportunistic, int phy, Handler handler) ; *

----autoConnect 是否自动连接参数。

----transport 是否低功耗。

-----phy。 物理层;

相关推荐
重生之我在安卓搞音频20 小时前
二、Android 音频框架
android·音视频
studyForMokey20 小时前
【Android面试】Java专题 todo
android·java·面试
代码改善世界20 小时前
【MATLAB初阶】矩阵操作(二):矩阵的运算
android·matlab·矩阵
九皇叔叔20 小时前
MySQL实操指南:复制表及数据复制全解析
android·数据库·mysql
梦想不只是梦与想21 小时前
flutter 与 Android iOS 通信?以及实现原理(一)
android·flutter·ios·methodchannel·eventchannel·basicmessage
Lambert_lin01 天前
Android grade9.0 之后 自定义apk 名称
android·kotlin
fengci.1 天前
ctfshow其他(web408-web432)
android·开发语言·前端·学习·php
Kapaseker1 天前
“点击显示全文” — Compose 实现
android·kotlin
lxysbly1 天前
安卓土星ss模拟器下载(支持中文、金手指)
android
程序员陆业聪1 天前
异步初始化框架设计:用拓扑排序干掉启动串行瓶颈
android