Skip to content

Commit 63b940d

Browse files
committed
mesh_interface: sendTelemetry: add hopLimit
1 parent e5efa94 commit 63b940d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

meshtastic/mesh_interface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@ def sendTelemetry(
730730
destinationId: Union[int, str] = BROADCAST_ADDR,
731731
wantResponse: bool = False,
732732
channelIndex: int = 0,
733-
telemetryType: str = "device_metrics"
733+
telemetryType: str = "device_metrics",
734+
hopLimit: Optional[int]=None
734735
):
735736
"""Send telemetry and optionally ask for a response"""
736737
r = telemetry_pb2.Telemetry()
@@ -777,6 +778,7 @@ def sendTelemetry(
777778
wantResponse=wantResponse,
778779
onResponse=onResponse,
779780
channelIndex=channelIndex,
781+
hopLimit=hopLimit,
780782
)
781783
if wantResponse:
782784
self.waitForTelemetry()

0 commit comments

Comments
 (0)