| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- 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: "BLEHandle",
- // icon: "/static/devicesIcon/handle.png",
- // mIcon: "/static/devicesIconSimple/handle.png",
- // bRatio: false,
- // usageMode: "jump", //跳
- // describe: '跳的情景下使用,不限制回弹。',
- // limitType: 'noRebound', //app处理蓝牙发送的数据
- // deviceType: 'BLEHandle', //指的是外部蓝牙,目前定义为BLEHandle
- // deviceName: 'PBox', //连接的设备名称
- // limitDis: 100, //
- // primaryUUID: 'FFF0', //蓝牙主服务id
- // currentVersion: '1.2.0', //当前固件版本
- // latestVersion: '1.2.0' //服务器最新固件版本
- // }
- ];
- return deviceList;
- }
- export default {
- getDeviceList
- }
|