Summary
In this chapter, we have learned how to use the Wi-Fi chip that is built onboard the Arduino Nano 33 IoT board. We then wrote reusable packages to use the Wi-Fi chip and the MQTT client, we discovered what MQTT is, and we learned how to publish messages to a topic. We have learned how to read sensor data from a BME280 sensor and publish this to an MQTT broker that we have set up locally.
Then, we have learned what Wasm is and implemented our first application using Wasm. We have also learned how to use a JavaScript MQTT client in order to subscribe to an MQTT topic and react to messages. While doing so, we learned how to manipulate the Document Object Model (DOM) in order to dynamically update the view.
In the next chapter, we are going to learn how to try out a Wasm app by using a login view, and will also learn how to implement bidirectional communication over MQTT.