mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
добавление ошибки если modbus отвалился
This commit is contained in:
@@ -48,8 +48,9 @@ PZEM_Info *PZEMSensor::values(bool &online) {
|
|||||||
if (!refresh()) {
|
if (!refresh()) {
|
||||||
_values = PZEM_Info();
|
_values = PZEM_Info();
|
||||||
online = false;
|
online = false;
|
||||||
}
|
} else {
|
||||||
online = true;
|
online = true;
|
||||||
|
}
|
||||||
return &_values;
|
return &_values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user