Node
Domain model representing a node in the mesh network.
This class aggregates user information, position data, and hardware metrics.
Constructors
Properties
Local-only name that replaces User.long_name on display surfaces. Never sent, shared or exported.
Local display name, never sent. Broadcast name for share and export is user.long_name.
True when the user has set a local display name for this node.
False when the radio has not heard this node over RF on the LoRa configuration it is using now. The radio derives this rather than storing it, so returning to a configuration restores the previous answers. Ask isUnheardOnCurrentLora rather than this flag: false alone does not mean the node became unreachable.
The broadcast long name while a display name hides it, else null.
Whether this, our own node, is in licensed (ham) mode. False when our node is not known yet.
True when the radio does not report having heard this node over RF on the LoRa configuration in force now, and it is not an viaMqtt node.
False once a different public key arrived for a node one is already stored for. The stored key stands; this records the refusal. See mismatchKey, which is what the UI asks.
The transport mechanism this node was last heard over (see MeshPacket.TransportMechanism).
True when a different public key has arrived for this node than the one on file.
The key a mismatch refused, kept so the warning can name it. Null whenever keyMatch is true.
User-editable labels per power-metrics channel (e.g. "Solar", "Battery"), indexed by channel - 1.
Last measured RSSI in dBm, or null when this node has no reading yet. 0 dBm is a real reading.
True when this node signs its broadcasts via XEdDSA (NodeInfo.has_xeddsa_signed). Automatic trust.
Functions
Whether a direct message to this node can actually be delivered by our radio: the node accepts messages (isEffectivelyUnmessageable is false) and our radio has a hasDirectMessagePath to it.
Whether our radio can address this node at all. An unlicensed radio takes the PKC path and refuses with PKI_SEND_FAIL_PUBLIC_KEY when it holds no key for the destination, while a licensed radio never uses PKC and sends on the channel, so it needs no key. A node whose NodeInfo has not arrived has no key on file, which is common rather than exceptional.
Matches node search text (long/short name, hex id, decimal id, status message) with Unicode-aware case folding.
One node against every filter.
Whether to offer the direct-message action for this node.
The SharedContact to encode for node.