MqttProbeStatus

sealed class MqttProbeStatus(source)

UI-friendly outcome of a one-shot MQTT broker reachability probe.

Mirrors the failure shapes of org.meshtastic.mqtt.ProbeResult but stays in the model module so feature/UI code can consume the result without depending on the MQTT library.

Inheritors

Types

Link copied to clipboard
data class DnsFailure(val message: String?) : MqttProbeStatus

DNS lookup failed.

Link copied to clipboard
data class Other(val message: String?) : MqttProbeStatus

Any other / unclassified failure.

Link copied to clipboard
data object Probing : MqttProbeStatus

Probe is currently in flight.

Link copied to clipboard
data class Rejected(val reasonCode: Int, val reason: String?, val serverReference: String?) : MqttProbeStatus

Broker rejected the connection (CONNACK with non-zero reason code).

Link copied to clipboard
data class Success(val serverInfo: String?) : MqttProbeStatus

Broker accepted the connection. serverInfo is a short human-readable summary of any CONNACK properties that are useful to surface to the user.

Link copied to clipboard
data class TcpFailure(val message: String?) : MqttProbeStatus

TCP socket could not be opened.

Link copied to clipboard
data class Timeout(val timeoutMs: Long) : MqttProbeStatus

Probe exceeded its timeout.

Link copied to clipboard
data class TlsFailure(val message: String?) : MqttProbeStatus

TLS handshake failed.