mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавляем чтение данных из SHT20 в любом случае, не взирая на повторный вызов.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user