Arduino IDE project: send data from DS18B20 temperature sensor to mqtt.flespi.io via MQTT over SSL. Read more in flespi blog
- Arduino IDE
- Hardware: ESP8266 board, DS18B20 sensor
Official Arduino IDE info on how to install additional cores
go to Sketch -> Include Library -> Manage Libraries
type in "Search" and install:
-
Adafruit_MQTT_Library MQTT library for ESP8266 with SSL support
-
OneWire 1-wire temperature sensors, memory and other chips
Arduino IDE: Tools -> Board -> Generic ESP8266 module
register on flespi platform, create a Token in a tokens Tab and paste token in .ino file definitions:
#define FLESPI_TOKEN "FlespiToken REPLACE_WITH_YOUR_FLESPI_TOKEN"
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 "/ESP8266/test"
MIT license.