SpatialNodeSnapshot

data class SpatialNodeSnapshot(val id: Long, val coordinate: LatLon, val isConnectedRadio: Boolean = false, val shortName: String = "", val color: Int = 0, val isOnline: Boolean = true, val isFavorite: Boolean = false, val viaMqtt: Boolean = false, val hopsAway: Int = -1, val signal: SpatialSignal? = null, val isInfrastructure: Boolean = false, val lastHeard: Int = 0)(source)

What the spatial map needs to know about one mesh node.

Parameters

color

the node's own color as ARGB, 0 for the map's default

hopsAway

hops from the connected radio, negative when unknown

signal

how the connected radio hears it, null when it has not heard it

isInfrastructure

a router, repeater or client base, which stands as a tower

lastHeard

when the connected radio last heard it, in seconds since 1970

Constructors

Link copied to clipboard
constructor(id: Long, coordinate: LatLon, isConnectedRadio: Boolean = false, shortName: String = "", color: Int = 0, isOnline: Boolean = true, isFavorite: Boolean = false, viaMqtt: Boolean = false, hopsAway: Int = -1, signal: SpatialSignal? = null, isInfrastructure: Boolean = false, lastHeard: Int = 0)

Properties

Link copied to clipboard
val color: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Long
Link copied to clipboard
Link copied to clipboard

Heard by the connected radio itself, over the air: the two are joined by a link.

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