Skip to content

Commit

Permalink
Add sendHeartbeat doc-string
Browse files Browse the repository at this point in the history
  • Loading branch information
wnagele authored Aug 25, 2024
1 parent b692ef4 commit d77335c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meshtastic/mesh_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ def _disconnected(self):
)

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)

Check warning on line 819 in meshtastic/mesh_interface.py

View check run for this annotation

Codecov / codecov/patch

meshtastic/mesh_interface.py#L817-L819

Added lines #L817 - L819 were not covered by tests
Expand Down

0 comments on commit d77335c

Please sign in to comment.