-
1.closeBluetoothAdapter: 关闭蓝牙模块 -
2.getBluetoothAdapterState: 获取本机蓝牙适配器状态
-
3.getBluetoothDevices: 获取已搜索到的蓝牙设备
-
4.getConnectedBluetoothDevices: 根据uuid获取处于已连接的设备
-
5.onBluetoothAdapterStateChange: 监听蓝牙适配器状态变化事件
-
6.onBluetoothDeviceFound: 监听搜索到新设备的事件
-
7.openBluetoothAdapter: 初始化蓝牙模块
-
8.startBluetoothDevicesDiscovery: 开始搜索附近的蓝牙设备
-
9.stopBluetoothDevicesDiscovery: 停止搜寻附近的蓝牙外围设备
-
10.closeBLEConnection: 断开与低功耗蓝牙设备的连接
-
11.createBLEConnection: 连接低功耗蓝牙设备
-
12.getBLEDeviceCharacteristics: 获取蓝牙设备指定服务中所有特征值(characteristic)
-
13.getBLEDeviceServices: 获取蓝牙设备的所有服务(service)
-
14.notifyBLECharacteristicValueChange: 启用低功耗蓝牙设备特征值变化时的notify功能,订阅特征值
-
15.onBLECharacteristicValueChange: 监听低功耗蓝牙设备的特征值变化事件
-
16.onBLEConnectionStateChange: 监听低功耗蓝牙设备连接状态变化事件
-
17.readBLECharacteristicValue: 读取低功耗蓝牙设备指定特征值的二进制数据值
-
18.writeBLECharacteristicValue: 向低功耗蓝牙设备指定特征值写入二进制数据