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