| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 | 
							
- 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: "拳击模式",
 
- 				ename: "hotman",
 
- 				icon: "/static/devicesIcon/hotman.png",
 
- 				mIcon: "/static/devicesIconSimple/hotman.png",
 
- 				bRatio: false,
 
- 				usageMode: "hotman", //使用模式,在hotman情景下使用
 
- 				describe: '拳击模式情景下使用,快速打击模式',
 
- 				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: '*长按开机键至蓝灯正常闪烁\n*蓝灯正常闪烁后,点击灰色选中按钮匹配手柄',
 
- 				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
 
- }
 
 
  |