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。 物理层;

相关推荐
程序员陆业聪16 小时前
两次Flutter全屏白踩坑复盘:Layout的静默失败,以及AI结对编程的认知盲区
android
程序员陆业聪17 小时前
Compose Strong Skipping Mode 的真相:它并不会让你的类型变 Stable
android
shaoming377621 小时前
浏览器动作开发:地址栏图标点击事件、弹出页面设计
android·mysql·adb
赏金术士1 天前
Kotlin 协程与挂起函数(Coroutines & suspend)入门到实战
android·开发语言·kotlin
泡泡以安1 天前
Unidbg学习笔记(十三):固定随机干扰项
android·逆向
泡泡以安1 天前
Unidbg学习笔记(十六):Console Debugger
android·逆向
赏金术士1 天前
Room + Flow 完整教程(现代 Android 官方方案)
android·kotlin·room·compose
泡泡以安1 天前
Unidbg学习笔记(八):文件系统层补环境
android·逆向
泡泡以安1 天前
Unidbg学习笔记(六):补环境的思维框架
android·逆向
通往曙光的路上1 天前
mysql2
android·adb