Skip to content

Commit

Permalink
Add CommandItemNull to SendRRData for reqeust
Browse files Browse the repository at this point in the history
  • Loading branch information
gisellevonbingen committed Aug 9, 2023
1 parent 8c4232c commit 940f8dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Giselle.Net.EtherNetIP/ENIP/ENIPCodec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,13 @@ public void UnRegisterSession(Stream stream)

public SendRRData CreateSendRRData(params CommandItem[] items) => this.CreateSendRRData((IEnumerable<CommandItem>)items);

public SendRRData CreateSendRRData(IEnumerable<CommandItem> items) => new SendRRData(items) { Timeout = this.SendRRDataTimeout };
public SendRRData CreateSendRRData(IEnumerable<CommandItem> items)
{
var sendRRData = new SendRRData() { Timeout = this.SendRRDataTimeout };
sendRRData.Items.Add(new CommandItemNull());
sendRRData.Items.AddRange(items);
return sendRRData;
}

public CommandItems ExchangeSendRRData(Stream stream, params CommandItem[] requests)
{
Expand Down

0 comments on commit 940f8dd

Please sign in to comment.