Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.42 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.42 KB

ESP32/ESP8266 MQTTs

Simple example of secure mqtt connection with root CA/fingerprint for ESP32/ESP8266 boards (send data to mqtt.flespi.io via MQTT over TLS)

Prerequisites:

Build Setup

install additional board to Arduino IDE

Arduino board project Howto

Official Arduino IDE info on how to install additional cores

Select board

Arduino IDE: Tools -> Board -> Your board type (ESP32 Dev Module in my case ESP32 DevkitC v4)

Get FlespiToken

register on flespi platform, create a Token in a tokens Tab and paste token in credaantionals.h file definitions:

#define FLESPI_TOKEN "FlespiToken REPLACE_WITH_YOUR_FLESPI_TOKEN"

Test

compile the project and flash the board

To test it works you can use flespi online MQTT client:

Paste yout token and subscribe to topic "hello/world"

License

MIT license.