Only send the data

This commit is contained in:
Nico Schottelius 2016-09-17 04:29:43 +02:00
parent 01fbd097a6
commit 8129c81491

View file

@ -57,8 +57,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
if dev == "9CD90BB52B6A1D01": if dev == "9CD90BB52B6A1D01":
key, value = text.split("=") key, value = text.split("=")
ws = websocket.create_connection("wss://home-safety-visual.eu-gb.mybluemix.net/%s" % (key)) ws = websocket.create_connection("wss://home-safety-visual.eu-gb.mybluemix.net/%s" % (key))
ws.send("%s" % (text))
ws.send("%s:%s" % (dev, text))
ws.close() ws.close()
def devEUI(self, data): def devEUI(self, data):