蓝牙-低功耗中心设备

  • 蓝牙-低功耗中心设备已关闭评论
  • 81 次浏览
  • A+
所属分类:Web前端
摘要

//11.开启蓝牙适配器 openBluetoothAdapter
//21.开始搜索蓝牙设备 startBluetoothDevicesDiscovery
//31.开启监听搜索蓝牙设备 onBluetoothDeviceFound
//30.停止监听搜索蓝牙设备 offBluetoothDeviceFound
//20.停止搜索蓝牙设备 stopBluetoothDevicesDiscovery
//10.关闭蓝牙适配器 closeBluetoothAdapter

//11.开启蓝牙适配器 openBluetoothAdapter
//21.开始搜索蓝牙设备 startBluetoothDevicesDiscovery
//31.开启监听搜索蓝牙设备 onBluetoothDeviceFound
//30.停止监听搜索蓝牙设备 offBluetoothDeviceFound
//20.停止搜索蓝牙设备 stopBluetoothDevicesDiscovery
//10.关闭蓝牙适配器 closeBluetoothAdapter

//41.连接设备 createBLEConnection
//51.监听设备连接状态 onBLEConnectionStateChange
//61.获取设备服务 getBLEDeviceServices
//71.获取设备特征 getBLEDeviceCharacteristics
//81.开启特征变化订阅 notifyBLECharacteristicValueChange -true
//91.开启监听特征值变化 onBLECharacteristicValueChange
//90.关闭监听特征值变化 offBLECharacteristicValueChange
//80.关闭特征变化订阅 notifyBLECharacteristicValueChange - false
//50.关闭监听设备连接状态 offBLEConnectionStateChange
//40.断开设备 closeBLEConnection