const getDeviceList = function() { let deviceList = [ { id: 0, cname: "手机绑带", ename: "mobilePhoneBandage", icon: "/static/devicesIcon/bandage.png", mIcon: "/static/devicesIcon/bandage.png", bRatio: false, usageMode: 'phone', describe: '手机情景下使用', limitType: 'rebound', //限制回弹版本 deviceType: 'mySelf', //指的是使用手机本身加速计计算 deviceName: 'ITAG', //连接硬件名称 limitDis: 0.5, /** * 主服务的 uuid Cofing */ primaryUUID: '', //蓝牙主服务id PRIMARY_SERVICE: '', PRIMARY_WRITE: '', PRIMARY_NOTIFY: '', /***********/ currentVersion: '', //当前固件版本 latestVersion: '' //服务器最新固件版本 }, { id: 1, cname: "HOTMAN", ename: "hotman", icon: "/static/devicesIcon/hotman.png", mIcon: "/static/devicesIconSimple/hotman.png", bRatio: false, usageMode: "hotman", //使用模式,在hotman情景下使用 describe: 'hotman情景下使用,快速打击模式', limitType: 'noRebound', //不限制回弹版本 deviceType: 'BLEHandle', //使用设备,蓝牙手柄 deviceName: 'BGBox', // 使用设备名称:PBox-000000b BGBox_202012 limitDis: 100, //限制距离 米 /** * 主服务的 uuid Cofing */ primaryUUID: 'FFF0', //蓝牙主服务id PRIMARY_SERVICE: '0000FFF0-0000-1000-8000-00805F9B34FB', PRIMARY_WRITE: '0000FFF2-0000-1000-8000-00805F9B34FB', PRIMARY_NOTIFY: '0000FFF1-0000-1000-8000-00805F9B34FB', /***********/ currentVersion: '', //当前固件版本 latestVersion: '' //服务器最新固件版本 }, { id: 2, cname: "普通模式", ename: "BLEHandle", icon: "/static/devicesIcon/handle.png", mIcon: "/static/devicesIconSimple/handle.png", bRatio: false, usageMode: "general", //通用情况,根据需求处理 describe: '自由情景下使用', limitType: 'rebound', //app处理蓝牙发送的数据 deviceType: 'BLEHandle', //指的是外部蓝牙,目前定义为BLEHandle deviceName: 'BGBox', //连接的设备名称 limitDis: 100, // /** * 主服务的 uuid Cofing */ primaryUUID: 'FFF0', //蓝牙主服务id PRIMARY_SERVICE: '0000FFF0-0000-1000-8000-00805F9B34FB', PRIMARY_WRITE: '0000FFF2-0000-1000-8000-00805F9B34FB', PRIMARY_NOTIFY: '0000FFF1-0000-1000-8000-00805F9B34FB', /***********/ currentVersion: '1.2.0', //当前固件版本 latestVersion: '1.2.0' //服务器最新固件版本 }, { id: 3, cname: "跳绳模式", ename: "rope", icon: "/static/devicesIcon/rope.png", mIcon: "/static/devicesIconSimple/rope_icon@2x.png", bRatio: false, usageMode: "ropeSkipping", //通用情况,根据需求处理 describe: '跳绳模式下使用', limitType: 'rebound', //app处理蓝牙发送的数据 deviceType: 'BLERope', //指的是外部蓝牙,目前定义为BLERope deviceName: 'Rope', //连接的设备名称 limitDis: 100, // /** * 主服务的 uuid Cofing */ primaryUUID: 'FFF0', //蓝牙主服务id PRIMARY_SERVICE: '0000FFF0-0000-1000-8000-00805F9B34FB', PRIMARY_WRITE: '0000FFF2-0000-1000-8000-00805F9B34FB', PRIMARY_NOTIFY: '0000FFF1-0000-1000-8000-00805F9B34FB', /***********/ currentVersion: '1.2.0', //当前固件版本 latestVersion: '1.2.0' //服务器最新固件版本 } ]; return deviceList; } export default { getDeviceList }