mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-17 22:01:49 -05:00
cleanup webchat
This commit is contained in:
parent
94fb481014
commit
1b49f128a9
@ -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}")
|
||||
|
@ -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."""
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user