[
https://issues.apache.org/jira/browse/PLC4X-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Hutcheson resolved PLC4X-299.
---------------------------------
Fix Version/s: (was: 0.70)
(was: 0.8.0)
0.9.0
Resolution: Fixed
Solution has been confirmed and issue closed.
Thanks Fernando for identifying it :)
> 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.8.0, 0.70
> Reporter: Fernando
> Assignee: Ben Hutcheson
> Priority: Major
> Fix For: 0.9.0
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> 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)