meshtastic / protobufs

Protobuf definitions for the Meshtastic project
https://meshtastic.org
GNU General Public License v3.0
73 stars 107 forks source link

Add explicit Heartbeat packet for clients to keep alive (serial) connections #462

Closed ajmcquilkin closed 4 months ago

ajmcquilkin commented 4 months ago

What does this PR do?

This PR adds an explicit Heartbeat message that clients will send to devices to signal that the client is still connected. Currently this is only needed for serial connections, although it is recommended to do this for all connections as this packet will not be sent over the mesh.

While the device will not time out if it hears any packet from the client, adding an explicit message is intended to serve as a reminder to client developers to send keep-alive packets explicitly.

Checklist before merging

thebentern commented 4 months ago

This needs to be a payload variant on ToRadio or it won't work as intended.