From ab6eed60e4e50f1a27db0a41141b2789c51b1aa9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 17 Sep 2016 04:08:00 +0200 Subject: [PATCH] +self --- web-to-db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-to-db.py b/web-to-db.py index 23232e9..79cf2aa 100644 --- a/web-to-db.py +++ b/web-to-db.py @@ -49,8 +49,8 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler): def to_dashboard(self, data): ws = websocket.create_connection("wss://home-safety-visual.eu-gb.mybluemix.net/alarmsocket") - dev = devEUI(data) - text = payload(data) + dev = self.devEUI(data) + text = self.payload(data) ws.send("%s:%s" % (dev, text)) ws.close()