TransportIdentity

value class TransportIdentity(val raw: String)(source)

Deterministic identity for a transport configuration.

Derived from the transport spec (address, host:port, etc.) and used as the storage key. Remains stable for the same consumer-supplied transport config; the NodeNum learned at handshake is recorded in storage but is not the storage key.

TCP/HTTP caveat: Identity is computed from the literal host string. Connecting via "meshtastic.local" and "192.168.1.42" produces two distinct identities, each with its own storage. See DeviceStorage.recordOwnNode for the reset rule that bounds this risk.

Java interop: properties returning TransportIdentity expose non-mangled boxed accessors (e.g. transport.getIdentity() instead of getIdentity-dT_YJr8()) thanks to -Xjvm-expose-boxed. Java callers can read the underlying string via identity.getRaw().

Since

0.1.0

Constructors

Link copied to clipboard
constructor(raw: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val raw: String