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

для возможности генерации события об ошибке
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 Bmp280t : public IoTItem {
if (value.valD != NAN && value.valD < 150)
regEvent(value.valD, "Bmp280t");
else
SerialPrint("E", "Sensor Bmp280t", "Error");
SerialPrint("E", "Sensor Bmp280t", "Error", _id);
}
~Bmp280t(){};
@@ -47,7 +47,7 @@ class Bmp280p : public IoTItem {
value.valD = value.valD / 1.333224 / 100;
regEvent(value.valD, "Bmp280p");
} else
SerialPrint("E", "Sensor Bmp280p", "Error");
SerialPrint("E", "Sensor Bmp280p", "Error", _id);
}
~Bmp280p(){};