Update Protocol, parsing errors

This commit is contained in:
2019-04-24 23:14:57 +02:00
parent b4bf7aad20
commit 368f0b99df
2 changed files with 5 additions and 1 deletions

View File

@@ -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);

View File

@@ -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[]