MeshNode

data class MeshNode(val raw: NodeInfo, val isOnline: Boolean, val connectionQuality: ConnectionQuality, val signalQuality: SignalQuality)(source)

High-level, consumer-friendly representation of a mesh node.

Combines the raw NodeInfo proto with computed status helpers (isOnline, connectionQuality, signalQuality) and provides convenient accessor properties that flatten the proto's nested structure for direct UI binding.

Instances are created via NodeInfo.toMeshNode at a specific point in time (nowEpochSeconds) so that online status is pre-computed and stable for the lifetime of the snapshot.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(raw: NodeInfo, isOnline: Boolean, connectionQuality: ConnectionQuality, signalQuality: SignalQuality)

Properties

Link copied to clipboard

Airtime utilization (TX) percentage. Null if not reported.

Link copied to clipboard

Altitude in meters (null if not reported).

Link copied to clipboard

Battery level percentage (0–100). Null if not reported.

Link copied to clipboard

Channel utilization percentage. Null if not reported.

Link copied to clipboard
Link copied to clipboard
val deviceMetrics: DeviceMetrics?

Device metrics snapshot (battery, air utilization, etc.).

Link copied to clipboard

Number of relay hops to reach this node. 0 = direct.

Link copied to clipboard
val hwModel: HardwareModel?

Hardware model reported by the node.

Link copied to clipboard

Whether this node is marked as a favorite.

Link copied to clipboard

Whether this node is ignored (hidden from UI).

Link copied to clipboard

Whether this node is muted (no notifications).

Link copied to clipboard
Link copied to clipboard

Last heard time (Unix epoch seconds). 0 if never heard.

Link copied to clipboard

Latitude in degrees (null if no position or position is origin).

Link copied to clipboard

Longitude in degrees (null if no position or position is origin).

Link copied to clipboard

User-facing long name (e.g., "Alice's T-Beam").

Link copied to clipboard

Meshtastic ID string (e.g., "!aabbccdd").

Link copied to clipboard

Stable node ID as NodeId.

Link copied to clipboard

Node number (unique on the mesh).

Link copied to clipboard
val position: Position?

Position data (latitude, longitude, altitude, etc.). Null if not reported.

Link copied to clipboard
val raw: NodeInfo

the underlying NodeInfo proto — available for advanced consumers that need full access to all proto fields

Link copied to clipboard

User-facing short name (4 chars, e.g., "ALCE").

Link copied to clipboard
Link copied to clipboard
val snr: Float

SNR of last received packet from this node.

Link copied to clipboard
val user: User?

Full user proto (for advanced consumers).

Link copied to clipboard

Whether the node was reached via MQTT gateway.

Link copied to clipboard

Battery voltage. Null if not reported.