Chapter 7: Displaying Weather Alerts on the TinyGo Wasm Dashboard
We have learned how to display data using different types of displays that are connected using either the Inter-Integrated Circuit (I2C) protocol or the Serial Peripheral Interface (SPI). While doing so, we dived a bit deeper into understanding how SPI works by learning that multiple devices can listen on a SPI bus and that we can daisy-chain devices on the bus. Furthermore, we have built a command-line interface (CLI) that interprets commands sent over serial and executes functions depending on the input.
After working through this chapter, you will be familiar with using Message Queuing Telemetry Transport (MQTT), serving a WebAssembly (Wasm) page through a web server, how to set up a local MQTT broker, and how to use the Wi-Fi functionalities of the Arduino Nano 33 IoT board.
In this chapter, we're going to cover the following main topics:
- Building a weather station
- Sending MQTT...