Skip to main content
Version: v0.0.4

Interface: AstmLtpWarning

A single LTP protocol / transport warning: a stable code, a value-free human-readable message, and - for a frame-scoped deviation - the frame number only. Never carries a frame's record bytes.

Example

import type { AstmLtpWarning } from "@cosyte/astm";
const w: AstmLtpWarning = {
code: "ASTM_LTP_FRAME_REJECTED",
message: "Frame rejected - NAK sent, retransmit expected.",
frameNumber: 2,
};

Properties

code

readonly code: LtpWarningCode


frameNumber?

readonly optional frameNumber?: number

The frame's sequence number when the warning is frame-scoped; absent otherwise.


message

readonly message: string

Human-readable detail for logs. Never contains the frame's record bytes.