mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-02-28 04:07:07 +05:00
feat: added support DHT11/DHT22 sensors (#223)
* feat: Added support DHT11/DHT22 sensors * chore: formatting * fix: typo * fix: `HaHelper::publishDynamicSensor()` for DHT sensors fixed * refactor: optimization of wired sensors
This commit is contained in:
@@ -4,7 +4,7 @@ extra_configs = secrets.default.ini
|
||||
core_dir = .pio
|
||||
|
||||
[env]
|
||||
version = 1.6.0-async
|
||||
version = 1.6.0-async-dht
|
||||
framework = arduino
|
||||
lib_deps = ESP32Async/AsyncTCP@^3.4.10
|
||||
ESP32Async/ESPAsyncWebServer@^3.9.4
|
||||
@@ -18,6 +18,7 @@ lib_deps = ESP32Async/AsyncTCP@^3.4.10
|
||||
gyverlibs/GyverBlinker@^1.1.1
|
||||
pstolarz/OneWireNg@^0.14.1
|
||||
milesburton/DallasTemperature@^4.0.6
|
||||
https://github.com/Laxilef/esp32DHT#idf5
|
||||
;laxilef/TinyLogger@^1.1.1
|
||||
https://github.com/Laxilef/TinyLogger#custom_handlers
|
||||
lib_ignore = OneWire
|
||||
@@ -33,6 +34,7 @@ build_flags = ;-mtext-section-literals
|
||||
-D ARDUINOJSON_USE_DOUBLE=0
|
||||
-D ARDUINOJSON_USE_LONG_LONG=0
|
||||
-D TINYLOGGER_GLOBAL
|
||||
-D DHT_TASK_STACK_SIZE=4096
|
||||
-D DEFAULT_SERIAL_ENABLED=${secrets.serial_enabled}
|
||||
-D DEFAULT_SERIAL_BAUD=${secrets.serial_baud}
|
||||
-D DEFAULT_WEBSERIAL_ENABLED=${secrets.webserial_enabled}
|
||||
|
||||
Reference in New Issue
Block a user