modifié: superTornado.py

This commit is contained in:
sidya82 2014-03-01 18:08:39 +01:00
parent 4e6aad66cd
commit 36c3f588d2

View File

@ -94,15 +94,13 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
print 'maison.request("GET", "micom/lamp.php?room=salon1&order=1")'
print "->Authorized user access"
try :
""""try :
f = urlopen('http://test:a@192.168.0.13/image.jpg?cidx=791836195')
data = f.read()
encoded = base64.b64encode(data)
self.write_message(encoded)
except Exception, e :
print e
print e"""
def on_message(self,mesg):
print "->Data receive"