If you want to work with this code, you can either:
- download the zip file
- run the command
git clone https://github.com/Norse-IoT/lesson-mqtt.git
- clone this via GitHub desktop
Then, you can use Arduino IDE to open each .ino
file.
For this project, you will need:
- An ESP32, or equivalent
- An MQTT network
Every lesson folder has a file called arduino-secrets.h
which you'll need to update with the Wi-Fi password.
#pragma once
// WiFi
const char *ssid = "NORSEIOT5G";
const char *password = "YOUR_PASSWORD"; // Enter Wi-Fi password
// MQTT Broker
const char *mqtt_broker = "10.0.1.2";
const int mqtt_port = 1883;
Relevant links:
- https://wiki.norseiot.club/getting-started/ - Getting Started with Arduino IDE
- https://mqtt-explorer.com/ - Recommended Desktop MQTT explorer
- https://norseiot.club/
- https://wiki.norseiot.club/