GitHub user chrisdutz added a comment to the discussion: Writing to builder 
externally

Well, you can add things to a builder. But you can't execute a request from a 
bullet. You have to have it generate a request first. As soon ss you call the 
build method, it creates an immutable (unchangeable) request object. You can 
call the request objects execute method as often as you want, however you can't 
change that request.

If you want to fetch data from a remote plc and use data in that response to 
read more tags, you need to create a new builder and have that generate a new 
request object, that you would need to use instead of the old one.

However... I think you might even be able to add tags to the old builder, if 
you still have it and could probably call build on it again and generate the 
updated request.

I'm not 100% sure about that. But I think it might be possible. 

GitHub link: 
https://github.com/apache/plc4x/discussions/2014#discussioncomment-12229546

----
This is an automatically sent email for dev@plc4x.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@plc4x.apache.org

Reply via email to