Protocol

class Protocol(reason: String, cause: Throwable? = null) : MeshtasticException(source)

Protocol violation: malformed wire data, handshake failure, unexpected packet structure.

Constructors

Link copied to clipboard
constructor(reason: String, cause: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard

A short operation tag (e.g. "connect", "engine.disconnect").

Link copied to clipboard

The TransportIdentity that produced this failure, if known.

Functions

Link copied to clipboard
fun <T : MeshtasticException> T.withContext(transportIdentity: TransportIdentity? = null, operation: String? = null): T

Attach diagnostic context. Returns this for fluent use.