cleanup webchat

This commit is contained in:
Hemna 2022-12-15 20:13:40 -05:00
parent 94fb481014
commit 1b49f128a9
3 changed files with 2 additions and 15 deletions

View File

@ -381,12 +381,10 @@ class SendMessageNamespace(Namespace):
from_call=self._config["aprs"]["login"],
to_call="APDW16",
raw=txt,
latitude=lat,
longitude=long,
)
beacon.send_direct()
#beacon_msg = messaging.RawMessage(txt)
#beacon_msg.fromcall = self._config["aprs"]["login"]
#beacon_msg.tocall = "APDW16"
#beacon_msg.send_direct()
def handle_message(self, data):
LOG.debug(f"WS Data {data}")

View File

@ -147,12 +147,9 @@ class Packet(metaclass=abc.ABCMeta):
def send(self):
"""Method to send a packet."""
LOG.warning("send() called!")
self._init_for_send()
thread = tx.SendPacketThread(packet=self)
LOG.warning(f"Starting thread to TX {self}")
thread.start()
LOG.warning("Thread started")
def send_direct(self, aprsis_client=None):
"""Send the message in the same thread as caller."""

View File

@ -135,15 +135,7 @@ class APRSDProcessPacketThread(APRSDThread):
to_call=from_call,
msgNo=msg_id,
)
LOG.warning(f"Send AckPacket {ack_pkt}")
ack_pkt.send()
LOG.warning("Send ACK called Continue on")
#ack = messaging.AckMessage(
# self.config["aprsd"]["callsign"],
# from_call,
# msg_id=msg_id,
#)
#ack.send()
self.process_our_message_packet(packet)
else: