更新 ble/protocol/Constants.ts

This commit is contained in:
肖宇迪 2025-12-11 20:14:30 +08:00
parent e3ee0f607c
commit 07a66f3923
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export const FRAME_CONSTANTS = {
MAX_DATA_SIZE: 496, MAX_DATA_SIZE: 496,
HEADER_SIZE: 8, HEADER_SIZE: 8,
FOOTER_SIZE: 1, FOOTER_SIZE: 1,
FRAME_INTERVAL: 35, // package transfer idle interval in ms, set 35 ms for ble device have enough time to process data FRAME_INTERVAL: 200, // package transfer idle interval in ms, set 35 ms for ble device have enough time to process data
} as const; } as const;
export type FRAME_HEAD = typeof FRAME_CONSTANTS.HEAD_DEVICE_TO_APP | typeof FRAME_CONSTANTS.HEAD_APP_TO_DEVICE; export type FRAME_HEAD = typeof FRAME_CONSTANTS.HEAD_DEVICE_TO_APP | typeof FRAME_CONSTANTS.HEAD_APP_TO_DEVICE;