低功耗蓝牙

时间:2020-05-15 08:10:08
【文件属性】:
文件名称:低功耗蓝牙
文件大小:17KB
文件格式:JAR
更新时间:2020-05-15 08:10:08
AndroidBLE BLEHandle是该包的主要操作对象 1.BLEHandle获取对象BLEHandle.getinstance() 2.setTime()设置蓝牙的扫描时间 3.setBLEitems()设置蓝牙的每包发送间隔 4.setwriteUUID设置书写uuid 5.setnotifitionUUID()通知的uuid 6.stopTime()停止计时 7.bleEnabled()查看蓝牙是否开启 8.supported()判断APP是否支持低功耗蓝牙 9.scanBlutoothDevices()扫描周围低功耗蓝牙设备,可以指定扫描的蓝牙MAC 10.stopLeScan()停止蓝牙扫描 11.countBlutooth()链接蓝牙设备 12.disConnect()断开链接 13.closeConnect()关闭连接 14.BindingServices()绑定蓝牙services 15.unBindingServices()解绑蓝牙services 16.writeCharacteristic()写数据,过长会自动拆包的 17.AndroidManifest.xml配置权限 18.外加注册一个服务

网友评论