首页IT科技低功耗蓝牙开发与实战(蓝牙-低功耗中心设备)

低功耗蓝牙开发与实战(蓝牙-低功耗中心设备)

时间2025-06-20 16:32:34分类IT科技浏览4437
导读://11.开启蓝牙适配器 openBluetoothAdapter...

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

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
python 运行命令行的代码(python命令行模式的使用流程)