Skip to content

Commit

Permalink
Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Luijken committed Sep 9, 2024
2 parents c924376 + ebfc045 commit 559c62d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SickRfid/DisconnectedSickRfidController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ internal DisconnectedSickRfidController(IPAddress ipAddress, int port)
_port = port;
}

public async Task<ConnectedSickRfidController> ConnectAsync()
public async Task<ConnectedSickRfidController> ConnectAsync(CancellationToken cancellationToken = default)
{
var socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
await socket.ConnectAsync(_ipAddress, _port).ConfigureAwait(true);
await socket.ConnectAsync(_ipAddress, _port, cancellationToken).ConfigureAwait(true);
return new ConnectedSickRfidController().SetSocket(socket);
}
}
}
2 changes: 1 addition & 1 deletion SickRfid/SickRfid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<Authors>Eline Jorritsma, Thomas Luijken</Authors>
<Company>Baseflow</Company>
<Description>This is an SDK for the SICK RFU610-10600 RFID reader that lets you easily scan an RFID tag from the connected RFID reader.</Description>
Expand Down

0 comments on commit 559c62d

Please sign in to comment.