项目作者: flespi-software

项目描述 :
Arduino IDE project: send data from DS18B20 temperature sensor to mqtt.flespi.io via MQTT over SSL.
高级语言: C++
项目地址: git://github.com/flespi-software/ESP8266_mqtts.git
创建时间: 2018-03-05T08:20:11Z
项目社区:https://github.com/flespi-software/ESP8266_mqtts

开源协议:MIT License

下载


ESP8266_mqtts

An outdated example, updated and simplified, can be found here: ESP32/ESP8266 mqtts (rootCA, fingerprint)

Arduino IDE project: send data from DS18B20 temperature sensor to mqtt.flespi.io via MQTT over SSL.
Read more in flespi blog

Scheme

Screenshot

Prerequisites:

  • Arduino IDE
  • Hardware: ESP8266 board, DS18B20 sensor

Build Setup

install additional board to Arduino IDE

Arduino board project Howto

Official Arduino IDE info on how to install additional cores

install additional libraries

go to Sketch -> Include Library -> Manage Libraries

type in “Search” and install:

select board

Arduino IDE: Tools -> Board -> Generic ESP8266 module

get FlespiToken

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"

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 “/ESP8266/test”

License

MIT license.