NodeRepositoryImpl
Repository for managing node-related data, including hardware info, node database, and identity.
Constructors
Properties
The latest local stats telemetry received from the locally connected node.
Hardware info about our local device (can be null if not connected).
A reactive map from nodeNum to Node objects, representing the entire mesh.
Flow emitting the count of nodes currently considered "online".
Information about the locally connected node, as seen from the mesh.
Flow emitting the total number of nodes in the database.
Functions
Clears the local node's connection info.
Deletes all nodes from the database, optionally preserving favorites.
Deletes a node and its metadata by num.
Deletes multiple nodes and their metadata.
Returns the node number used for log queries. Maps nodeNum to MeshLog.NODE_NUM_LOCAL (0) if it is the locally connected node.
Returns a flow of nodes filtered and sorted according to the parameters.
Persists hardware metadata for a node.
Installs initial configuration data (local info and remote nodes) into the database.
Update the cached local stats telemetry.