Skip to content
Start free evaluation

pdcomm_opcua_client_activate_anonymous

Function

Activates the session with an AnonymousIdentityToken (ActivateSession).

int32_t pdcomm_opcua_client_activate_anonymous(pdcomm_opcua_handle client)

Declared in: #include <pdcomm/opcua/pdcomm_opcua.h>

The selected endpoint must offer an anonymous UserTokenPolicy.

Parameters

NameDescription
clientClient handle.

Returns

#PDCOMM_OPCUA_OK, #PDCOMM_OPCUA_RUNTIME_ERROR when the server rejects the token or the network fails, #PDCOMM_OPCUA_BUSY while requests are outstanding, #PDCOMM_OPCUA_CLOSED, #PDCOMM_OPCUA_INVALID_HANDLE or #PDCOMM_OPCUA_POISONED.

Notes

  • Blocks for up to timeout_ms.