Dear Support Team,
we are using C++ based OpC UA SDK.
Currently we have several opc ua clients which monitore some variables in server.
Question: Is there a way to get information of these clients ? Can take the information from the monitored variable ?
For example client id, client name, ip address etc.
Regards
NexusHero
Getting Client information from the monitored items
Moderator: uasdkcpp
-
- Jr. Member
- Posts: 2
- Joined: 08 May 2019, 12:22
- Support Team
- Hero Member
- Posts: 3069
- Joined: 18 Mar 2011, 15:09
Re: Getting Client information from the monitored items
Hello,
Every MonitoredItem, Subscription and also all requests (Read, Write, Call) have a Session object assigned.
This object represents the session with the client.
Session::getClientNetworkAddress() provides typically the IP address of the client
Session::getClientApplicationDescription() provides the OPC UA identification information for the client
Session::getClientUserId() provides the user information
Every MonitoredItem, Subscription and also all requests (Read, Write, Call) have a Session object assigned.
This object represents the session with the client.
Session::getClientNetworkAddress() provides typically the IP address of the client
Session::getClientApplicationDescription() provides the OPC UA identification information for the client
Session::getClientUserId() provides the user information
Best regards
Unified Automation Support Team
Unified Automation Support Team