From bfdb260d3acce5561308111273f07a7b3989dedd Mon Sep 17 00:00:00 2001 From: jdstroy Date: Thu, 16 Sep 2021 18:32:43 -0400 Subject: [PATCH] Add channelIndex parameter to sendText --- meshtastic/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index b54a324..0f2d7a7 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -246,7 +246,8 @@ class MeshInterface: wantAck=False, wantResponse=False, hopLimit=defaultHopLimit, - onResponse=None): + onResponse=None, + channelIndex=0): """Send a utf8 string to some other node, if the node has a display it will also be shown on the device. Arguments: @@ -265,7 +266,8 @@ class MeshInterface: wantAck=wantAck, wantResponse=wantResponse, hopLimit=hopLimit, - onResponse=onResponse) + onResponse=onResponse, + channelIndex=channelIndex); def sendData(self, data, destinationId=BROADCAST_ADDR, portNum=portnums_pb2.PortNum.PRIVATE_APP, wantAck=False,