You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2025/01/28 14:43:10 UTC
(plc4x) branch develop updated: feat: Enabled the discovery for modbus-tcp devices (running on the default modbus-tcp port).
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 6dbd707fd4 feat: Enabled the discovery for modbus-tcp devices (running on the default modbus-tcp port).
6dbd707fd4 is described below
commit 6dbd707fd443b168253c5fb0ff6f1a584be8c0f2
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Tue Jan 28 15:43:02 2025 +0100
feat: Enabled the discovery for modbus-tcp devices (running on the default modbus-tcp port).
---
.../main/java/org/apache/plc4x/java/modbus/tcp/ModbusTcpDriver.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/plc4j/drivers/modbus/src/main/java/org/apache/plc4x/java/modbus/tcp/ModbusTcpDriver.java b/plc4j/drivers/modbus/src/main/java/org/apache/plc4x/java/modbus/tcp/ModbusTcpDriver.java
index a0bd18b9c6..be8beda909 100644
--- a/plc4j/drivers/modbus/src/main/java/org/apache/plc4x/java/modbus/tcp/ModbusTcpDriver.java
+++ b/plc4j/drivers/modbus/src/main/java/org/apache/plc4x/java/modbus/tcp/ModbusTcpDriver.java
@@ -101,6 +101,11 @@ public class ModbusTcpDriver extends GeneratedDriverBase<ModbusTcpADU> {
return false;
}
+ @Override
+ protected boolean canDiscover() {
+ return true;
+ }
+
@Override
protected boolean canPing() {
return true;