清log
openBluetoothAdapter打开蓝牙(初始化蓝牙适配器)
closeBluetoothAdapter关闭蓝牙模块
getBondDevice获取已配对的蓝牙
连接蓝牙
写数据到蓝牙设备
断开蓝牙设备连接
getBluetoothAdapterState获取本机蓝牙适配器状态
startBluetoothDevicesDiscovery开始搜寻附近的蓝牙外围设备
stopBluetoothDevicesDiscovery停止搜寻附近的蓝牙外围设备
getBluetoothDevices获取所有已发现的蓝牙设备
getConnectedBluetoothDevices根据 uuid 获取处于已连接状态的设备
createBLEConnection连接低功耗蓝牙设备
closeBLEConnection断开与低功耗蓝牙设备的连接
getBLEDeviceServices获取蓝牙设备所有 service(服务)
getBLEDeviceCharacteristics获取蓝牙设备所有 characteristic(特征值)
readBLECharacteristicValue读取低功耗蓝牙设备的特征值的二进制数据值
writeBLECharacteristicValue向低功耗蓝牙设备特征值中写入二进制数据
notifyBLECharacteristicValueChange启用低功耗蓝牙设备特征值变化时的 notify 功能
onBluetoothAdapterStateChange 蓝牙状态变更通知 功能
onBluetoothDeviceFound 蓝牙设备被找到回调
onBLEConnectionStateChange 低功耗蓝牙连接状态
onBLECharacteristicValueChange 低功耗蓝牙特征值改变通知
onBluetoothConnectionStateChange 蓝牙连接状态通知
BLEPrint 往打印机写数据