Hi Adrian, AFAIK this is not yet implemented. This is the part in the code where we define the opc ua server url in the constructor of a helper [1]. These information are injected by the adapter class [2].
I guess similarly to our MQTT protocol implementation we should add an alternative field as part of the model declaration in order to extract username/password if provided by the user (see declareModel method) [3]. Maybe @Tim or @Philipp know more about some of the details since they worked on the OPCUA adapter. Patrick [1] https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/opcua/OpcUa.java [2] https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/opcua/OpcUaAdapter.java [3] https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/protocol/stream/MqttProtocol.java On 2021/01/05 10:43:47, Adrian Buerger <[email protected]> wrote: > Hello everyone, > > > can the OPC UA adapter (in Streampipes 0.67.0) be used to read values from an > OPC UA server that requires user credentials to log in? If I try to specify > the OPC server URL in the sense of > > > opc.tcp://username:password@server:port > > > the following error is thrown: > > > org.apache.streampipes.connect.adapter.exception.AdapterException: Could not > guess schema for opc node! UaException: status=Bad_InternalError, > message=unsupported protocol: null > > > In the UI, I cannot see an alternative way to specify user credentials. Is it > (yet) possible to use the OPC UA adapter in this setting? > > > Thank you very much for your help! > > > Best regards, > > > Adrian > >
