mirror of
https://github.com/meshtastic/python.git
synced 2026-01-20 21:58:03 -05:00
Use the new Heartbeat payload variant for the heartbeat instead of an empty ToRadio packet
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user