Node
data class Node(val num: Int, val metadata: DeviceMetadata? = null, val user: User = User(), val position: Position = Position(), val snr: Float = Float.MAX_VALUE, val rssi: Int = Int.MAX_VALUE, val lastHeard: Int = 0, val deviceMetrics: DeviceMetrics = DeviceMetrics(), val channel: Int = 0, val viaMqtt: Boolean = false, val hopsAway: Int = -1, val isFavorite: Boolean = false, val isIgnored: Boolean = false, val isMuted: Boolean = false, val environmentMetrics: EnvironmentMetrics = EnvironmentMetrics(), val powerMetrics: PowerMetrics = PowerMetrics(), val paxcounter: Paxcount = Paxcount(), val publicKey: ByteString? = null, val notes: String = "", val manuallyVerified: Boolean = false, val nodeStatus: String? = null, val lastTransport: Int = 0)(source)
Domain model representing a node in the mesh network.
This class aggregates user information, position data, and hardware metrics.
Constructors
Link copied to clipboard
constructor(num: Int, metadata: DeviceMetadata? = null, user: User = User(), position: Position = Position(), snr: Float = Float.MAX_VALUE, rssi: Int = Int.MAX_VALUE, lastHeard: Int = 0, deviceMetrics: DeviceMetrics = DeviceMetrics(), channel: Int = 0, viaMqtt: Boolean = false, hopsAway: Int = -1, isFavorite: Boolean = false, isIgnored: Boolean = false, isMuted: Boolean = false, environmentMetrics: EnvironmentMetrics = EnvironmentMetrics(), powerMetrics: PowerMetrics = PowerMetrics(), paxcounter: Paxcount = Paxcount(), publicKey: ByteString? = null, notes: String = "", manuallyVerified: Boolean = false, nodeStatus: String? = null, lastTransport: Int = 0)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The transport mechanism this node was last heard over (see MeshPacket.TransportMechanism).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard