- WS Server listens on 0.0.0.0:8765
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user