Add time.sleep(splitDelay) between split messages

This commit is contained in:
Nestpebble
2024-09-16 00:42:59 +01:00
committed by GitHub
parent 394c3ef4f6
commit b7df9d05a7
+1
View File
@@ -472,6 +472,7 @@ def send_message(message, ch, nodeid=0, nodeInt=1):
interface1.sendText(text=m, channelIndex=ch, destinationId=nodeid)
if nodeInt == 2:
interface2.sendText(text=m, channelIndex=ch, destinationId=nodeid)
time.sleep(splitDelay) # wait an amout of time between sending each split message
else: # message is less than MESSAGE_CHUNK_SIZE characters
if nodeid == 0:
# Send to channel