Chapter 8: Automating and Monitoring Your Home through the TinyGo Wasm Dashboard
In the previous chapter, we learned how to use the Wi-Fi chip on the Arduino Nano 33 IoT board in order to send Message Queuing Telemetry (MQTT) messages. We then consumed these messages containing weather data and weather alerts, to display them on a WebAssembly (Wasm) dashboard, but we were not able to control anything from inside the dashboard. We are now going to change this.
After working through this chapter, we will know how to secure our Wasm apps by adding a login page. We're also going to learn about security aspects when validating credentials on a client application. After building the login view, we are going to learn how to send and receive data inside a dashboard that we are going to build. By doing so, we are also going to learn some new techniques that will help us by dynamically adding and removing content. By manipulating the Document Object Model (DOM), we will know how to use...