expo-ble模块测试demo 联调BLE模块 take 3 添加跟多log

This commit is contained in:
Yudi Xiao
2025-12-10 20:16:05 +08:00
parent 56a5d0d45e
commit 1d3a7eba45
4 changed files with 23 additions and 17 deletions

View File

@@ -17,6 +17,7 @@ export const FRAME_CONSTANTS = {
FOOTER_SIZE: 1,
FRAME_INTERVAL: 35,
} as const;
export type FRAME_HEAD = typeof FRAME_CONSTANTS.HEAD_DEVICE_TO_APP | typeof FRAME_CONSTANTS.HEAD_APP_TO_DEVICE;
export const COMMAND_TYPES = {
ACTIVATION_QUERY: 0x01,
@@ -30,6 +31,7 @@ export const COMMAND_TYPES = {
DEVICE_INFO_SETTINGS: 0x0d,
DEVICE_IDENTITY_CHECK: 0x0e,
} as const;
export type COMMAND_TYPES = typeof COMMAND_TYPES[keyof typeof COMMAND_TYPES];
export const RESPONSE_TYPES = {
ACTIVATION_STATUS: 0x01,