diff --git a/OutGaugeInterpreter.py b/OutGaugeInterpreter.py index df94cd9..c5cad81 100644 --- a/OutGaugeInterpreter.py +++ b/OutGaugeInterpreter.py @@ -1 +1,11 @@ -print("hello World") \ No newline at end of file +import socket + +UDP_IP = "127.0.0.1" +UDP_PORT = 4444 + +sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) +sock.bind((UDP_IP,UDP_PORT)) + +while True: + data, addr = sock.recvfrom(1024) + print("received mesage: %s" % data) \ No newline at end of file