From d77335caa7fde9f2cd0585ab76a38f90213be250 Mon Sep 17 00:00:00 2001 From: Wolfgang Nagele Date: Sun, 25 Aug 2024 22:13:08 +0200 Subject: [PATCH] Add sendHeartbeat doc-string --- meshtastic/mesh_interface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 3948089..36c7ee8 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -813,6 +813,7 @@ class MeshInterface: # pylint: disable=R0902 ) def sendHeartbeat(self): + """Sends a heartbeat to the radio. Can be used to verify the connection is healthy.""" p = mesh_pb2.ToRadio() p.heartbeat.CopyFrom(mesh_pb2.Heartbeat()) self._sendToRadio(p)