SatDeviceConnection

Interface for communicating with a connected satellite device.

This interface provides methods for sending messages, monitoring device status, and receiving message events from a connected satellite device.

Properties

Link copied to clipboard

Provides access to device-specific request capabilities.

Functions

Link copied to clipboard
abstract suspend fun connect(): Response<BullittDeviceStatus>

Establishes a connection with the device.

Link copied to clipboard
abstract suspend fun createContentBundle(content: SmpContent): ContentBundle

Creates a content bundle from SMP content.

Link copied to clipboard
abstract suspend fun disconnect()

Disconnects from the device.

Link copied to clipboard
abstract suspend fun getStatus(): BullittDeviceStatus

Gets the current status of the connected device.

Link copied to clipboard
abstract suspend fun messageEvents(): Flow<MessageEvent>

Provides a flow of message-related events from the device.

Link copied to clipboard
abstract suspend fun sendMessage(content: ContentBundle): Deferred<Response<SendMessageResult>>

Sends a message to the connected device.

Link copied to clipboard
abstract suspend fun statusUpdates(): Flow<BullittDeviceStatus>

Provides a flow of device status updates.