diff --git a/ground-station.py b/ground-station.py index 0c16518..38ee29e 100644 --- a/ground-station.py +++ b/ground-station.py @@ -145,7 +145,7 @@ async def newClient(clientId, ws): async def newBoat(boatId, name, ws): boat = { "id": boatId, "name": name, "ws": ws, "state": "active" } - print("new client connected: " + boatId) + print("new boat connected: " + boatId) for bo in boats: if (bo['id'] == boat['id']): bo['state'] = 'terminated' diff --git a/index.html b/index.html index ef51a73..1b7f4ed 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ var boatListEl = document.getElementById('boats'); var stickEl = document.getElementById('canvas'); - var connection = new WebSocket('ws://' + "localhost" + ':8080/', ['mbcRcRf']); + var connection = new WebSocket('ws://' + "10.254.0.1" + ':8080/', ['mbcRcRf']); connection.onopen = function () {