Go to the documentation of this file.
27 #ifndef LIBS2OPC_CLIENT_COMMON_H_
28 #define LIBS2OPC_CLIENT_COMMON_H_
54 const uintptr_t responseContext);
212 uintptr_t requestContext);
226 uintptr_t requestContext);
273 const char* productUri,
274 const char* defaultAppName,
275 const char* defaultAppNameLocale,
uint32_t SOPC_StatusCode
Definition: libs2opc_client.h:57
SOPC_ReturnStatus SOPC_ClientCommon_Initialize(const SOPC_LibSub_StaticCfg *pCfg, SOPC_ClientCommon_DiscoveryCbk *const cbkGetEndpoints)
Configure the library. This function shall be called once by the host application before any other se...
void SOPC_ClientCommon_Clear(void)
Clears the connections and configurations. It shall be done before a call to SOPC_CommonHelper_Clear.
uint32_t SOPC_ClientCommon_CreateReverseEndpoint(const char *reverseEndpointURL)
Creates a new reverse endpoint to be used for reverse connection mechanism Return a reverse endpoint ...
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_ClientCommon_ConfigureConnection(const SOPC_LibSub_ConnectionCfg *pCfg, SOPC_LibSub_ConfigurationId *pCfgId)
Configure a future connection. The given /p pCfgId is later used to create connections.
SOPC_ReturnStatus SOPC_ClientCommon_AsyncSendGetEndpointsRequest(SOPC_ClientHelper_EndpointConnection *connection, uintptr_t requestContext)
sends a GetEndpoints request
uint32_t SOPC_LibSub_ConfigurationId
Definition: libs2opc_client.h:116
Interface of a library supporting the subscription management, read/write operation and browse.
void SOPC_ClientCommon_DiscoveryCbk(const SOPC_StatusCode requestStatus, const void *response, const uintptr_t responseContext)
Callback type for discovery events.
Definition: libs2opc_client_common.h:52
const char * SOPC_LibSub_CstString
Definition: libs2opc_client.h:113
SOPC_ReturnStatus SOPC_ClientCommon_SetApplicationDescription(const char *applicationUri, const char *productUri, const char *defaultAppName, const char *defaultAppNameLocale, OpcUa_ApplicationType applicationType)
Define client application description.
Static configuration of OPC client library.
Definition: libs2opc_client.h:276
uint32_t SOPC_LibSub_ConnectionId
Definition: libs2opc_client.h:119
Connection configuration to a remote OPC server.
Definition: libs2opc_client_cmds.h:150
SOPC_ReturnStatus SOPC_ClientCommon_DeleteSubscription(const SOPC_LibSub_ConnectionId cliId)
deletes a subscription
uint32_t SOPC_LibSub_AttributeId
AttributeIds, as defined in the OPC UA Reference, Part 6 Annex A.
Definition: libs2opc_client.h:167
SOPC_ReturnStatus SOPC_ClientCommon_Connect(const SOPC_LibSub_ConfigurationId cfgId, SOPC_LibSub_ConnectionId *pCliId)
Creates a new connection to a remote OPC server from configuration id cfg_id. The connection represen...
SOPC_ReturnStatus SOPC_ClientCommon_CreateSubscription(const SOPC_LibSub_ConnectionId cliId, SOPC_ClientHelper_DataChangeCbk cbkWrapper)
Create a subscription.
uint32_t SOPC_LibSub_DataId
Definition: libs2opc_client.h:122
SOPC_ReturnStatus SOPC_ClientCommon_Disconnect(const SOPC_LibSub_ConnectionId cliId)
Disconnect from a remote OPC server. The function waits until the client is effectively disconnected,...
SOPC_ReturnStatus SOPC_ClientCommon_AddToSubscription(const SOPC_LibSub_ConnectionId cliId, const SOPC_LibSub_CstString *lszNodeId, const SOPC_LibSub_AttributeId *lattrId, int32_t nElements, SOPC_LibSub_DataId *lDataId, OpcUa_CreateMonitoredItemsResponse *results)
Add variables to the subscription of the connection. This call is synchroneous: it waits for the serv...
SOPC_ReturnStatus SOPC_ClientCommon_SetLocaleIds(size_t nbLocales, const char **localeIds)
Define client preferred locales ids from an array of locale strings.
Definition: sopc_types.h:5586
Connection configuration to a remote OPC server.
Definition: libs2opc_client.h:365
Interface of an example client library supporting the subscription management.
SOPC_ReturnStatus SOPC_ClientCommon_AsyncSendRequestOnSession(SOPC_LibSub_ConnectionId cliId, void *requestStruct, uintptr_t requestContext)
Sends a generic request on the connection. The request must be accepted by the SOPC encoders (OpcUa_<...
enum _OpcUa_ApplicationType OpcUa_ApplicationType
SOPC_ReturnStatus
Definition: libs2opc_client.h:61