OpenSosContent

@Serializable
data class OpenSosContent(val latitude: Double, val longitude: Double, val reason: Int) : SmpContent

Represents an emergency SOS initiation message in the Satellite Message Protocol.

This class encapsulates an emergency SOS start request that includes the user's location and the specific reason for the emergency. When transmitted, it signals that immediate emergency assistance is required.

Constructors

Link copied to clipboard
constructor(latitude: Double, longitude: Double, reason: Int)

Types

Link copied to clipboard
Link copied to clipboard

Enumeration of possible reasons for initiating an SOS emergency.

Properties

Link copied to clipboard

The type of content represented by this instance.

Link copied to clipboard

The geographical latitude coordinate in decimal degrees.

Link copied to clipboard

The geographical longitude coordinate in decimal degrees.

Link copied to clipboard
val reason: Int

The specific reason or category for this SOS emergency. This can be customized as per use-case.

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.