From 7440a5c4fdb5898b25dc70174c4be91635a3ee2c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 26 Jun 2024 14:48:24 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesh_bot.py b/mesh_bot.py index 25ad948..1fa3931 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -3,6 +3,7 @@ # K7MHI Kelly Keeton 2024 import signal # for catching CTL+C +import time # for sleep, get some when you can :) from pubsub import pub # pip install pubsub import meshtastic.serial_interface #pip install meshtastic import meshtastic.tcp_interface @@ -135,6 +136,9 @@ def auto_response(message, snr, rssi, hop, message_from_id): else: bot_response = "I'm sorry, I'm afraid I can't do that." + # wait a 700ms to avoid message collision from lora-ack + time.sleep(0.7) + return bot_response def log_timestamp():