GitHub user codekundan added a comment to the discussion: Can we read Tags if we run PlcReadRequest in ExecutorService thread? If I run the below readValues() method in Main Thread, it works fine. Am I missing anything?
Hi Plc4x Team, I got the answer. I was making the **mistake of creating a Connection in Main Thread** and **running the tags reading task in Executor Service thread**. Now, reading tags is happening in Executor Service Thread but at the same time the Main Thread reaches End of Line and terminates the Connection. So, now i created the Connection and reading the tags in Executor Service Thread itself which is working fine. GitHub link: https://github.com/apache/plc4x/discussions/1920#discussioncomment-11422927 ---- This is an automatically sent email for dev@plc4x.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@plc4x.apache.org