Companion

Properties

Link copied to clipboard
val ERROR_BYTE_STRING: ByteString
Link copied to clipboard
const val PUBLIC_KEY_SIZE: Int = 32

Size (in bytes) of a Curve25519 public key as used by meshtastic firmware.

Link copied to clipboard
const val RSSI_UNSET: Int
Link copied to clipboard
const val SNR_UNSET: Float

Sentinels stored when a node has no radio-metric reading. They exist because snr/rssi are not nullable (the Room columns behind them are NOT NULL); resolve them with snrOrNull/rssiOrNull rather than comparing against them at call sites.

Functions

Link copied to clipboard
fun createFallback(nodeNum: Int, fallbackNamePrefix: String): Node

Creates a fallback Node when the node is not found in the database.

Link copied to clipboard
fun getRelayNode(relayNodeId: Int, nodes: List<Node>, ourNodeNum: Int?): Node?