NeighborInfo

data class NeighborInfo(val nodeId: NodeId, val neighbors: List<NeighborInfo.Neighbor>, val lastUpdated: Int = 0)(source)

Parsed neighbor information for a node, representing its directly-reachable peers.

Constructors

Link copied to clipboard
constructor(nodeId: NodeId, neighbors: List<NeighborInfo.Neighbor>, lastUpdated: Int = 0)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Neighbor(val nodeId: NodeId, val snr: Float)

A single neighbor entry.

Properties

Link copied to clipboard

seconds since epoch when this info was received

Link copied to clipboard

list of neighbor entries with signal quality

Link copied to clipboard

the node reporting its neighbors

Functions

Link copied to clipboard
fun format(resolveNode: (NodeId) -> String = { it.toHex() }): String

Formats the neighbor list as a human-readable string.