Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
475 B

# Copyright (c) 2023, Bjarki Arge Andreasen
# SPDX-License-Identifier: Apache-2.0
import signal
from te_udp_echo import TEUDPEcho
from te_udp_receive import TEUDPReceive
udp_echo = TEUDPEcho()
udp_receive = TEUDPReceive()
udp_echo.start()
udp_receive.start()
print("started")
def terminate_handler(a, b):
udp_echo.stop()
udp_receive.stop()
print("stopped")
signal.signal(signal.SIGTERM, terminate_handler)
signal.signal(signal.SIGINT, terminate_handler)