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

для возможности генерации события об ошибке
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

@@ -26,7 +26,7 @@ class Bme280t : public IoTItem {
if (value.valD != NAN && value.valD < 145)
regEvent(value.valD, "Bme280t");
else
SerialPrint("E", "Sensor Bme280t", "Error");
SerialPrint("E", "Sensor Bme280t", "Error", _id);
}
~Bme280t(){};
@@ -46,7 +46,7 @@ class Bme280h : public IoTItem {
if (value.valD != NAN && value.valD < 100)
regEvent(value.valD, "Bme280h");
else
SerialPrint("E", "Sensor Bme280h", "Error");
SerialPrint("E", "Sensor Bme280h", "Error", _id);
}
~Bme280h(){};
@@ -67,7 +67,7 @@ class Bme280p : public IoTItem {
value.valD = value.valD / 1.333224 / 100;
regEvent(value.valD, "Bme280p");
} else
SerialPrint("E", "Sensor Bme280p", "Error");
SerialPrint("E", "Sensor Bme280p", "Error", _id);
}
~Bme280p(){};