Skip to content

Commit

Permalink
feat(plc4j/opcua): Add support of PlcDINT for BigInteger in PlcValueH…
Browse files Browse the repository at this point in the history
…andler (#962)

* Add support of PlcDINT for BigInteger in PlcValueHandler
Enable OpcuaPlcDriverTest.

* Add support of PlcLINT for BigInteger in PlcValueHandler.

* Update plc4j/drivers/opcua/src/main/java/org/apache/plc4x/java/opcua/protocol/OpcuaProtocolLogic.java

---------

Co-authored-by: PatrykGala <patrykkacpergala@gmail.com>
Co-authored-by: Sebastian Rühl <sebastian.ruehl.os@pm.me>
  • Loading branch information
3 people committed Jun 5, 2023
1 parent 853c4ef commit bd13295
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public CompletableFuture<PlcReadResponse> read(PlcReadRequest readRequest) {
future.complete(new DefaultPlcReadResponse(request, status));
return;
}
} catch (ParseException e) {
} catch (ParseException|PlcRuntimeException e) {
future.completeExceptionally(new PlcRuntimeException(e));
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import java.nio.file.Paths;
import java.util.concurrent.ExecutionException;

@Disabled("Currently seems to block")
public class OpcuaPlcDriverTest {

@BeforeAll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ public static PlcValue of(Object[] values) {
if (value instanceof Long) {
return PlcLINT.of(value);
}
if (value instanceof BigInteger) {
return PlcLINT.of(value);
}
if (value instanceof Float) {
return PlcREAL.of(value);
}
Expand Down

0 comments on commit bd13295

Please sign in to comment.