← Back to downloads
Example_03_ProjectUNION_MQTT

Purpose

Example showing how to use the ProjectUNION MQTT library together with
ProjectUNION Core.

Required Hardware

ESP32 Dev Module OLED SSD1306 0.96” I2C USB cable

Hardware Connections

-   ESP32 GPIO21 -> OLED SDA
-   ESP32 GPIO22 -> OLED SCL
-   ESP32 3V3 -> OLED VCC
-   ESP32 GND -> OLED GND

Arduino IDE Settings

Board: ESP32 Dev Module

Flash Size: 4 MB

CPU Frequency: 240 MHz

Flash Mode: QIO

PSRAM: Disabled

Partition Scheme: Minimal SPIFFS (1.9 MB APP with OTA / 128 KB SPIFFS)

Installation

1.  Install the required ProjectUNION libraries.
2.  Open the example in Arduino IDE.
3.  Compile and upload.
4.  Configure WiFi using the web interface.

Notes

This example is intended as a learning example for the ProjectUNION
platform.