DatabaseManager
Interface for managing database instances and cache limits.
Properties
Reactive stream of the current database cache limit.
The local node number (MyNodeInfo.my_node_num) each transport address reported in its last associated handshake, keyed by org.meshtastic.core.common.util.normalizeAddress. Firmware 2.8 derives the number from the public key, so neither the MAC nor the advertised name identifies a radio's node; this record does. An implementation that keeps no per-address record emits an empty map.
Functions
Associates the connection identified by address with the physical device learned from its radio handshake, so the same device reached over a different transport (BLE / TCP / USB) shares one database. Implementations must reject an address that is no longer active, preventing a stale identity emission from claiming or merging the newly selected transport's database. The first transport to report the device claims its active DB; a later transport folds its own data in and switches to the claimed DB. Idempotent once a device/transport pair has been unified.
Returns how many device-specific databases are currently cached on disk, subject to eviction.
Returns the current database cache limit from storage.
Returns true if a database exists for the given device address.
Sets the database cache limit.
Switches the active database to the one associated with the given address.