firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Feature Request]: Add a client last connected timestamp to NODE_INFO

Open afourney opened this issue 11 months ago • 6 comments

Platform

Cross-Platform

Description

Often its unclear which nodes in a mesh are monitored, and which are infrastructure -- especially when the current recommendation is for most nodes to be client or client_mute.

This feature request is to add a timestamp to NODE_INFO, indicating when an interactive application was last connected to the node (via BLE, serial, or HTTPs). This could then be reflected in the node list (similar to last heard), so as to give some indication of which nodes are actively monitored.

afourney avatar Jan 17 '25 20:01 afourney

I like this idea, but NodeInfo (specifically User) is something we have to guard pretty heavily against growth unless it's deemed a necessary addition, since it's such a prevalent packet on the mesh and also gets stored for each node on the device's constrained filesystem.

thebentern avatar Jan 17 '25 20:01 thebentern

What about a boolean on the DeviceMetrics proto? true if something is connected via serial, tcp or bluetooth. false otherwise.

ctso avatar Jan 17 '25 20:01 ctso

What about the device metrics packet? Those are more frequent, and it could just be one bit (is a client currently connected)?

afourney avatar Jan 17 '25 20:01 afourney

how about a boolian value of if the node has been connected to in the last 24 hours

its still extra data , but as its an abstraction the data load is less

TherealJoeyw avatar Feb 13 '25 14:02 TherealJoeyw

Jumping in here per GUVWAF's suggestion following this conversation on Discord. This timestamp functionality could be merged with my request for Read Receipts, as per below:

Feature Request: Show read receipts on the sender's node when a direct message is read by the target node.

Proposal: When the target node reads a DM, send a read receipt back to the sender. This should be disabled by default to minimize unnecessary network traffic.

swdrumm avatar Feb 17 '25 19:02 swdrumm

For example, what could be done is send an additional bool with the ACK on a direct message that indicates whether there is currently a client connected to the node.

GUVWAF avatar Feb 17 '25 20:02 GUVWAF

For example, what could be done is send an additional bool with the ACK on a direct message that indicates whether there is currently a client connected to the node.

I like this idea for DMs, but I think there's a more general need in the nodes list somehow. I don't DM most nodes, but would still like to know which are monitored

afourney avatar Mar 01 '25 18:03 afourney