Skip to content

Commit 6ff13eb

Browse files
committed
mesh_interface: sendText: add hopLimit
1 parent 3615135 commit 6ff13eb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

meshtastic/mesh_interface.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ def sendText(
415415
channelIndex: int = 0,
416416
portNum: portnums_pb2.PortNum.ValueType = portnums_pb2.PortNum.TEXT_MESSAGE_APP,
417417
replyId: Optional[int]=None,
418+
hopLimit: Optional[int]=None,
418419
):
419420
"""Send a utf8 string to some other node, if the node has a display it
420421
will also be shown on the device.
@@ -432,6 +433,7 @@ def sendText(
432433
portNum -- the application portnum (similar to IP port numbers)
433434
of the destination, see portnums.proto for a list
434435
replyId -- the ID of the message that this packet is a response to
436+
hopLimit -- hop limit to use
435437
436438
Returns the sent packet. The id field will be populated in this packet
437439
and can be used to track future message acks/naks.
@@ -445,7 +447,8 @@ def sendText(
445447
wantResponse=wantResponse,
446448
onResponse=onResponse,
447449
channelIndex=channelIndex,
448-
replyId=replyId
450+
replyId=replyId,
451+
hopLimit=hopLimit
449452
)
450453

451454

0 commit comments

Comments
 (0)