Hi Inigo,

thanks ... this is great news ... if you could be so kind and create a GitHub 
pull request, we'll be happy to have a look at your changes. 
Perhaps we could even work together on ironing out the edges ... cause right 
now requiring special integration code for each driver sounds as if we should 
improve this before replacing.

Regarding SourceProcessor or Writer ... I have to admit I have no idea what 
this even is ... would you mind explaining what the difference is and what the 
benefits are? Even if I created the initial NiFi Adapter, I have to admit that 
I am a total newbe to NiFi and know allmost nothing about best practices ;-)

Chris



-----Ursprüngliche Nachricht-----
Von: Iñigo Angulo <[email protected]> 
Gesendet: Mittwoch, 21. April 2021 10:05
An: dev <[email protected]>
Betreff: Nifi integration record oriented processor for reading

Hi all, 

I am writing as we have been working on the Apache Nifi integration part of the 
project. We have created a Record oriented processor for reading PLC data. It 
is based on the previous existing SourceProcessor, but works with records, 
using a Nifi Writer (such as Avro, Json, and so on) to write data on flowfiles 
content. 

We updated the code on our fork with the actual PLC4X git repo about 2 weeks 
ago, and tested it reading values with S7 from a S7-1200 CPU from Nifi. Also, 
one of our customers has recently started to use it for validation. 

Currently, it works with S7 and Modbus over TCP. This is because we had to 
write some classes to map connectionString and variableList properties (sintax) 
of the processor to the actual protocol, to be able to build then avro schema 
for output flowfile, taking into account variable datatypes, etc. We only did 
this for S7 and Modbus. I am sure that there is a better way to do this, so at 
this point you maybe could take a look to find the best solution and avoid 
needing to do this mapping. 

If you find this useful, we could do a pull request to the main PLC4x repo. Let 
us know what you think. 

best regards, 
iñigo 

----------------------------------------- 
Iñigo Angulo 

ZYLK.net :: consultoría.openSource 
telf.: 747412337 
Ribera de Axpe, 11 
Edificio A, modulo 201-203 
48950 Erandio (Bizkaia) 
----------------------------------------- 

Reply via email to