Skip to content

Commit

Permalink
fixed type byte[] in GatewayService
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarresi committed Apr 23, 2020
1 parent fa4cd82 commit 6e3a43e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TFU002/TFU002.Logic/Services/GatewayService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ private GatewayVariable ConvertToGatewayVariale(ISymbol symbol)
Symbol = symbol,
TargetType = symbol.IsPrimitiveType ? ((DataType)symbol.DataType).ManagedType : null
};

if (((DataType) symbol.DataType).ManagedType == typeof(byte[]))
{
variable.TargetType = typeof(byte[]);
}

if (symbol.Attributes.Any(attribute => attribute.Name.Equals("S7.In", StringComparison.InvariantCultureIgnoreCase)))
{
variable.Direction = Direction.Input;
Expand Down

0 comments on commit 6e3a43e

Please sign in to comment.