(You will need a github account to do so)
Firmware to demonstrate the use of the mqtt libary on a ESP32 node_mcu board using the esspresif development framework.
MQTT keywords addressed
- MQTT Protocol V5.0
- Secure Websocket transport (wss://)
- Certificate Validation based on bundled root certififcates
- Point your browser to https://aschiffler.github.io/esp32-mqtt-node
- Follow the instructions to connect your physical device
Note: Wifi connection is limited to WPA2-PSK with the pre-built firmware. Configure other options in the menu before buidling a custom firmware by (idf.py menuconfig
)
- Point your browser to https://aschiffler.github.io/esp32-mqtt-node
- Follow the instructions to connect your physical device
- Start the serial console in the browser
- Typ in your information: wifi, broker (wss://, ws://, mqtt:// and mqtts:// is supported, eg. mqtts://mqtt.cedalo.cloud:8883), protocol version 5 || 3, login credentials
- Open the development environment ```gitpod```` (github account needed)
- Modify the code under
main/app_main.c
- Build the firmware with
idf.py build
- Flash the firmware by the Web Flash Tool -> Find the link under
Ports
Based on MQTT Libary examples: https://github.com/espressif/esp-idf/blob/1c84cfde14dcffdc77d086a5204ce8a548dce935/examples/protocols/mqtt5/main/app_main.c#L191