- WS Server listens on 0.0.0.0:8765

This commit is contained in:
jens
2020-12-12 18:42:34 +01:00
parent e96cb86703
commit e9074ae65a
+1 -5
View File
@@ -299,14 +299,10 @@ if __name__ == '__main__':
# Message dispatcher
h_dispatcher = taskmgr.start()
h_server = server.listen("localhost", 8765)
h_server = server.listen("0.0.0.0", 8765)
asyncio.gather(h_dispatcher, h_server)
server.run_forever()
while True:
print("Hallo")
sleep(1)
{"+":"Pot"}
{"+":"Heater"}
{"Heater": {"Power": 2000, "Activate": 1}}