diff --git a/receiver/swisscom-receiver.py b/receiver/swisscom-receiver.py index b4411ff..e265198 100644 --- a/receiver/swisscom-receiver.py +++ b/receiver/swisscom-receiver.py @@ -3,7 +3,6 @@ import urllib import psycopg2 import websocket -# import xml.etree.ElementTree as ET from http.server import BaseHTTPRequestHandler, HTTPServer import re import json @@ -30,9 +29,6 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler): length = int(self.headers['Content-Length']) post_data = self.rfile.read(length).decode('utf-8') - # Print on stdout - print(post_data) - payload = self.dataToString(post_data) deveui = self.dataToDevEUI(post_data) print("{}:{}".format(deveui, payload)) @@ -121,8 +117,6 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler): print("DB Insert failed: %s" % e) - - if __name__ == '__main__': server_address = ('0.0.0.0', 8000) httpd = HTTPServer(server_address, testHTTPServer_RequestHandler)