добавляет MQTT Discovery
This commit is contained in:
14
include/config.h.tmpl
Normal file
14
include/config.h.tmpl
Normal file
@@ -0,0 +1,14 @@
|
||||
// Настройки WiFi
|
||||
#define WIFI_SSID "SSID_HERE"
|
||||
#define WIFI_PASS "PASS_HERE"
|
||||
|
||||
// Сервер MQTT
|
||||
#define MQTT_SERVER "MQTT_SERVER_HERE"
|
||||
#define MQTT_PORT 5319
|
||||
#define MQTT_LOGIN "MQTT_LOGIN_HERE"
|
||||
#define MQTT_PASS "MQTT_PASS_HERE"
|
||||
|
||||
#define DHTPIN D4 // pin gpio 2 in sensor
|
||||
#define DHTTYPE DHT22 // DHT 22 Change this if you have a DHT11
|
||||
|
||||
#define HOMEASSISTANT_TOPIC "homeassistant/sensor/sensorDht"
|
6
include/utils.h
Normal file
6
include/utils.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
double round2(double value);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user