Go for it, we have this API with very sparse use, so making more use cases with it will let people benefit from core architecture.

Cheers,
Łukasz

On 1/11/26 19:50, Christofer Dutz wrote:
Hi all and particularly @Łukasz 
Dywicki<https://the-asf.slack.com/team/UCG0T0YBA> …

I just stumbled over the problem, that I'm using an ADS connection in a tool 
and the driver correctly picks up that I updated the tags, but there is no way 
for the driver to tell the client about this ... so I wanted to add a 
ConnectionStateListener and saw you already added one ... however one that's 
fixed to connect and disconnect .... I would like to update this to this:

// org.apache.plc4x.java.api.listener.PlcConnectionStateListener
   public interface PlcConnectionStateListener {
       void onConnectionStateChanged(PlcConnectionStateChangedEvent event);
   }

   // org.apache.plc4x.java.api.listener.event.PlcConnectionStateChangedEvent
   public class PlcConnectionStateChangedEvent {
       public enum ChangeType {
           TAGS_CHANGED,
           MODE_RUN,
           MODE_STOP,
           MODE_CONFIG
       }
       private final ChangeType changeType;
       private final String details;
       // constructor, getters
}

Any objections?

Chris


Reply via email to