如果订阅这个专栏了我建议你先看看 蓝牙助手的介绍以及使用 然后在看这篇文章
1.蓝牙初始化状态(my.openBluetoothAdapter)
2.监听手机蓝牙状态(my.onBluetoothAdapterStateChange)
2.监听蓝牙连接状态(my.onBLEConnectionStateChanged)
3.搜索周边蓝牙设备(my.startBluetoothDevicesDiscovery)
4.监听搜索到的周边设备( my.onBluetoothDeviceFound)
5.停止周边搜索、移除监听搜索( my.stopBluetoothDevicesDiscovery、my.offBluetoothDeviceFound())
6.连接蓝牙设备(my.connectBLEDevice)
7.获取服务(my.getBLEDeviceServices)
8.获取特征值(my.getBLEDeviceCharacteristics)
9.监听订阅、开启订阅(my.onBLECharacteristicValueChange、 my.notifyBLECharacteristicValueChan