Go to the documentation of this file.
28 #ifndef LIBS2OPC_CLIENT_CMDS_H_
29 #define LIBS2OPC_CLIENT_CMDS_H_
835 const char* productUri,
836 const char* defaultAppName,
837 const char* defaultAppNameLocale,
structure containing a user identity token
Definition: libs2opc_client_cmds.h:363
enum _OpcUa_UserTokenType OpcUa_UserTokenType
const char * path_cert_x509_token
Definition: libs2opc_client_cmds.h:131
Structure defining a node, an attribute and a value.
Definition: libs2opc_client_cmds.h:219
void SOPC_ClientHelper_BrowseResultReference_Clear(SOPC_ClientHelper_BrowseResultReference *brr)
Clears the content of the SOPC_ClientHelper_BrowseResultReference structure pointed by brr.
structure containing the result of a method call
Definition: libs2opc_client_cmds.h:336
int32_t SOPC_ClientHelper_Disconnect(int32_t connectionId)
Disconnect from a remote OPC server. The function waits until the client is effectively disconnected,...
uint32_t reverseConnectionConfigId
Definition: libs2opc_client_cmds.h:153
uint8_t * serverCertificate
Definition: libs2opc_client_cmds.h:409
int32_t securityLevel
Definition: libs2opc_client_cmds.h:407
bool includeSubtypes
Definition: libs2opc_client_cmds.h:223
OpcUa_UserTokenType tokenType
Definition: libs2opc_client_cmds.h:365
char * displayName
Definition: libs2opc_client_cmds.h:250
uint32_t SOPC_StatusCode
Definition: libs2opc_client.h:57
enum _OpcUa_BrowseDirection OpcUa_BrowseDirection
const char * path_key_x509_token
Definition: libs2opc_client_cmds.h:132
SOPC_Variant * inputParams
Definition: libs2opc_client_cmds.h:321
OpcUa_MessageSecurityMode security_mode
Definition: libs2opc_client_cmds.h:122
void SOPC_ClientHelper_DisconnectCbk(const uint32_t connectionId)
Callback type for disconnection.
Definition: libs2opc_client_cmds.h:67
SOPC_ReturnStatus statusCode
Definition: libs2opc_client_cmds.h:267
int32_t nbOfInputParams
Definition: libs2opc_client_cmds.h:320
OpcUa_MessageSecurityMode
Definition: libs2opc_client.h:86
void SOPC_ClientHelper_DataChangeCbk(const int32_t connectionId, const char *nodeId, const SOPC_DataValue *value)
Callback type for data change event (related to a subscription)
Definition: libs2opc_client_cmds.h:54
SOPC_ReturnStatus SOPC_ClientHelper_SetApplicationDescription(const char *applicationUri, const char *productUri, const char *defaultAppName, const char *defaultAppNameLocale, OpcUa_ApplicationType applicationType)
Define client application description.
const char * indexRange
Definition: libs2opc_client_cmds.h:197
char * securityPolicyUri
Definition: libs2opc_client_cmds.h:368
const char * path_cert_srv
Definition: libs2opc_client_cmds.h:125
const char * policyId
Definition: libs2opc_client_cmds.h:128
int32_t nbOfEndpoints
Definition: libs2opc_client_cmds.h:424
void SOPC_ClientHelper_BrowseResultReference_Move(SOPC_ClientHelper_BrowseResultReference *dest, SOPC_ClientHelper_BrowseResultReference *src)
Move the content of the SOPC_ClientHelper_BrowseResultReference from source to destination....
SOPC_ClientHelper_EndpointDescription * endpoints
Definition: libs2opc_client_cmds.h:425
char * nodeId
Definition: libs2opc_client_cmds.h:248
int32_t SOPC_ClientHelper_CreateConnection(int32_t cfg_id)
Creates a new connection to a remote OPC server. The connection represent the whole client and is lat...
int32_t SOPC_ClientHelper_Initialize(SOPC_ClientHelper_DisconnectCbk *const disconnect_callback)
Configure the library. This function shall be called once by the host application before any other se...
const char * username
Definition: libs2opc_client_cmds.h:129
SOPC_ClientHelper_BrowseResultReference * references
Definition: libs2opc_client_cmds.h:269
int32_t SOPC_ClientHelper_Read(int32_t connectionId, SOPC_ClientHelper_ReadValue *readValues, size_t nbElements, SOPC_DataValue *values)
Read one or more attributes of one or more Nodes. Return both the source and Server timestamps for ea...
Connection configuration to a remote OPC server.
Definition: libs2opc_client_cmds.h:150
const char * nodeId
Definition: libs2opc_client_cmds.h:173
int32_t nbOfOutputParams
Definition: libs2opc_client_cmds.h:338
char * methodNodeId
Definition: libs2opc_client_cmds.h:319
enum _OpcUa_NodeClass OpcUa_NodeClass
const char * path_cert_cli
Definition: libs2opc_client_cmds.h:126
char * objectNodeId
Definition: libs2opc_client_cmds.h:318
SOPC_ClientHelper_UserIdentityToken * userIdentityTokens
Definition: libs2opc_client_cmds.h:405
uint32_t attributeId
Definition: libs2opc_client_cmds.h:196
int32_t SOPC_ClientHelper_CreateReverseEndpoint(const char *reverseEndpointURL)
Creates a new reverse endpoint to be used for reverse connection mechanism Return a reverse endpoint ...
Structure defining a node and value to write. Value should be single value or one-dimensional array: ...
Definition: libs2opc_client_cmds.h:172
const char * path_cert_auth
Definition: libs2opc_client_cmds.h:123
Definition: sopc_types.h:2434
const char * nodeId
Definition: libs2opc_client_cmds.h:220
int32_t nbOfUserIdentityTokens
Definition: libs2opc_client_cmds.h:404
int32_t SOPC_ClientHelper_CreateConfiguration(SOPC_ClientHelper_EndpointConnection *connection, SOPC_ClientHelper_Security *security, OpcUa_GetEndpointsResponse *expectedEndpoints)
Creates a new configuration to connect to a remote OPC server. Return a configuration id or error cod...
void SOPC_ClientHelper_BrowseResults_Clear(size_t nbElements, SOPC_ClientHelper_BrowseResult *results)
Clears the content of the SOPC_ClientHelper_BrowseResult[] results. The array is not deallocated sinc...
A log manager providing circular logging, multiple logging categories and levels with thread-safe acc...
const char * path_crl
Definition: libs2opc_client_cmds.h:124
structure containing the result of a browse request
Definition: libs2opc_client_cmds.h:266
int32_t SOPC_ClientHelper_AddMonitoredItems(int32_t connectionId, char **nodeIds, size_t nbNodeIds, SOPC_StatusCode *results)
Adds monitored items to the subscription associated to the given connection. SOPC_ClientHelper_Create...
char * browseName
Definition: libs2opc_client_cmds.h:249
SOPC_ReturnStatus SOPC_ClientHelper_GenericService(int32_t connectionId, void *requestMsg, void **responseMsg)
Call a generic OPC UA service using OPC UA request/response types. Note: request builder module funct...
int32_t SOPC_ClientHelper_CreateSubscription(int32_t connectionId, SOPC_ClientHelper_DataChangeCbk *callback)
Create a subscription associated to the given connection The given callback will be called on data ch...
SOPC_ReturnStatus SOPC_ClientHelper_SetLocaleIds(size_t nbLocales, const char **localeIds)
Define client preferred locales ids from an array of locale strings.
const char * path_key_cli
Definition: libs2opc_client_cmds.h:127
int32_t SOPC_ClientHelper_CallMethod(int32_t connectionId, SOPC_ClientHelper_CallMethodRequest *callRequests, size_t nbOfElements, SOPC_ClientHelper_CallMethodResult *callResults)
Call a method.
OpcUa_BrowseDirection direction
Definition: libs2opc_client_cmds.h:221
const char * indexRange
Definition: libs2opc_client_cmds.h:174
int32_t security_mode
Definition: libs2opc_client_cmds.h:402
This structure provides variant encapsulation.
Definition: sopc_builtintypes.h:370
structure containing the requested method to call and input parameters
Definition: libs2opc_client_cmds.h:317
Contains the types to be used by the user application to use the Toolkit.
structure containing the result of a GetEndpoints request
Definition: libs2opc_client_cmds.h:423
int32_t nbOfReferences
Definition: libs2opc_client_cmds.h:268
void SOPC_ClientHelper_GetEndpointsResult_Free(SOPC_ClientHelper_GetEndpointsResult **getEpResult)
Free the get endpoints result and its content. Make copy or move data to be kept prior to call this f...
int32_t SOPC_ClientHelper_Browse(int32_t connectionId, SOPC_ClientHelper_BrowseRequest *browseRequests, size_t nbElements, SOPC_ClientHelper_BrowseResult *browseResults)
Discover the references of a Node using Browse and browseNext services. If Browse Response returns Co...
bool isForward
Definition: libs2opc_client_cmds.h:247
void SOPC_ClientHelper_ReadResults_Free(size_t nbElements, SOPC_DataValue *values)
Free the result provided by SOPC_ClientHelper_Read.
int32_t serverCertificateNbBytes
Definition: libs2opc_client_cmds.h:408
const char * serverUri
Definition: libs2opc_client_cmds.h:152
char * issuedTokenType
Definition: libs2opc_client_cmds.h:366
int32_t SOPC_ClientHelper_Unsubscribe(int32_t connectionId)
Delete subscription associated to the given connection. If this function succeed, no more data change...
int32_t SOPC_ClientHelper_GetEndpoints(SOPC_ClientHelper_EndpointConnection *connection, SOPC_ClientHelper_GetEndpointsResult **result)
Sends a GetEndpoints request to the endpointUrl and provide the results.
char * issuerEndpointUrl
Definition: libs2opc_client_cmds.h:367
SOPC_Variant * outputParams
Definition: libs2opc_client_cmds.h:339
Structure defining a node, an attribute.
Definition: libs2opc_client_cmds.h:194
const char * password
Definition: libs2opc_client_cmds.h:130
const char * endpointUrl
Definition: libs2opc_client_cmds.h:151
const char * nodeId
Definition: libs2opc_client_cmds.h:195
Each attribute in OPC UA has a DataValue caracterized by the following structure.
Definition: sopc_builtintypes.h:381
char * endpointUrl
Definition: libs2opc_client_cmds.h:401
structure containing an endpoint description
Definition: libs2opc_client_cmds.h:400
char * referenceTypeId
Definition: libs2opc_client_cmds.h:246
Structure defining a node, an attribute and a value.
Definition: libs2opc_client_cmds.h:245
char * policyId
Definition: libs2opc_client_cmds.h:364
void SOPC_ClientHelper_CallMethodResults_Clear(size_t nbElements, SOPC_ClientHelper_CallMethodResult *results)
Clears the content of the SOPC_ClientHelper_CallMethodResult[] results. The array is not deallocated ...
int32_t SOPC_ClientHelper_Write(int32_t connectionId, SOPC_ClientHelper_WriteValue *writeValues, size_t nbElements, SOPC_StatusCode *writeResults)
Write values to attributes "Value" of one or more Nodes. This function waits for the server response,...
char * security_policyUri
Definition: libs2opc_client_cmds.h:403
Defines the cryptographic profiles: constants and struct.
SOPC_DataValue * value
Definition: libs2opc_client_cmds.h:175
char * transportProfileUri
Definition: libs2opc_client_cmds.h:406
void SOPC_ClientHelper_Finalize(void)
Clears the connections and configurations. It shall be done before a call to SOPC_CommonHelper_Clear.
const char * referenceTypeId
Definition: libs2opc_client_cmds.h:222
SOPC_StatusCode status
Definition: libs2opc_client_cmds.h:337
Connection configuration to a remote OPC server.
Definition: libs2opc_client_cmds.h:120
OpcUa_NodeClass nodeClass
Definition: libs2opc_client_cmds.h:251
const char * security_policy
Definition: libs2opc_client_cmds.h:121
enum _OpcUa_ApplicationType OpcUa_ApplicationType
SOPC_ReturnStatus
Definition: libs2opc_client.h:61