This is the software that is going to run inside a AWS. WebSocket (Socket.io) server that communicates between ground station and USV.
To work properly, this needs to run on conjunction with the other repos:
- usv-pi
- usv-ground-station
(Can be run without docker, just install yarn npm install -g yarn
, yarn install
, yarn dev
)
yarn dev
- To run in dev
yarn prettier --write .
- run prettier to clean up code
yarn start
- To run as production
Note: yarn prettier
to clean up code
This Socket.io project has two namespaces:
- usvNamespace
- groundstationNamespace
- On connection, it sends the current route that is set to update its state from before it was connected
- The route can be modified by sending certain events:
- adding points
- deleting points
- clearing the points etc..
- Everytime the route is changed it is forwarded to any device connected to the
usvNamespace
- On connection, it receives the current route
- Receives all updates from groundstationNamespace
- Forwards logs received from the usv to grounstationNamespace