首页 > 其他分享 >蓝牙-低功耗中心设备

蓝牙-低功耗中心设备

时间:2023-03-14 10:24:19浏览次数:31  
标签:低功耗 蓝牙 开启 搜索 关闭 监听 设备

//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

标签:低功耗,蓝牙,开启,搜索,关闭,监听,设备
From: https://www.cnblogs.com/jasonlai2016/p/17213947.html

相关文章