diff --git a/SickRfid/DisconnectedSickRfidController.cs b/SickRfid/DisconnectedSickRfidController.cs index cb3977c..e82cea3 100644 --- a/SickRfid/DisconnectedSickRfidController.cs +++ b/SickRfid/DisconnectedSickRfidController.cs @@ -18,10 +18,10 @@ internal DisconnectedSickRfidController(IPAddress ipAddress, int port) _port = port; } - public async Task ConnectAsync() + public async Task 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); } -} \ No newline at end of file +} diff --git a/SickRfid/SickRfid.csproj b/SickRfid/SickRfid.csproj index 3387561..879a9e1 100644 --- a/SickRfid/SickRfid.csproj +++ b/SickRfid/SickRfid.csproj @@ -3,7 +3,7 @@ enable enable - 1.0.1 + 1.0.2 Eline Jorritsma, Thomas Luijken Baseflow This is an SDK for the SICK RFU610-10600 RFID reader that lets you easily scan an RFID tag from the connected RFID reader.