mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-29 07:32:18 +03:00
Корректируем сообщение об ошибке в модулях датчиков
для возможности генерации события об ошибке
This commit is contained in:
@@ -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(){};
|
||||
|
||||
Reference in New Issue
Block a user