Add files via upload

This commit is contained in:
DJ2LS 2020-12-23 17:48:22 +01:00 committed by GitHub
parent 924dc0ae64
commit 3b3e8a35ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

31
main.py Normal file
View file

@ -0,0 +1,31 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 22 16:58:45 2020
@author: DJ2LS
"""
import socketserver
import threading
import tnc
import static
import modem
modem = modem.RF()
static.MODEM_RECEIVE = True
audio_receiver_thread = threading.Thread(target=modem.Receive, name="Audio Listener")
audio_receiver_thread.start()
try:
server = socketserver.TCPServer((static.HOST, static.PORT), tnc.TCPRequestHandler)
server.serve_forever()
finally:
server.server_close()