mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
Добавляем чтение данных из SHT20 в любом случае, не взирая на повторный вызов.
This commit is contained in:
@@ -25,6 +25,7 @@ class Sht20h : public IoTSensor {
|
|||||||
Sht20h(String parameters): IoTSensor(parameters) { }
|
Sht20h(String parameters): IoTSensor(parameters) { }
|
||||||
|
|
||||||
void doByInterval() {
|
void doByInterval() {
|
||||||
|
sht->read();
|
||||||
float value = sht->getHumidity();
|
float value = sht->getHumidity();
|
||||||
regEvent((String)value, "Sht20h");
|
regEvent((String)value, "Sht20h");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user