mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-18 06:11: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"],
|
from_call=self._config["aprs"]["login"],
|
||||||
to_call="APDW16",
|
to_call="APDW16",
|
||||||
raw=txt,
|
raw=txt,
|
||||||
|
latitude=lat,
|
||||||
|
longitude=long,
|
||||||
)
|
)
|
||||||
beacon.send_direct()
|
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):
|
def handle_message(self, data):
|
||||||
LOG.debug(f"WS Data {data}")
|
LOG.debug(f"WS Data {data}")
|
||||||
|
@ -147,12 +147,9 @@ class Packet(metaclass=abc.ABCMeta):
|
|||||||
|
|
||||||
def send(self):
|
def send(self):
|
||||||
"""Method to send a packet."""
|
"""Method to send a packet."""
|
||||||
LOG.warning("send() called!")
|
|
||||||
self._init_for_send()
|
self._init_for_send()
|
||||||
thread = tx.SendPacketThread(packet=self)
|
thread = tx.SendPacketThread(packet=self)
|
||||||
LOG.warning(f"Starting thread to TX {self}")
|
|
||||||
thread.start()
|
thread.start()
|
||||||
LOG.warning("Thread started")
|
|
||||||
|
|
||||||
def send_direct(self, aprsis_client=None):
|
def send_direct(self, aprsis_client=None):
|
||||||
"""Send the message in the same thread as caller."""
|
"""Send the message in the same thread as caller."""
|
||||||
|
@ -135,15 +135,7 @@ class APRSDProcessPacketThread(APRSDThread):
|
|||||||
to_call=from_call,
|
to_call=from_call,
|
||||||
msgNo=msg_id,
|
msgNo=msg_id,
|
||||||
)
|
)
|
||||||
LOG.warning(f"Send AckPacket {ack_pkt}")
|
|
||||||
ack_pkt.send()
|
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)
|
self.process_our_message_packet(packet)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user