You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by ld...@apache.org on 2022/12/12 15:08:41 UTC
[plc4x] 01/01: Make sure packet len is specified to avoid serialization errors.
This is an automated email from the ASF dual-hosted git repository.
ldywicki pushed a commit to branch splatch/fix-s7-subscriptions
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 11fd04bb76bd2f660e9334d250fd45b48b3d2198
Author: Łukasz Dywicki <lu...@code-house.org>
AuthorDate: Mon Dec 12 14:07:36 2022 +0100
Make sure packet len is specified to avoid serialization errors.
Signed-off-by: Łukasz Dywicki <lu...@code-house.org>
---
.../org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java
index 533d8e99db..e3f1c6d375 100644
--- a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java
+++ b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java
@@ -374,7 +374,7 @@ public class S7ProtocolLogic extends Plc4xProtocolBase<TPKTPacket> {
new S7MessageUserData(tpduId,
new S7ParameterUserData(parameterItems),
new S7PayloadUserData(payloadItems, null)),
- true, (short) tpduId, null));
+ true, (short) tpduId, Integer.MAX_VALUE));
// Start a new request-transaction (Is ended in the response-handler)
RequestTransactionManager.RequestTransaction transaction = tm.startRequest();