5#ifndef UA_CLIENT_SUBSCRIPTIONS_H_
6#define UA_CLIENT_SUBSCRIPTIONS_H_
12#ifdef UA_ENABLE_SUBSCRIPTIONS
33UA_CreateSubscriptionRequest_default(
void) {
35 UA_CreateSubscriptionRequest_init(&request);
49 void *subscriptionContext,
56 void *subscriptionContext,
87UA_Client_Subscriptions_setPublishingMode(
UA_Client *client,
100UA_MonitoredItemCreateRequest_default(
UA_NodeId nodeId) {
102 UA_MonitoredItemCreateRequest_init(&request);
129 size_t nEventFields,
UA_Variant *eventFields);
200UA_Client_MonitoredItems_setMonitoringMode(
UA_Client *client,
210UA_Client_MonitoredItems_setTriggering(
UA_Client *client,
220UA_Client_MonitoredItems_modify_async(
UA_Client *client,
227 userdata, requestId);
231UA_Client_MonitoredItems_setMonitoringMode_async(
UA_Client *client,
238 userdata, requestId);
242UA_Client_MonitoredItems_setTriggering_async(
UA_Client *client,
249 userdata, requestId);
void(* UA_ClientAsyncServiceCallback)(UA_Client *client, void *userdata, UA_UInt32 requestId, void *response)
Use the type versions of this method.
void __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_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_Client_Subscriptions_create_async(UA_Client *client, const UA_CreateSubscriptionRequest request, void *subscriptionContext, UA_Client_StatusChangeNotificationCallback statusChangeCallback, UA_Client_DeleteSubscriptionCallback deleteCallback, UA_ClientAsyncServiceCallback callback, void *userdata, UA_UInt32 *requestId)
UA_MonitoredItemCreateResult UA_Client_MonitoredItems_createEvent(UA_Client *client, UA_UInt32 subscriptionId, UA_TimestampsToReturn timestampsToReturn, const UA_MonitoredItemCreateRequest item, void *context, UA_Client_EventNotificationCallback callback, UA_Client_DeleteMonitoredItemCallback deleteCallback)
UA_StatusCode UA_Client_Subscriptions_deleteSingle(UA_Client *client, UA_UInt32 subscriptionId)
Delete a single subscription.
void(* UA_Client_EventNotificationCallback)(UA_Client *client, UA_UInt32 subId, void *subContext, UA_UInt32 monId, void *monContext, size_t nEventFields, UA_Variant *eventFields)
Callback for Event notifications.
void(* UA_Client_DeleteMonitoredItemCallback)(UA_Client *client, UA_UInt32 subId, void *subContext, UA_UInt32 monId, void *monContext)
Callback for the deletion of a MonitoredItem.
UA_DeleteSubscriptionsResponse UA_Client_Subscriptions_delete(UA_Client *client, const UA_DeleteSubscriptionsRequest request)
UA_StatusCode UA_Client_MonitoredItems_createEvents_async(UA_Client *client, const UA_CreateMonitoredItemsRequest request, void **contexts, UA_Client_EventNotificationCallback *callbacks, UA_Client_DeleteMonitoredItemCallback *deleteCallbacks, UA_ClientAsyncServiceCallback createCallback, void *userdata, UA_UInt32 *requestId)
Monitor the EventNotifier attribute only.
void(* UA_Client_StatusChangeNotificationCallback)(UA_Client *client, UA_UInt32 subId, void *subContext, UA_StatusChangeNotification *notification)
_UA_BEGIN_DECLS typedef void(* UA_Client_DeleteSubscriptionCallback)(UA_Client *client, UA_UInt32 subId, void *subContext)
This Source Code Form is subject to the terms of the Mozilla Public License, v.
UA_ModifyMonitoredItemsResponse UA_Client_MonitoredItems_modify(UA_Client *client, const UA_ModifyMonitoredItemsRequest request)
The clientHandle parameter will be filled automatically.
void(* UA_Client_DataChangeNotificationCallback)(UA_Client *client, UA_UInt32 subId, void *subContext, UA_UInt32 monId, void *monContext, UA_DataValue *value)
Callback for DataChange notifications.
UA_StatusCode UA_Client_MonitoredItems_delete_async(UA_Client *client, const UA_DeleteMonitoredItemsRequest request, UA_ClientAsyncServiceCallback callback, void *userdata, UA_UInt32 *requestId)
UA_ModifySubscriptionResponse UA_Client_Subscriptions_modify(UA_Client *client, const UA_ModifySubscriptionRequest request)
UA_StatusCode UA_Client_Subscriptions_delete_async(UA_Client *client, const UA_DeleteSubscriptionsRequest request, UA_ClientAsyncServiceCallback callback, void *userdata, UA_UInt32 *requestId)
UA_CreateMonitoredItemsResponse UA_Client_MonitoredItems_createDataChanges(UA_Client *client, const UA_CreateMonitoredItemsRequest request, void **contexts, UA_Client_DataChangeNotificationCallback *callbacks, UA_Client_DeleteMonitoredItemCallback *deleteCallbacks)
Don't use to monitor the EventNotifier attribute.
UA_CreateMonitoredItemsResponse UA_Client_MonitoredItems_createEvents(UA_Client *client, const UA_CreateMonitoredItemsRequest request, void **contexts, UA_Client_EventNotificationCallback *callback, UA_Client_DeleteMonitoredItemCallback *deleteCallback)
Monitor the EventNotifier attribute only.
UA_CreateSubscriptionResponse UA_Client_Subscriptions_create(UA_Client *client, const UA_CreateSubscriptionRequest request, void *subscriptionContext, UA_Client_StatusChangeNotificationCallback statusChangeCallback, UA_Client_DeleteSubscriptionCallback deleteCallback)
UA_DeleteMonitoredItemsResponse UA_Client_MonitoredItems_delete(UA_Client *client, const UA_DeleteMonitoredItemsRequest)
UA_StatusCode UA_Client_MonitoredItems_deleteSingle(UA_Client *client, UA_UInt32 subscriptionId, UA_UInt32 monitoredItemId)
UA_StatusCode UA_Client_MonitoredItems_createDataChanges_async(UA_Client *client, const UA_CreateMonitoredItemsRequest request, void **contexts, UA_Client_DataChangeNotificationCallback *callbacks, UA_Client_DeleteMonitoredItemCallback *deleteCallbacks, UA_ClientAsyncServiceCallback createCallback, void *userdata, UA_UInt32 *requestId)
UA_MonitoredItemCreateResult UA_Client_MonitoredItems_createDataChange(UA_Client *client, UA_UInt32 subscriptionId, UA_TimestampsToReturn timestampsToReturn, const UA_MonitoredItemCreateRequest item, void *context, UA_Client_DataChangeNotificationCallback callback, UA_Client_DeleteMonitoredItemCallback deleteCallback)
UA_StatusCode UA_Client_Subscriptions_modify_async(UA_Client *client, const UA_ModifySubscriptionRequest request, UA_ClientAsyncServiceCallback callback, void *userdata, UA_UInt32 *requestId)
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
UA_UInt32 requestedMaxKeepAliveCount
UA_Boolean publishingEnabled
UA_UInt32 maxNotificationsPerPublish
UA_UInt32 requestedLifetimeCount
UA_Double requestedPublishingInterval
UA_MonitoringMode monitoringMode
UA_ReadValueId itemToMonitor
UA_MonitoringParameters requestedParameters
UA_Double samplingInterval
#define UA_TYPES_SETTRIGGERINGRESPONSE
#define UA_TYPES_MODIFYMONITOREDITEMSREQUEST
#define UA_TYPES_MODIFYMONITOREDITEMSRESPONSE
#define UA_TYPES_SETTRIGGERINGREQUEST
const UA_DataType UA_TYPES[191]
#define UA_TYPES_SETMONITORINGMODEREQUEST
#define UA_TYPES_SETPUBLISHINGMODERESPONSE
#define UA_TYPES_SETMONITORINGMODERESPONSE
@ UA_MONITORINGMODE_REPORTING
#define UA_TYPES_SETPUBLISHINGMODEREQUEST