From 243e2975059a026422480d67e6feb31c0c53a5d3 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Mon, 29 Apr 2024 15:16:04 -0700 Subject: [PATCH] Use the new Heartbeat payload variant for the heartbeat instead of an empty ToRadio packet --- meshtastic/mesh_interface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 92bb158..743ff3e 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -683,6 +683,7 @@ class MeshInterface: self.heartbeatTimer = threading.Timer(i, callback) self.heartbeatTimer.start() p = mesh_pb2.ToRadio() + p.heartbeat.CopyFrom(mesh_pb2.Heartbeat()) self._sendToRadio(p) callback() # run our periodic callback now, it will make another timer if necessary