mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 23:22:19 +03:00
Добавляем возможность измерять аналоговый сигнал чаще секунды
This commit is contained in:
@@ -28,6 +28,9 @@ class AnalogAdc : public IoTItem {
|
||||
AnalogAdc(String parameters) : IoTItem(parameters) {
|
||||
_pin = jsonReadInt(parameters, "pin");
|
||||
_avgSteps = jsonReadInt(parameters, "avgSteps");
|
||||
if (!_avgSteps) {
|
||||
jsonRead(parameters, F("int"), _interval, false);
|
||||
}
|
||||
_avgSumm = 0;
|
||||
_avgCount = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user