SEC_Warehouse/constants/bluetooth.js

17 lines
490 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 目标服务 UUID用于优先识别特定设备
*/
export const TARGET_SERVICE_UUID = '0000F400-0000-1000-8000-00805F9B34FB'
export const TARGET_SHORT_UUID = '00F4'
/**
* 蓝牙常见错误提示映射。
*/
export const BLUETOOTH_ERROR_MESSAGES = Object.freeze({
10001: '蓝牙不可用,请先开启手机蓝牙',
10003: '连接失败,请重试',
10012: '操作超时,请重试'
})
export const DEFAULT_BLUETOOTH_ERROR_MESSAGE = '蓝牙搜索启动失败'