质检测量工具配套插件,目前支持仪器:
1:迈测手持激光测距仪
2:联睿科智能靠尺
3:回弹仪
4:楼板测厚仪
5: 朗睿回弹仪
文档参考: 工程质量蓝牙数据传输通信协议汇承HC-08BLE串口模块使用规格书
| 客户端 | Android | iOS |
|---|---|---|
| 支持说明 | 支持 | 支持 |
1、iOS系统无法获取蓝牙设备MAC地址,用UUID来代表蓝牙设备的地址。
2、iOS,在使用蓝牙设备需要在hook中添加蓝牙隐私权限:
// 获取info.plist配置文件对象:plistObj
......
plistObj.NSBluetoothAlwaysUsageDescription = '如果不允许,可能导致应用功能无法正常使用';
plistObj. NSBluetoothPeripheralUsageDescription = '如果不允许,可能导致应用功能无法正常使用';
| API名称 | 说明 |
|---|---|
| init | 插件初始化 |
| getDeviceClass | 获取设备类型 |
| registerBlueToothObserver | 监听手机蓝牙开关的状态 |
| resignBlueToothObserver | 注销对手机蓝牙开关的状态监听 |
| getConnectedDevices | 获取已连接设备列表 |
| searchDevice | 搜索设备 |
| stopSearchDevice | 停止搜索设备 |
| connectDevice | 连接设备 |
| disconnectDevice | 断开设备 |
| disconnectAllDevices | 断开所有设备 |