项目作者: EdJoPaTo

项目描述 :
A NodeMCU with a DHT Temperature Sensor sending data over MQTT
高级语言: C++
项目地址: git://github.com/EdJoPaTo/esp-mqtt-dht.git
创建时间: 2018-08-26T22:50:49Z
项目社区:https://github.com/EdJoPaTo/esp-mqtt-dht

开源协议:

下载


ESP MQTT DHT

This is the script for my mqtt-smarthome based Temperature Sensors (DHT22).
It is running on a NodeMCU board (ESP8266).

The basic source code was inspired by this repo

Installation

In order to build this the Arduino tool was used.

MQTT Server

As an MQTT server I use a Raspberry Pi with mosquitto.
It is in the Debian repository (which includes Raspberry Pi OS) and can easily be installed: sudo apt install mosquitto.

Make sure to allow anonymous (and enable the default listener on 1883 if you also want web socket support)

  1. listener 1883
  2. allow_anonymous true

Prepare Arduino

Set the following under File → Preferences → Settings → Additional Board Manager Urls (hit the rightmost button to open the Window):

  1. https://arduino.esp8266.com/stable/package_esp8266com_index.json
  2. https://dl.espressif.com/dl/package_esp32_index.json

Next Steps… TODO