Go to the documentation of this file.
33 #ifndef LIBS2OPC_REQUEST_BUILDER_H_
34 #define LIBS2OPC_REQUEST_BUILDER_H_
95 const char* indexRange);
190 const char* indexRange,
248 size_t maxReferencesPerNode,
295 const char* referenceTypeId,
296 bool includeSubtypes,
339 bool includeSubtypes,
407 const char* startingNodeId,
408 size_t nbPathElements,
435 size_t nbPathElements,
480 bool includeSubtypes,
481 uint16_t targetNsIndex,
482 const char* targetName);
527 char*
const* localeIds);
550 char*
const* profileURIs);
618 const uint32_t* optWriteMask,
619 const uint32_t* optUserWriteMask,
622 const int32_t* optValueRank,
623 int32_t noOfArrayDimensions,
624 const uint32_t* optArrayDimensions,
627 const double* optMinimumSamplingInterval,
666 uint32_t reqLifetimeCount,
667 uint32_t reqMaxKeepAliveCount,
668 uint32_t maxNotifPerPublish,
692 size_t nbMonitoredItems,
721 uint32_t subscriptionId,
722 size_t nbMonitoredItems,
723 char*
const* nodeIdsToMonitor,
745 size_t nbMonitoredItems,
828 const char* indexRange);
845 double deadbandValue);
877 size_t whereClauseEltIdx,
891 size_t whereClauseEltIdx,
916 size_t selectClauseIdx,
918 size_t noOfBrowsePath,
954 size_t selectClauseIdx,
957 const char* strQnPath,
959 const char* indexRange);
1011 uint32_t clientHandle,
1012 double samplingInterval,
1037 size_t nbMonitoredItems,
1072 uint32_t monitoredItemId,
1073 uint32_t clientHandle,
1074 double samplingInterval,
1101 size_t nbMonitoredItems,
1102 const uint32_t* optMonitoredItemIds);
1117 uint32_t monitoredItemId);
1159 int32_t nbOfInputArguments,
1188 const char* objectId,
1189 const char* methodId,
1190 int32_t nbOfInputArguments,
Definition: sopc_types.h:5868
Definition: sopc_types.h:4649
This structure describes a basic NodeID in OPC UA.
Definition: sopc_builtintypes.h:189
Definition: sopc_types.h:3902
OpcUa_GetEndpointsRequest * SOPC_GetEndpointsRequest_Create(const char *endpointURL)
Creates a GetEndpoint request for the given endpoint URL.
Definition: sopc_types.h:3701
OpcUa_DeleteMonitoredItemsRequest * SOPC_DeleteMonitoredItemsRequest_Create(uint32_t subscriptionId, size_t nbMonitoredItems, const uint32_t *optMonitoredItemIds)
Creates an DeleteMonitoredItems request.
SOPC_ReturnStatus SOPC_AddNodeRequest_SetVariableAttributes(OpcUa_AddNodesRequest *addNodesRequest, size_t index, const SOPC_ExpandedNodeId *parentNodeId, const SOPC_NodeId *referenceTypeId, const SOPC_ExpandedNodeId *optRequestedNodeId, const SOPC_QualifiedName *browseName, const SOPC_ExpandedNodeId *typeDefinition, const SOPC_LocalizedText *optDisplayName, const SOPC_LocalizedText *optDescription, const uint32_t *optWriteMask, const uint32_t *optUserWriteMask, const SOPC_Variant *optValue, const SOPC_NodeId *optDataType, const int32_t *optValueRank, int32_t noOfArrayDimensions, const uint32_t *optArrayDimensions, const SOPC_Byte *optAccessLevel, const SOPC_Byte *optUserAccessLevel, const double *optMinimumSamplingInterval, SOPC_Boolean *optHistorizing)
Sets the attributes values requested for the Variable node to add. Optional parameters are prefixed b...
SOPC_ReturnStatus SOPC_CreateMonitoredItemsRequest_SetMonitoredItemParams(OpcUa_CreateMonitoredItemsRequest *createMIrequest, size_t index, OpcUa_MonitoringMode monitoringMode, uint32_t clientHandle, double samplingInterval, SOPC_ExtensionObject *optFilter, uint32_t queueSize, SOPC_Boolean discardOldest)
Sets the monitored item monitoring parameters. It shall be completed by a call to SOPC_CreateMonitore...
An ExtensionObject is a container for any Structured DataTypes which cannot be encoded as one of the ...
Definition: sopc_builtintypes.h:262
enum _OpcUa_BrowseDirection OpcUa_BrowseDirection
Definition: sopc_builtintypes.h:234
OpcUa_CreateMonitoredItemsRequest * SOPC_CreateMonitoredItemsRequest_CreateDefault(uint32_t subscriptionId, size_t nbMonitoredItems, const SOPC_NodeId *nodeIdsToMonitor, OpcUa_TimestampsToReturn ts)
Creates a CreateMonitoredItems request for the given node ids with default parameters values:
enum _OpcUa_TimestampsToReturn OpcUa_TimestampsToReturn
Definition: sopc_types.h:5007
Definition: sopc_types.h:3433
SOPC_ReturnStatus SOPC_TranslateBrowsePathRequest_SetPath(OpcUa_TranslateBrowsePathsToNodeIdsRequest *tbpRequest, size_t index, SOPC_NodeId *startingNodeId, size_t nbPathElements, OpcUa_RelativePathElement *pathElements)
Sets the browse path to translate at given index in translate browse paths request.
SOPC_ReturnStatus SOPC_BrowseRequest_SetBrowseDescriptionFromStrings(OpcUa_BrowseRequest *browseRequest, size_t index, const char *nodeId, OpcUa_BrowseDirection browseDirection, const char *referenceTypeId, bool includeSubtypes, OpcUa_NodeClass nodeClassMask, OpcUa_BrowseResultMask resultMask)
Sets the node to browse at given index in browse request (using C strings for node id and reference t...
Definition: sopc_types.h:5818
Definition: sopc_types.h:5659
SOPC_ReturnStatus SOPC_WriteRequest_SetWriteValueFromStrings(OpcUa_WriteRequest *writeRequest, size_t index, const char *nodeId, SOPC_AttributeId attribute, const char *indexRange, const SOPC_DataValue *value)
Sets the value to write at given index in write request (using C strings for node id and index range)
enum _OpcUa_MonitoringMode OpcUa_MonitoringMode
OpcUa_CreateMonitoredItemsRequest * SOPC_CreateMonitoredItemsRequest_Create(uint32_t subscriptionId, size_t nbMonitoredItems, OpcUa_TimestampsToReturn ts)
Creates a CreateMonitoredItems request.
Definition: sopc_types.h:5345
Definition: sopc_types.h:2556
SOPC_ReturnStatus SOPC_RelativePathElements_SetPathElement(OpcUa_RelativePathElement *pathElementsArray, size_t index, const SOPC_NodeId *referenceTypeId, bool isInverse, bool includeSubtypes, uint16_t targetNsIndex, const char *targetName)
Sets the path element at given index in relative path element array.
ExpandedNodeId allows the namespace to be specified explicitly as a string or with an index in the Se...
Definition: sopc_builtintypes.h:207
SOPC_ReturnStatus SOPC_GetEndpointsRequest_SetProfileURIs(OpcUa_GetEndpointsRequest *getEndpointsReq, size_t nbProfiles, char *const *profileURIs)
Requests profile URIs for the endpoints to be returned by the get endpoints service (Optional) Endpoi...
SOPC_ExtensionObject * SOPC_MonitoredItem_EventFilter(OpcUa_EventFilter *eventFilterObj)
Packages a built event filter into an extension object to be provided as filter to SOPC_CreateMonitor...
SOPC_ReturnStatus SOPC_ReadRequest_SetReadValueDataEncoding(OpcUa_ReadRequest *readRequest, size_t index, const SOPC_QualifiedName *dataEncoding)
Sets the data encoding of the value to read.
OpcUa_CreateMonitoredItemsRequest * SOPC_CreateMonitoredItemsRequest_CreateDefaultFromStrings(uint32_t subscriptionId, size_t nbMonitoredItems, char *const *nodeIdsToMonitor, OpcUa_TimestampsToReturn ts)
Creates a CreateMonitoredItems request for the given node ids C strings with default parameters value...
enum _OpcUa_BrowseResultMask OpcUa_BrowseResultMask
OpcUa_TranslateBrowsePathsToNodeIdsRequest * SOPC_TranslateBrowsePathsRequest_Create(size_t nbTranslateBrowsePaths)
Creates a translate browse paths request.
OpcUa_CallRequest * SOPC_CallRequest_Create(size_t nbMethodsToCalls)
Creates a Call request for the given number of method calls.
enum _OpcUa_NodeClass OpcUa_NodeClass
SOPC_ReturnStatus SOPC_ReadRequest_SetReadValue(OpcUa_ReadRequest *readRequest, size_t index, const SOPC_NodeId *nodeId, SOPC_AttributeId attribute, const SOPC_String *indexRange)
Sets the value to read at given index in read request.
OpcUa_CreateSubscriptionRequest * SOPC_CreateSubscriptionRequest_CreateDefault(void)
Creates a CreateSubscription request with default parameters values Default parameters are the follow...
This structure provides string encapsulation.
Definition: sopc_builtintypes.h:148
OpcUa_AddNodesRequest * SOPC_AddNodesRequest_Create(size_t nbAddNodes)
Creates an add nodes request.
Definition: sopc_types.h:3853
SOPC_ReturnStatus SOPC_BrowseRequest_SetBrowseDescription(OpcUa_BrowseRequest *browseRequest, size_t index, const SOPC_NodeId *nodeId, OpcUa_BrowseDirection browseDirection, const SOPC_NodeId *referenceTypeId, bool includeSubtypes, OpcUa_NodeClass nodeClassMask, OpcUa_BrowseResultMask resultMask)
Sets the node to browse at given index in browse request.
Definition: sopc_types.h:794
SOPC_AttributeId
Enumerated for all possible OPC UA attribute ids.
Definition: sopc_builtintypes.h:71
SOPC_ReturnStatus SOPC_ModifyMonitoredItemsRequest_SetMonitoredItemParams(OpcUa_ModifyMonitoredItemsRequest *modifyMIrequest, size_t index, uint32_t monitoredItemId, uint32_t clientHandle, double samplingInterval, SOPC_ExtensionObject *optFilter, uint32_t queueSize, SOPC_Boolean discardOldest)
Sets the monitored item monitoring parameters to modify. See part 4 ยง7.16 for detailed MonitoringPara...
OpcUa_CreateSubscriptionRequest * SOPC_CreateSubscriptionRequest_Create(double reqPublishingInterval, uint32_t reqLifetimeCount, uint32_t reqMaxKeepAliveCount, uint32_t maxNotifPerPublish, SOPC_Boolean publishingEnabled, SOPC_Byte priority)
Creates a CreateSubscription request with given parameters values.
SOPC_ReturnStatus SOPC_CreateMonitoredItemsRequest_SetMonitoredItemId(OpcUa_CreateMonitoredItemsRequest *createMIrequest, size_t index, const SOPC_NodeId *nodeId, SOPC_AttributeId attribute, const SOPC_String *indexRange)
Sets the monitored item identification parameters. It should be completed by a call to SOPC_CreateMon...
OpcUa_ReadRequest * SOPC_ReadRequest_Create(size_t nbReadValues, OpcUa_TimestampsToReturn tsToReturn)
Creates a read request.
OpcUa_EventFilter * SOPC_MonitoredItem_CreateEventFilter(size_t noOfSelectClauses, size_t noOfWhereClauseElt)
Creates and allocates a EventFilter filter parameter.
uint8_t SOPC_Byte
Definition: sopc_builtintypes.h:138
SOPC_ReturnStatus SOPC_EventFilter_SetGenericWhereClause(OpcUa_EventFilter *eventFilter, size_t whereClauseEltIdx, OpcUa_ContentFilterElement **filterElt)
Sets a generic content filter element for the given where clause element index.
SOPC_ReturnStatus SOPC_CallRequest_SetMethodToCallFromStrings(OpcUa_CallRequest *callRequest, size_t index, const char *objectId, const char *methodId, int32_t nbOfInputArguments, const SOPC_Variant *inputArguments)
Sets the method call parameters for the given index in the the call request.
SOPC_ExtensionObject * SOPC_MonitoredItem_DataChangeFilter(OpcUa_DataChangeTrigger trigger, OpcUa_DeadbandType deadbandType, double deadbandValue)
Creates and allocates a DataChangeFilter filter parameter to be provided to SOPC_CreateMonitoredItems...
This structure provides variant encapsulation.
Definition: sopc_builtintypes.h:374
Definition: sopc_types.h:4016
OpcUa_RegisterServer2Request * SOPC_RegisterServer2Request_CreateFromServerConfiguration(void)
Creates a complete RegisterServer2 request from the current server configuration. It shall be used to...
OpcUa_WriteRequest * SOPC_WriteRequest_Create(size_t nbWriteValues)
Creates a write request.
enum _OpcUa_DataChangeTrigger OpcUa_DataChangeTrigger
SOPC_ReturnStatus SOPC_BrowseNextRequest_SetContinuationPoint(OpcUa_BrowseNextRequest *browseNextRequest, size_t index, const SOPC_ByteString *continuationPoint)
Sets the continuation point to browse at given index in browse next request.
SOPC_ReturnStatus SOPC_ReadRequest_SetMaxAge(OpcUa_ReadRequest *readRequest, double maxAge)
Indicates to the server of maximum age of the data it should return.
OpcUa_BrowseNextRequest * SOPC_BrowseNextRequest_Create(bool releaseContinuationPoints, size_t nbContinuationPoints)
Creates a browse next request.
SOPC_ReturnStatus SOPC_GetEndpointsRequest_SetPreferredLocales(OpcUa_GetEndpointsRequest *getEndpointsReq, size_t nbLocales, char *const *localeIds)
Requests preferred locales for the endpoints to be returned by the get endpoints service (Optional) P...
Definition: sopc_types.h:4552
SOPC_Byte SOPC_Boolean
Definition: sopc_builtintypes.h:140
Definition: sopc_types.h:5562
OpcUa_RelativePathElement * SOPC_RelativePathElements_Create(size_t nbPathElements)
Creates an array of relative path element to be used in translate browse path.
Each attribute in OPC UA has a DataValue caracterized by the following structure.
Definition: sopc_builtintypes.h:385
SOPC_ReturnStatus SOPC_DeleteMonitoredItemsRequest_SetMonitoredItemId(OpcUa_DeleteMonitoredItemsRequest *deleteMIrequest, size_t index, uint32_t monitoredItemId)
Sets the monitored item identifier to delete.
OpcUa_ModifyMonitoredItemsRequest * SOPC_ModifyMonitoredItemsRequest_Create(uint32_t subscriptionId, size_t nbMonitoredItems, OpcUa_TimestampsToReturn ts)
Creates a ModifyMonitoredItems request.
SOPC_ReturnStatus SOPC_WriteRequest_SetWriteValue(OpcUa_WriteRequest *writeRequest, size_t index, const SOPC_NodeId *nodeId, SOPC_AttributeId attribute, const SOPC_String *indexRange, const SOPC_DataValue *value)
Sets the value to write at given index in write request.
Definition: sopc_builtintypes.h:228
SOPC_ReturnStatus SOPC_CreateMonitoredItemsRequest_SetMonitoredItemIdFromStrings(OpcUa_CreateMonitoredItemsRequest *createMIrequest, size_t index, const char *nodeId, SOPC_AttributeId attribute, const char *indexRange)
Sets the monitored item identification parameters using C string parameters. It shall be completed by...
SOPC_ReturnStatus SOPC_CallRequest_SetMethodToCall(OpcUa_CallRequest *callRequest, size_t index, const SOPC_NodeId *objectId, const SOPC_NodeId *methodId, int32_t nbOfInputArguments, const SOPC_Variant *inputArguments)
Sets the method call parameters for the given index in the the call request.
SOPC_ReturnStatus SOPC_EventFilter_SetSelectClause(OpcUa_EventFilter *eventFilter, size_t selectClauseIdx, const SOPC_NodeId *typeId, size_t noOfBrowsePath, const SOPC_QualifiedName *browsePaths, SOPC_AttributeId attributeId, const SOPC_String *indexRange)
Sets select clause parameters for given select clause index.
Definition: sopc_types.h:2409
enum _OpcUa_DeadbandType OpcUa_DeadbandType
Definition: sopc_types.h:3802
OpcUa_BrowseRequest * SOPC_BrowseRequest_Create(size_t nbNodesToBrowse, size_t maxReferencesPerNode, const OpcUa_ViewDescription *optView)
Creates a browse request.
SOPC_ReturnStatus SOPC_EventFilter_SetSelectClauseFromStringPath(OpcUa_EventFilter *eventFilter, size_t selectClauseIdx, const char *typeId, char qnPathSep, const char *strQnPath, SOPC_AttributeId attributeId, const char *indexRange)
Sets select clause parameters for given select clause index.
SOPC_ReturnStatus SOPC_TranslateBrowsePathRequest_SetPathFromString(OpcUa_TranslateBrowsePathsToNodeIdsRequest *tbpRequest, size_t index, const char *startingNodeId, size_t nbPathElements, OpcUa_RelativePathElement *pathElements)
Sets the browse path to translate at given index in translate browse paths request (using C strings f...
SOPC_ReturnStatus SOPC_ReadRequest_SetReadValueFromStrings(OpcUa_ReadRequest *readRequest, size_t index, const char *nodeId, SOPC_AttributeId attribute, const char *indexRange)
Sets the value to read at given index in read request (using C strings for node id and index range)
SOPC_ReturnStatus SOPC_EventFilter_SetOfTypeWhereClause(OpcUa_EventFilter *eventFilter, size_t whereClauseEltIdx, const SOPC_NodeId *typeNodeId)
Sets an OfType operator where clause element with the given type id.
SOPC_ReturnStatus
Definition: libs2opc_client.h:64