NetworkAckContent

@Serializable
data class NetworkAckContent(val messageType: SmpContent.ContentType, val timestamp: SmpTimestamp, val messageCount: Int) : SmpContent

Represents a network acknowledgement message content in the Satellite Message Protocol.

This class encapsulates a network acknowledgement message, which is used to confirm the client that a message has been received. The server can configure this message to be sent based on conditions such as when the ackFlag in the SMP Header is set to 1.

Constructors

Link copied to clipboard
constructor(messageType: SmpContent.ContentType, timestamp: SmpTimestamp, messageCount: Int)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The type of content represented by this instance.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun createSmpHeader(messageCounter: Int, eventTimestamp: SmpTimestamp, version: Int = 1, ackFlag: Boolean = false): SmpHeader

Creates an SMP header for this content.

Link copied to clipboard

Extension function to generate a MessageId from a NetworkAckContent