Dear Developers,

I am trying to realize a use case where you can poll data from the plc at
change of value.
I have already seen some examples at code level but I am not a java
developer and therefore I have faced some issues with the integration of
the subscription mode.

i have cloned the git repository and modified
[
https://github.com/apache/plc4x/blob/develop/plc4j/integrations/apache-kafka/src/main/java/org/apache/plc4x/kafka/Plc4xSourceTask.java
]

locally. I would like to be able to switch in between interval polling and
subscription mode, set in the configuration file. So that you can set in
the configuration the PLC value to monitor and onchange it polls data.

That is also why i have set in Constants.java these lies

[
https://github.com/apache/plc4x/blob/develop/plc4j/integrations/apache-kafka/src/main/java/org/apache/plc4x/kafka/config/Constants.java
]

    public static final String KAFKA_SUBSCRIPTION_VALUE = "subscription";
    public static final String KAFKA_SUBSCRIPTION_DOC = "PLC4X
Subscriptionvalue";

There is also one approach i have found but couldn't adapt the
algorithm correctly to my use case.

https://plc4x.apache.org/users/getting-started/plc4j.html


Maybe someone has had any same issues before or has already developed the
PLC4xSourceTask.java?
[
https://github.com/apache/plc4x/blob/develop/plc4j/integrations/apache-kafka/src/main/java/org/apache/plc4x/kafka/Plc4xSourceTask.java
]

Thank you in Advance!

Regards
-- 
*Hamze HAMZE*
Trainee/Apprentice/VIE
+49 (0) 90926032877
hamze.ha...@valeo.com

Valeo Schalter und Sensoren GmbH
Valeostrasse 1 - 86650 - Wemding (GERMANY)
[image: valeo] <https://valeo.com/>
[image: linkedin] <https://linkedin.com/company/valeo> [image: twitter]
<https://twitter.com/valeo_group> [image: youtube]
<https://youtube.com/user/ValeoGroup> [image: facebook]
<https://facebook.com/Valeo.Group/> [image: instagram]
<https://instagram.com/valeo_group>

Sitz der Gesellschaft: 74321 Bietigheim-Bissingen
Handelsregister: Amtsgericht Stuttgart - HRB 301795
Vorsitzender des Aufsichtsrates: Dr. Andreas Heinrich
Geschäftsführer: Stiv Michael Smudja, Martin Mandry, Pierre-Yves Veltois

*This e-mail message is intended for the internal use of the intended
recipient(s) only.
The information contained herein is confidential/privileged. Its
disclosure or reproduction is strictly prohibited.
If you are not the intended recipient, please inform the sender
immediately, do not disclose it internally or to third parties and
destroy it.

In the course of our business relationship and for business purposes
only, Valeo may need to process some of your personal data.
For more information, please refer to the Valeo Data Protection
Statement and Privacy notice available on Valeo.com
<https://www.valeo.com/en/ethics-and-compliance/#principes>*

-- 
*This e-mail message is intended for the internal use of the intended 
recipient(s) only.
The information contained herein is 
confidential/privileged. Its disclosure or reproduction is strictly 
prohibited.
If you are not the intended recipient, please inform the sender 
immediately, do not disclose it internally or to third parties and destroy 
it.

In the course of our business relationship and for business purposes 
only, Valeo may need to process some of your personal data. 
For more 
information, please refer to the Valeo Data Protection Statement and 
Privacy notice available on Valeo.com 
<https://www.valeo.com/en/ethics-and-compliance/#principes>*

Reply via email to