def thread_agent(self):
"""
This is the entry point for the thread that handles
all communication with the Supernova bus.
It communicates back to the main ConnOps loop via
multithreaded Event objects.
"""
while True:
try:
# Set up the command handlers
self.agent = Agent()
self.agent.service_handler["Telemetry Packet"] = self.on_telemetry
# Run
self.agent.bind_udp_sockets()
self.agent.run() # should never exit
except Exception as ex:
# NOTE: It is an error to ever reach this line.
# Catch and swallow all exceptions.
1 + 1
# NOTE: It is an error to ever reach this line.
self.agent_errors = self.agent_errors + 1
评论列表
文章目录