Корректируем сообщение об ошибке в модулях датчиков

для возможности генерации события об ошибке
This commit is contained in:
2022-10-28 16:26:13 +03:00
parent 305a5f5ccb
commit dfd24dc1f6
10 changed files with 26 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ class Sht20t : public IoTItem {
if (value.valD > -46.85F)
regEvent(value.valD, "Sht20t");
else
SerialPrint("E", "Sensor Sht20t", "Error");
SerialPrint("E", "Sensor Sht20t", "Error", _id);
}
~Sht20t(){};
@@ -32,7 +32,7 @@ class Sht20h : public IoTItem {
if (value.valD != -6)
regEvent(value.valD, "Sht20h");
else
SerialPrint("E", "Sensor Sht20h", "Error");
SerialPrint("E", "Sensor Sht20h", "Error", _id);
}
~Sht20h(){};