NodeRepository
Repository interface for managing node-related data.
This component provides access to the mesh's node database, local device information, and mesh-wide statistics. It supports reactive queries for node lists, counts, and filtered/sorted views.
This interface is shared across platforms via Kotlin Multiplatform (KMP).
Properties
Reactive flow of the latest local stats telemetry received from the radio.
Reactive flow of hardware info about our local radio device.
A reactive map of all known nodes in the mesh, keyed by their 32-bit node number.
Flow emitting the count of nodes currently considered "online" (heard from recently).
Reactive flow of information about the locally connected node as seen by the mesh.
Flow emitting the total number of nodes in the database.
Functions
Clears the local node's connection info from the cache.
Deletes all nodes from the database.
Deletes a specific node by its node number.
Deletes multiple nodes by their node numbers.
Returns the node number used for log queries.
Returns a reactive flow of nodes filtered and sorted according to the parameters.
Returns all nodes that haven't been heard from since the given timestamp.
Returns all nodes with unknown hardware models.
Persists hardware metadata for a node.
Installs initial configuration data (local info and remote nodes) into the database.
Updates the personal notes for a node.
Updates the cached local stats telemetry.