|
|
@@ -1,104 +1,105 @@
|
|
|
-
|
|
|
const getDeviceList = function() {
|
|
|
-
|
|
|
- let deviceList = [
|
|
|
- {
|
|
|
- id: 0,
|
|
|
- cname: "CL806",
|
|
|
- ename: "CL806_Bandage",
|
|
|
- icon: "/static/devicesIcon/bandage.png",
|
|
|
- mIcon: "/static/devicesIcon/bandage.png",
|
|
|
- bRatio: false,
|
|
|
- usageMode: 'CL806',
|
|
|
- describe: '胸口绑带',
|
|
|
- limitType: 'rebound', //限制回弹版本
|
|
|
- deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
- deviceName: 'CL806', //连接硬件名称
|
|
|
- limitDis: 0.5,
|
|
|
- /**
|
|
|
- * 主服务的 uuid Cofing
|
|
|
- */
|
|
|
- primaryUUID: '', //蓝牙主服务id
|
|
|
- PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
- /***********/
|
|
|
- currentVersion: '', //当前固件版本
|
|
|
- latestVersion: '' //服务器最新固件版本
|
|
|
- },
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- cname: "CL831",
|
|
|
- ename: "CL831_Bandage",
|
|
|
- icon: "/static/devicesIcon/bandage.png",
|
|
|
- mIcon: "/static/devicesIcon/bandage.png",
|
|
|
- bRatio: false,
|
|
|
- usageMode: 'CL831',
|
|
|
- describe: '手部绑带',
|
|
|
- limitType: 'rebound', //限制回弹版本
|
|
|
- deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
- deviceName: 'CL831', //连接硬件名称
|
|
|
- limitDis: 0.5,
|
|
|
- /**
|
|
|
- * 主服务的 uuid Cofing
|
|
|
- */
|
|
|
- primaryUUID: '', //蓝牙主服务id
|
|
|
- PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
- /***********/
|
|
|
- currentVersion: '', //当前固件版本
|
|
|
- latestVersion: '' //服务器最新固件版本
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- cname: "CL809",
|
|
|
- ename: "CL809_Bandage",
|
|
|
- icon: "/static/devicesIcon/bandage.png",
|
|
|
- mIcon: "/static/devicesIcon/bandage.png",
|
|
|
- bRatio: false,
|
|
|
- usageMode: 'CL809',
|
|
|
- describe: '胸口绑带',
|
|
|
- limitType: 'rebound', //限制回弹版本
|
|
|
- deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
- deviceName: 'CL809', //连接硬件名称
|
|
|
- limitDis: 0.5,
|
|
|
- /**
|
|
|
- * 主服务的 uuid Cofing
|
|
|
- */
|
|
|
- primaryUUID: '', //蓝牙主服务id
|
|
|
- PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
- /***********/
|
|
|
- currentVersion: '', //当前固件版本
|
|
|
- latestVersion: '' //服务器最新固件版本
|
|
|
- },
|
|
|
- {
|
|
|
- id: 3,
|
|
|
- cname: "心率带",//CL838
|
|
|
- ename: "CL_Bandage", //CL838_Bandage
|
|
|
- icon: "/static/heart/device838@2x.png",
|
|
|
- mIcon: "/static/heart/device838@2x.png",
|
|
|
- bRatio: false,
|
|
|
- usageMode: 'CL', //CL838
|
|
|
- describe: '心率带',
|
|
|
- limitType: 'rebound', //限制回弹版本
|
|
|
- deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
- deviceName: 'CL', //连接硬件名称 CL838
|
|
|
- limitDis: 0.5,
|
|
|
- /**
|
|
|
- * 主服务的 uuid Cofing
|
|
|
- */
|
|
|
- primaryUUID: '', //蓝牙主服务id
|
|
|
- PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
- PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
- /***********/
|
|
|
- currentVersion: '', //当前固件版本
|
|
|
- latestVersion: '' //服务器最新固件版本
|
|
|
- }
|
|
|
- ];
|
|
|
+
|
|
|
+ let deviceList = [{
|
|
|
+ id: 0,
|
|
|
+ cname: "CL806",
|
|
|
+ ename: "CL806_Bandage",
|
|
|
+ icon: "/static/devicesIcon/bandage.png",
|
|
|
+ mIcon: "/static/devicesIcon/bandage.png",
|
|
|
+ bRatio: false,
|
|
|
+ usageMode: 'CL806',
|
|
|
+ describe: '胸口绑带',
|
|
|
+ limitType: 'rebound', //限制回弹版本
|
|
|
+ deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
+ deviceName: 'CL806', //连接硬件名称
|
|
|
+ limitDis: 0.5,
|
|
|
+ /**
|
|
|
+ * 主服务的 uuid Cofing
|
|
|
+ */
|
|
|
+ primaryUUID: '', //蓝牙主服务id
|
|
|
+ PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
+ /***********/
|
|
|
+ currentVersion: '', //当前固件版本
|
|
|
+ latestVersion: '' //服务器最新固件版本
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 1,
|
|
|
+ cname: "CL831",
|
|
|
+ ename: "CL831_Bandage",
|
|
|
+ icon: "/static/devicesIcon/bandage.png",
|
|
|
+ mIcon: "/static/devicesIcon/bandage.png",
|
|
|
+ bRatio: false,
|
|
|
+ usageMode: 'CL831',
|
|
|
+ describe: '手部绑带',
|
|
|
+ limitType: 'rebound', //限制回弹版本
|
|
|
+ deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
+ deviceName: 'CL831', //连接硬件名称
|
|
|
+ limitDis: 0.5,
|
|
|
+ /**
|
|
|
+ * 主服务的 uuid Cofing
|
|
|
+ */
|
|
|
+ primaryUUID: '', //蓝牙主服务id
|
|
|
+ PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
+ /***********/
|
|
|
+ currentVersion: '', //当前固件版本
|
|
|
+ latestVersion: '' //服务器最新固件版本
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ cname: "CL809",
|
|
|
+ ename: "CL809_Bandage",
|
|
|
+ icon: "/static/devicesIcon/bandage.png",
|
|
|
+ mIcon: "/static/devicesIcon/bandage.png",
|
|
|
+ bRatio: false,
|
|
|
+ usageMode: 'CL809',
|
|
|
+ describe: '胸口绑带',
|
|
|
+ limitType: 'rebound', //限制回弹版本
|
|
|
+ deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
+ deviceName: 'CL809', //连接硬件名称
|
|
|
+ limitDis: 0.5,
|
|
|
+ /**
|
|
|
+ * 主服务的 uuid Cofing
|
|
|
+ */
|
|
|
+ primaryUUID: '', //蓝牙主服务id
|
|
|
+ PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
+ /***********/
|
|
|
+ currentVersion: '', //当前固件版本
|
|
|
+ latestVersion: '' //服务器最新固件版本
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ cname: "心率带", //CL838
|
|
|
+ ename: "CL_Bandage", //CL838_Bandage
|
|
|
+ icon: "/static/heart/device838@2x.png",
|
|
|
+ mIcon: "/static/heart/device838@2x.png",
|
|
|
+ bRatio: false,
|
|
|
+ usageMode: 'CL', //CL838
|
|
|
+ describe: '心率带',
|
|
|
+ limitType: 'rebound', //限制回弹版本
|
|
|
+ deviceType: 'Hardware', //指的是使用手机本身加速计计算
|
|
|
+ deviceName: 'CL', //连接硬件名称 CL838
|
|
|
+ limitDis: 0.5,
|
|
|
+ /**
|
|
|
+ * 主服务的 uuid Cofing
|
|
|
+ */
|
|
|
+ primaryUUID: '', //蓝牙主服务id
|
|
|
+ PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
|
|
|
+ PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
|
|
|
+ //电量
|
|
|
+ BATTERY_SERVICE_UUID: '0000180F-0000-1000-8000-00805f9b34fb',
|
|
|
+ BATTERY_LEVEL_CHARACTERISTIC_UUID: '00002A19-0000-1000-8000-00805f9b34fb',
|
|
|
+ /***********/
|
|
|
+ currentVersion: '', //当前固件版本
|
|
|
+ latestVersion: '' //服务器最新固件版本
|
|
|
+ }
|
|
|
+ ];
|
|
|
|
|
|
return deviceList;
|
|
|
}
|