146#ifdef UA_ENABLE_ENCRYPTION
175 const char *username,
176 const char *password) {
269UA_Client_connect(
UA_Client *client,
const char *endpointUrl) {
286UA_Client_connectAsync(
UA_Client *client,
const char *endpointUrl) {
303UA_Client_connectSecureChannel(
UA_Client *client,
const char *endpointUrl) {
316UA_Client_connectSecureChannelAsync(
UA_Client *client,
const char *endpointUrl) {
331UA_Client_connectUsername(
UA_Client *client,
const char *endpointUrl,
332 const char *username,
const char *password) {
336 UA_ClientConfig_setAuthenticationUsername(cc, username, password);
341 return UA_Client_connect(client, endpointUrl);
360 size_t listenHostnamesLength,
UA_UInt16 port);
432 size_t* endpointDescriptionsSize,
458 size_t serverUrisSize,
UA_String *serverUris,
459 size_t localeIdsSize,
UA_String *localeIds,
460 size_t *registeredServersSize,
485 size_t serverCapabilityFilterSize,
487 size_t *serverOnNetworkSize,
519#ifdef UA_ENABLE_HISTORIZING
522UA_Client_Service_historyRead(
UA_Client *client,
532UA_Client_Service_historyUpdate(
UA_Client *client,
560UA_Client_Service_addNodes(
UA_Client *client,
570UA_Client_Service_addReferences(
UA_Client *client,
580UA_Client_Service_deleteNodes(
UA_Client *client,
590UA_Client_Service_deleteReferences(
603UA_Client_Service_browse(
UA_Client *client,
613UA_Client_Service_browseNext(
UA_Client *client,
623UA_Client_Service_translateBrowsePathsToNodeIds(
636UA_Client_Service_registerNodes(
UA_Client *client,
646UA_Client_Service_unregisterNodes(
658#ifdef UA_ENABLE_QUERY
661UA_Client_Service_queryFirst(
UA_Client *client,
671UA_Client_Service_queryNext(
UA_Client *client,
758 void *data, UA_DateTime date,
UA_UInt64 *callbackId);
786#define UA_Client_removeRepeatedCallback(server, callbackId) \
787 UA_Client_removeCallback(server, callbackId);
UA_StatusCode UA_THREADSAFE UA_Client_addTimedCallback(UA_Client *client, UA_ClientCallback callback, void *data, UA_DateTime date, UA_UInt64 *callbackId)
Add a callback for execution at a specified time.
UA_StatusCode UA_THREADSAFE UA_Client_disconnectSecureChannelAsync(UA_Client *client)
Disconnect the SecureChannel but keep the Session intact (if it exists).
void(* UA_ClientAsyncServiceCallback)(UA_Client *client, void *userdata, UA_UInt32 requestId, void *response)
UA_StatusCode UA_THREADSAFE __UA_Client_AsyncService(UA_Client *client, const void *request, const UA_DataType *requestType, UA_ClientAsyncServiceCallback callback, const UA_DataType *responseType, void *userdata, UA_UInt32 *requestId)
UA_StatusCode UA_THREADSAFE UA_Client_getSessionAuthenticationToken(UA_Client *client, UA_NodeId *authenticationToken, UA_ByteString *serverNonce)
Get the AuthenticationToken and ServerNonce required to activate the current Session on a different S...
UA_StatusCode UA_THREADSAFE UA_Client_activateCurrentSessionAsync(UA_Client *client)
Async version of UA_Client_activateCurrentSession.
UA_EXPORT UA_ClientConfig * UA_Client_getConfig(UA_Client *client)
Get the client configuration.
void UA_THREADSAFE UA_Client_removeCallback(UA_Client *client, UA_UInt64 callbackId)
UA_StatusCode UA_THREADSAFE UA_Client_findServers(UA_Client *client, const char *serverUrl, size_t serverUrisSize, UA_String *serverUris, size_t localeIdsSize, UA_String *localeIds, size_t *registeredServersSize, UA_ApplicationDescription **registeredServers)
Gets a list of all registered servers at the given server.
UA_EXPORT UA_StatusCode UA_Client_getConnectionAttribute_scalar(UA_Client *client, const UA_QualifiedName key, const UA_DataType *type, void *outValue)
Returns NULL if the attribute is not defined or not a scalar or not of the right datatype.
UA_EXPORT void UA_ClientConfig_delete(UA_ClientConfig *config)
UA_StatusCode UA_THREADSAFE UA_Client_activateSession(UA_Client *client, const UA_NodeId authenticationToken, const UA_ByteString serverNonce)
Activate an already created Session.
void UA_THREADSAFE UA_Client_getState(UA_Client *client, UA_SecureChannelState *channelState, UA_SessionState *sessionState, UA_StatusCode *connectStatus)
Returns the current state.
void(* UA_ClientCallback)(UA_Client *client, void *data)
UA_StatusCode UA_Client_startListeningForReverseConnect(UA_Client *client, const UA_String *listenHostnames, size_t listenHostnamesLength, UA_UInt16 port)
Sets up a listening socket for incoming reverse connect requests by OPC UA servers.
void UA_THREADSAFE __UA_Client_Service(UA_Client *client, const void *request, const UA_DataType *requestType, void *response, const UA_DataType *responseType)
Don't use this function.
UA_StatusCode UA_THREADSAFE UA_Client_activateSessionAsync(UA_Client *client, const UA_NodeId authenticationToken, const UA_ByteString serverNonce)
Async version of UA_Client_activateSession.
UA_StatusCode UA_THREADSAFE UA_Client_findServersOnNetwork(UA_Client *client, const char *serverUrl, UA_UInt32 startingRecordId, UA_UInt32 maxRecordsToReturn, size_t serverCapabilityFilterSize, UA_String *serverCapabilityFilter, size_t *serverOnNetworkSize, UA_ServerOnNetwork **serverOnNetwork)
Get a list of all known server in the network.
UA_EXPORT void UA_ClientConfig_clear(UA_ClientConfig *config)
UA_StatusCode UA_THREADSAFE UA_Client_disconnectSecureChannel(UA_Client *client)
Disconnect the SecureChannel but keep the Session intact (if it exists).
UA_EXPORT const UA_DataType * UA_Client_findDataType(UA_Client *client, const UA_NodeId *typeId)
Lookup a datatype by its NodeId.
UA_EXPORT UA_StatusCode UA_Client_getConnectionAttribute(UA_Client *client, const UA_QualifiedName key, UA_Variant *outValue)
Returns a shallow copy of the attribute.
UA_Client * UA_Client_newWithConfig(const UA_ClientConfig *config)
Creates a new client.
UA_StatusCode UA_THREADSAFE UA_Client_getEndpoints(UA_Client *client, const char *serverUrl, size_t *endpointDescriptionsSize, UA_EndpointDescription **endpointDescriptions)
Gets a list of endpoints of a server.
UA_StatusCode UA_THREADSAFE UA_Client_renewSecureChannel(UA_Client *client)
Force the manual renewal of the SecureChannel.
UA_EXPORT UA_Client * UA_Client_new(void)
Create a new client with a default configuration that adds plugins for networking,...
void UA_Client_delete(UA_Client *client)
(Disconnect and) delete the client
UA_StatusCode UA_THREADSAFE UA_Client_activateCurrentSession(UA_Client *client)
Re-activate the current session.
UA_EXPORT UA_StatusCode UA_THREADSAFE UA_Client_getConnectionAttributeCopy(UA_Client *client, const UA_QualifiedName key, UA_Variant *outValue)
Return a deep copy of the attribute.
UA_StatusCode UA_THREADSAFE __UA_Client_connect(UA_Client *client, UA_Boolean async)
Connect with the client configuration.
UA_StatusCode UA_THREADSAFE UA_Client_run_iterate(UA_Client *client, UA_UInt32 timeout)
Listen on the network and process arriving asynchronous responses in the background.
UA_StatusCode UA_THREADSAFE UA_Client_disconnectAsync(UA_Client *client)
Disconnect async.
UA_EXPORT UA_THREADSAFE UA_StatusCode UA_Client_cancelByRequestHandle(UA_Client *client, UA_UInt32 requestHandle, UA_UInt32 *cancelCount)
Cancel all dispatched requests with the given requestHandle.
UA_EXPORT UA_StatusCode UA_ClientConfig_copy(UA_ClientConfig const *src, UA_ClientConfig *dst)
UA_StatusCode UA_THREADSAFE UA_Client_disconnect(UA_Client *client)
Disconnect and close a connection to the selected server.
UA_StatusCode UA_THREADSAFE UA_Client_addRepeatedCallback(UA_Client *client, UA_ClientCallback callback, void *data, UA_Double interval_ms, UA_UInt64 *callbackId)
Add a callback for cyclic repetition to the client.
UA_StatusCode UA_THREADSAFE UA_Client_modifyAsyncCallback(UA_Client *client, UA_UInt32 requestId, void *userdata, UA_ClientAsyncServiceCallback callback)
Set new userdata and callback for an existing request.
UA_StatusCode UA_THREADSAFE UA_Client_changeRepeatedCallbackInterval(UA_Client *client, UA_UInt64 callbackId, UA_Double interval_ms)
UA_EXPORT UA_THREADSAFE UA_StatusCode UA_Client_cancelByRequestId(UA_Client *client, UA_UInt32 requestId, UA_UInt32 *cancelCount)
Map the requestId to the requestHandle used for that request and call the Cancel service for that req...
struct UA_Client UA_Client
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
#define UA_STATUSCODE_BADOUTOFMEMORY
Not enough memory to complete the operation.
#define UA_STATUSCODE_GOOD
The operation succeeded.
size_t authSecurityPoliciesSize
UA_Boolean externalEventLoop
size_t securityPoliciesSize
UA_EndpointDescription endpoint
const UA_DataTypeArray * customDataTypes
UA_UInt16 outStandingPublishRequests
size_t sessionLocaleIdsSize
UA_UInt32 requestedSessionTimeout
UA_CertificateVerification certificateVerification
void(* stateCallback)(UA_Client *client, UA_SecureChannelState channelState, UA_SessionState sessionState, UA_StatusCode connectStatus)
UA_SecurityPolicy * securityPolicies
UA_StatusCode(* privateKeyPasswordCallback)(UA_ClientConfig *cc, UA_ByteString *password)
UA_ApplicationDescription clientDescription
UA_String authSecurityPolicyUri
UA_ConnectionConfig localConnectionConfig
UA_String securityPolicyUri
UA_ExtensionObject userIdentityToken
UA_MessageSecurityMode securityMode
UA_UserTokenPolicy userTokenPolicy
void(* inactivityCallback)(UA_Client *client)
UA_UInt32 connectivityCheckInterval
void(* subscriptionInactivityCallback)(UA_Client *client, UA_UInt32 subscriptionId, void *subContext)
UA_SecurityPolicy * authSecurityPolicies
UA_LocaleId * sessionLocaleIds
UA_UInt32 secureChannelLifeTime
Datatype arrays with custom type definitions can be added in a linked list to the client or server co...
DeleteReferencesResponse.
TranslateBrowsePathsToNodeIdsRequest.
TranslateBrowsePathsToNodeIdsResponse.
void UA_ExtensionObject_setValue(UA_ExtensionObject *eo, void *p, const UA_DataType *type)
Initialize the ExtensionObject and set the "decoded" value to the given pointer.
_UA_BEGIN_DECLS typedef bool UA_Boolean
This Source Code Form is subject to the terms of the Mozilla Public License, v.
#define UA_STRING_ALLOC(CHARS)
#define UA_TYPES_WRITERESPONSE
#define UA_TYPES_HISTORYUPDATEREQUEST
#define UA_TYPES_UNREGISTERNODESRESPONSE
#define UA_TYPES_CALLREQUEST
#define UA_TYPES_HISTORYUPDATERESPONSE
#define UA_TYPES_BROWSENEXTREQUEST
#define UA_TYPES_ADDNODESREQUEST
#define UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSRESPONSE
#define UA_TYPES_ADDREFERENCESREQUEST
#define UA_TYPES_HISTORYREADREQUEST
#define UA_TYPES_BROWSENEXTRESPONSE
UA_MessageSecurityMode
MessageSecurityMode.
#define UA_TYPES_DELETEREFERENCESREQUEST
#define UA_TYPES_BROWSEREQUEST
#define UA_TYPES_REGISTERNODESREQUEST
#define UA_TYPES_CALLRESPONSE
#define UA_TYPES_ADDNODESRESPONSE
#define UA_TYPES_ADDREFERENCESRESPONSE
#define UA_TYPES_DELETEREFERENCESRESPONSE
#define UA_TYPES_DELETENODESRESPONSE
#define UA_TYPES_QUERYFIRSTRESPONSE
#define UA_TYPES_READREQUEST
#define UA_TYPES_WRITEREQUEST
#define UA_TYPES_HISTORYREADRESPONSE
#define UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSREQUEST
#define UA_TYPES_USERNAMEIDENTITYTOKEN
#define UA_TYPES_DELETENODESREQUEST
#define UA_TYPES_BROWSERESPONSE
#define UA_TYPES_READRESPONSE
#define UA_TYPES_QUERYFIRSTREQUEST
#define UA_TYPES_UNREGISTERNODESREQUEST
#define UA_TYPES_REGISTERNODESRESPONSE
UA_DataType UA_TYPES[388]