awcullen / opcua

OPC Unified Architecture (OPC UA) in Go.
MIT License
81 stars 18 forks source link

We can't acces response of OpenSecureChannel/CreateSession/ActivateSession with DIAL #18

Closed FranckEtienne closed 1 year ago

FranckEtienne commented 1 year ago

Method Dial proposed by awcullen/opcua is 3 OPCUA services combined : OpenSecureChannel, CreateSession and ActivateSession. Each of theses 3 services aren't offered.

I can't have acces to server response: I would like to have access to ServiceResult and to RevisedSessionTimeout and MaxRequestMessageSize (from CreateSession).

Thank's for your job on OPCUA

awcullen commented 1 year ago

I added access for revised SessionTimeout and MaxRequestMessageSize. If ServiceResult is not Good, then it is returned as error from the Dial function.

Hope this helps. Thanks for suggestion.