Add commands for Broker, autosave and clean logging
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user