@kvaser/canking-api
Version:
CanKing API to communicate with the CanKing service using Node.js.
39 lines (20 loc) • 1.01 kB
Markdown
[**Kvaser CanKing GUI Extensions SDK v7.5.1**](../../README.md)
***
[Kvaser CanKing GUI Extensions SDK](../../modules.md) / [ipc](../README.md) / getMessageDataBeforeTimestamp
# Function: getMessageDataBeforeTimestamp()
> **getMessageDataBeforeTimestamp**(`timestampUs`, `maxCount`, `identifiers?`): `Promise`\<[`Frame`](../../models/interfaces/Frame.md)[]\>
Gets message data (frames) before a specific timestamp.
## Parameters
### timestampUs
`number`
The timestamp (in microseconds since start of measurement) before which frames should be retrieved.
### maxCount
`number`
The maximum number of frames to retrieve.
### identifiers?
[`FixedPosFrameIdentifier`](../../models/interfaces/FixedPosFrameIdentifier.md)[]
An optional collection of frame identifiers to filter the results. If not specified, frames
for all identifiers will be retrieved.
## Returns
`Promise`\<[`Frame`](../../models/interfaces/Frame.md)[]\>
A promise that resolves with a collection of frames.