You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Fernando (Jira)" <ji...@apache.org> on 2021/06/01 17:59:00 UTC

[jira] [Created] (PLC4X-299) Modbus - Kafka Connect Configuration

Fernando  created PLC4X-299:
-------------------------------

             Summary: Modbus - Kafka Connect Configuration 
                 Key: PLC4X-299
                 URL: https://issues.apache.org/jira/browse/PLC4X-299
             Project: Apache PLC4X
          Issue Type: Bug
          Components: Driver-Modbus, Integration-Kafka-Connect
    Affects Versions: 0.70
            Reporter: Fernando 
             Fix For: 0.70


I am having problems ingesting data from Modbus using kafka. Following the official documentation, to read a register from Modbus:

 
{code:java}
holding-register:12289[10]
{code}
 

But when I tried to implement this in the job of kafka-connector properties I can't ingest any data into the kafka-topic. This is the configuration: 
{code:java}
jobs.modbus-heartbeat.fields=Analog
jobs.modbus-heartbeat.fields.Analog=holding-register:12289:REAL[8]
{code}
 It works configuring separately, following the next code:

 
{code:java}
jobs.modbus-heartbeat.fields=Analog0,Analog1,Analog2,Analog3,Analog4,Analog5,Analog6,Analog7

jobs.modbus-heartbeat.fields.Analog0=holding-register:12289:REAL
jobs.modbus-heartbeat.fields.Analog1=holding-register:12293:REAL
jobs.modbus-heartbeat.fields.Analog2=holding-register:12297:REAL
jobs.modbus-heartbeat.fields.Analog3=holding-register:12301:REAL
jobs.modbus-heartbeat.fields.Analog4=holding-register:12305:REAL
jobs.modbus-heartbeat.fields.Analog5=holding-register:12309:REAL
jobs.modbus-heartbeat.fields.Analog6=holding-register:12313:REAL
jobs.modbus-heartbeat.fields.Analog7=holding-register:12317:REAL
{code}
 

My question is if there is some way to read an array from the configuration of kafka-connect, like:
{code:java}
jobs.modbus-heartbeat.fields=Analog
jobs.modbus-heartbeat.fields.Analog=holding-register:12289:REAL[8]
{code}
 If you could send an example of this I really appreciated, I find the documentation a bit sparse.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)