Add commands for Broker, autosave and clean logging

This commit is contained in:
2019-04-27 11:29:31 +02:00
parent f67d070fc3
commit d8c7a9e2c5
6 changed files with 75 additions and 7 deletions

View File

@@ -42,10 +42,15 @@ namespace PlantBox.Broker
{
State = PlantState.Warning;
}
if ((DateTime.Now - LastMeasureDate).TotalMinutes > 6)
if ((DateTime.Now - LastMeasureDate).TotalMinutes >= 7)
{
State = PlantState.Bad;
}
}
public override string ToString()
{
return $"{ID}:\n Name: {Name}\n Type: {Type}\n State: {State}";
}
}
}