pdcomm_opcua_client_activate_anonymous
Function
Activates the session with an AnonymousIdentityToken (ActivateSession).
int32_t pdcomm_opcua_client_activate_anonymous(pdcomm_opcua_handle client)The selected endpoint must offer an anonymous UserTokenPolicy.
Parameters
| Name | Description |
|---|---|
client | Client 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.