S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
libs2opc_new_client.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
27#ifndef LIBS2OPC_NEW_CLIENT_H_
28#define LIBS2OPC_NEW_CLIENT_H_
29
30#include "libs2opc_client.h"
31
37 void* request,
38 uintptr_t userContext);
39
45 void* request,
46 void** response);
52 SOPC_ClientConnectionEvent_Fct* connectEventCb,
53 SOPC_ClientConnection** secureConnection);
54
60
66 void* request,
67 uintptr_t userContext);
68
74 void* request,
75 void** response);
76
82 SOPC_ClientConnection* secureConnection,
85 uintptr_t userParam);
86
92
98 uint32_t nbPublishTokens);
99
105 double* revisedPublishingInterval,
106 uint32_t* revisedLifetimeCount,
107 uint32_t* revisedMaxKeepAliveCount);
108
114
120
126 uint32_t* pSubscriptionId);
127
133 const SOPC_ClientHelper_Subscription* subscription,
134 OpcUa_CreateMonitoredItemsRequest* monitoredItemsReq,
135 const uintptr_t* monitoredItemCtxArray,
136 OpcUa_CreateMonitoredItemsResponse* monitoredItemsResp);
137
143 const SOPC_ClientHelper_Subscription* subscription,
144 OpcUa_DeleteMonitoredItemsRequest* delMonitoredItemsReq,
145 OpcUa_DeleteMonitoredItemsResponse* delMonitoredItemsResp);
146
152 void* subOrMIrequest,
153 void** subOrMIresponse);
154
160 void* subOrMIrequest,
161 uintptr_t userContext);
162
163#endif
High level interface to run an OPC UA client.
struct SOPC_ClientConnection SOPC_ClientConnection
Structure representing a secure connection to a server.
Definition libs2opc_client.h:56
void SOPC_ClientConnectionEvent_Fct(SOPC_ClientConnection *conn, SOPC_ClientConnectionEvent event, SOPC_StatusCode status)
Type of callback called on client connection event.
Definition libs2opc_client.h:84
struct SOPC_ClientHelper_Subscription SOPC_ClientHelper_Subscription
Definition libs2opc_client.h:307
void SOPC_ClientSubscriptionNotification_Fct(const SOPC_ClientHelper_Subscription *subscription, SOPC_StatusCode status, SOPC_EncodeableType *notificationType, uint32_t nbNotifElts, const void *notification, uintptr_t *monitoredItemCtxArray)
Type of callback called on Subscription Notification.
Definition libs2opc_client.h:331
SOPC_ReturnStatus SOPC_ClientHelperNew_ServiceAsync(SOPC_ClientConnection *secureConnection, void *request, uintptr_t userContext)
SOPC_ReturnStatus SOPC_ClientHelperNew_Subscription_SyncService(const SOPC_ClientHelper_Subscription *subscription, void *subOrMIrequest, void **subOrMIresponse)
SOPC_ReturnStatus SOPC_ClientHelperNew_Subscription_AsyncService(const SOPC_ClientHelper_Subscription *subscription, void *subOrMIrequest, uintptr_t userContext)
SOPC_ReturnStatus SOPC_ClientHelperNew_DiscoveryServiceAsync(SOPC_SecureConnection_Config *secConnConfig, void *request, uintptr_t userContext)
SOPC_ReturnStatus SOPC_ClientHelperNew_Subscription_CreateMonitoredItems(const SOPC_ClientHelper_Subscription *subscription, OpcUa_CreateMonitoredItemsRequest *monitoredItemsReq, const uintptr_t *monitoredItemCtxArray, OpcUa_CreateMonitoredItemsResponse *monitoredItemsResp)
SOPC_ClientHelper_Subscription * SOPC_ClientHelperNew_CreateSubscription(SOPC_ClientConnection *secureConnection, OpcUa_CreateSubscriptionRequest *subParams, SOPC_ClientSubscriptionNotification_Fct *subNotifCb, uintptr_t userParam)
SOPC_ReturnStatus SOPC_ClientHelperNew_ServiceSync(SOPC_ClientConnection *secureConnection, void *request, void **response)
SOPC_ReturnStatus SOPC_ClientHelperNew_Connect(SOPC_SecureConnection_Config *secConnConfig, SOPC_ClientConnectionEvent_Fct *connectEventCb, SOPC_ClientConnection **secureConnection)
SOPC_ClientConnection * SOPC_ClientHelperNew_GetSecureConnection(const SOPC_ClientHelper_Subscription *subscription)
SOPC_ReturnStatus SOPC_ClientHelperNew_DeleteSubscription(SOPC_ClientHelper_Subscription **subscription)
SOPC_ReturnStatus SOPC_ClientHelperNew_Subscription_DeleteMonitoredItems(const SOPC_ClientHelper_Subscription *subscription, OpcUa_DeleteMonitoredItemsRequest *delMonitoredItemsReq, OpcUa_DeleteMonitoredItemsResponse *delMonitoredItemsResp)
SOPC_ReturnStatus SOPC_ClientHelperNew_Subscription_SetAvailableTokens(SOPC_ClientHelper_Subscription *subscription, uint32_t nbPublishTokens)
SOPC_ReturnStatus SOPC_ClientHelperNew_DiscoveryServiceSync(SOPC_SecureConnection_Config *secConnConfig, void *request, void **response)
SOPC_ReturnStatus SOPC_ClientHelperNew_Subscription_GetRevisedParameters(SOPC_ClientHelper_Subscription *subscription, double *revisedPublishingInterval, uint32_t *revisedLifetimeCount, uint32_t *revisedMaxKeepAliveCount)
SOPC_ReturnStatus SOPC_ClientHelperNew_Disconnect(SOPC_ClientConnection **secureConnection)
SOPC_ReturnStatus SOPC_ClientHelperNew_GetSubscriptionId(const SOPC_ClientHelper_Subscription *subscription, uint32_t *pSubscriptionId)
uintptr_t SOPC_ClientHelperNew_Subscription_GetUserParam(const SOPC_ClientHelper_Subscription *subscription)
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
Structure representing a secure connection configuration (secure channel + session) which allow to es...
Definition sopc_user_app_itf.h:216
Definition sopc_types.h:5562
Definition sopc_types.h:5586
Definition sopc_types.h:5868
Definition sopc_types.h:5818
Definition sopc_types.h:5841