From 3b743a768d8d08579c51dde6e9a5d657c214469b Mon Sep 17 00:00:00 2001 From: biver Date: Tue, 1 Feb 2022 21:44:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D1=87=D1=82=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B8=D0=B7=20SHT20=20=D0=B2?= =?UTF-8?q?=20=D0=BB=D1=8E=D0=B1=D0=BE=D0=BC=20=D1=81=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D0=B0=D0=B5,=20=D0=BD=D0=B5=20=D0=B2=D0=B7=D0=B8=D1=80=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B2=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D1=8B=D0=B9=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/Sht20.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/Sht20.cpp b/src/modules/Sht20.cpp index 23f69508..3685df20 100644 --- a/src/modules/Sht20.cpp +++ b/src/modules/Sht20.cpp @@ -25,6 +25,7 @@ class Sht20h : public IoTSensor { Sht20h(String parameters): IoTSensor(parameters) { } void doByInterval() { + sht->read(); float value = sht->getHumidity(); regEvent((String)value, "Sht20h"); }