Getting Client information from the monitored items

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
NexusHero
Jr. Member
Jr. Member
Posts: 2
Joined: 08 May 2019, 12:22

Getting Client information from the monitored items

Post by NexusHero »

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

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: Getting Client information from the monitored items

Post by Support Team »

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
Best regards
Unified Automation Support Team

Post Reply