This commit is contained in:
Nico Schottelius 2016-09-17 04:08:00 +02:00
parent 10ce69feb9
commit ab6eed60e4

View file

@ -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()