In this chapter, we will connect T.A.R.A.S to an MQTT Broker. Through the MQTT messages, we will control the movement of T.A.R.A.S as well as read from the distance sensor on T.A.R.A.S. The following is a diagram of what we are going to build:
We will start off by writing the HTML JavaScript Client (shown as HTML Client in the diagram) and use it to send and receive MQTT messages. We will then turn our attention to writing code on T.A.R.A.S to send and receive messages from the same MQTT Broker. We will use these messages to control T.A.R.A.S using a browser. Finally, we will livestream video from T.A.R.A.S using a browser as well.
This project should take half a day to complete.