2022-06-02 08:34:19 +03:00
|
|
|
// Настройки 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
|
|
|
|
|
2022-06-02 22:49:47 +03:00
|
|
|
#define HOMEASSISTANT_TOPIC "homeassistant/sensor/sensorDht"
|