Page 1 of 1

Getting Client information from the monitored items

Posted: 06 May 2021, 08:31
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

Re: Getting Client information from the monitored items

Posted: 27 Jul 2021, 13:18
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