From bc2ceb23a5f72297f2d344f8bd7e55520104ed4d Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Fri, 15 Mar 2024 07:53:58 -0500 Subject: [PATCH] Heartbeat neads to be on ToRadio to actually work --- meshtastic/clientonly.proto | 8 -------- meshtastic/mesh.proto | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/meshtastic/clientonly.proto b/meshtastic/clientonly.proto index 1d58b11..b1a27b1 100644 --- a/meshtastic/clientonly.proto +++ b/meshtastic/clientonly.proto @@ -40,11 +40,3 @@ message DeviceProfile { */ optional LocalModuleConfig module_config = 5; } - -/* - * A heartbeat message is sent by a node to indicate that it is still alive. - * This is currently only needed to keep serial connections alive. - */ -message Heartbeat { - -} diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 76aa01b..7991ebf 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1440,6 +1440,11 @@ message ToRadio { * MQTT Client Proxy Message (for client / phone subscribed to MQTT sending to device) */ MqttClientProxyMessage mqttClientProxyMessage = 6; + + /* + * Heartbeat message (used to keep the device connection awake on serial) + */ + Heartbeat hearbeat = 7; } } @@ -1561,4 +1566,12 @@ message DeviceMetadata { * Has Remote Hardware enabled */ bool hasRemoteHardware = 10; -} \ No newline at end of file +} + +/* + * A heartbeat message is sent to the node from the client to keep the connection alive. + * This is currently only needed to keep serial connections alive, but can be used by any PhoneAPI. + */ +message Heartbeat { + +}