Update Protocol, parsing errors
This commit is contained in:
@@ -13,6 +13,10 @@ namespace PlantBox.Shared.Communication.Commands
|
||||
public double Max { get; set; }
|
||||
public double Value { get; set; }
|
||||
|
||||
public CaptorValue()
|
||||
{
|
||||
|
||||
}
|
||||
public CaptorValue(string argument)
|
||||
{
|
||||
string[] arguments = argument.Split(ValueSeparator);
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace PlantBox.Shared.Communication.Commands
|
||||
{
|
||||
string Join(double[] values)
|
||||
{
|
||||
return string.Join(ValueSeparator.ToString(), values);
|
||||
return string.Join(ValueSeparator.ToString(), values.Select(x => x.ToArgument()));
|
||||
}
|
||||
|
||||
return new[]
|
||||
|
||||
Reference in New Issue
Block a user