forked from yudi_xiao/expo-ble-app-demo
更新 ble/protocol/Constants.ts
This commit is contained in:
parent
e3ee0f607c
commit
07a66f3923
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue