Overview Pirate Bridge#
The Bridge component translates the serial communication with the Arduino and provides an API for the clients.
Requirements#
- Managing the connection with the Pirate Hook on the connected Arduino
- Serving an API for
- Sending the project data
- Receiving and forwarding control commands
- Serving the client website
Implementation#
The Bridge is a nodejs application which reads the serial port on the Raspberry PI and broadcasts the information to all connected clients. (more about this interface here: client facing API).
When polled the Bridge will supply the Arduino with the values the clients sent to it.
It also serves the client website, the Pirate Flag.
Validation#
In this section the requirements are compared with the current state of the project and future steps outlined.