Data Types¶
The OPC UA protocol defines 25 builtin data types and three ways of combining them into higher-order types: arrays, structures and unions. In open62541, only the builtin data types are defined manually. All other data types are generated from standard XML definitions. Their exact definitions can be looked up at https://opcfoundation.org/UA/schemas/Opc.Ua.Types.bsd.
For users that are new to open62541, take a look at the tutorial for working with data types before diving into the implementation details.
Builtin Types¶
Boolean¶
A two-state logical value (true or false).
typedef bool UA_Boolean;
#define UA_TRUE true UA_INTERNAL_DEPRECATED
#define UA_FALSE false UA_INTERNAL_DEPRECATED
SByte¶
An integer value between -128 and 127.
typedef int8_t UA_SByte;
#define UA_SBYTE_MIN (-128)
#define UA_SBYTE_MAX 127
Byte¶
An integer value between 0 and 255.
typedef uint8_t UA_Byte;
#define UA_BYTE_MIN 0
#define UA_BYTE_MAX 255
Int16¶
An integer value between -32 768 and 32 767.
typedef int16_t UA_Int16;
#define UA_INT16_MIN (-32768)
#define UA_INT16_MAX 32767
UInt16¶
An integer value between 0 and 65 535.
typedef uint16_t UA_UInt16;
#define UA_UINT16_MIN 0
#define UA_UINT16_MAX 65535
Int32¶
An integer value between -2 147 483 648 and 2 147 483 647.
typedef int32_t UA_Int32;
#define UA_INT32_MIN (-2147483648)
#define UA_INT32_MAX 2147483647
UInt32¶
An integer value between 0 and 4 294 967 295.
typedef uint32_t UA_UInt32;
#define UA_UINT32_MIN 0
#define UA_UINT32_MAX 4294967295
Int64¶
An integer value between -9 223 372 036 854 775 808 and 9 223 372 036 854 775 807.
typedef int64_t UA_Int64;
#define UA_INT64_MAX (int64_t)9223372036854775807LL
#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
UInt64¶
An integer value between 0 and 18 446 744 073 709 551 615.
typedef uint64_t UA_UInt64;
#define UA_UINT64_MIN (uint64_t)0
#define UA_UINT64_MAX (uint64_t)18446744073709551615ULL
StatusCode¶
A numeric identifier for an error or condition that is associated with a value or an operation. See the section StatusCodes for the meaning of a specific code.
Each StatusCode has one of three “severity” bit-flags: Good, Uncertain, Bad. An additional reason is indicated by the SubCode bitfield.
- A StatusCode with severity Good means that the value is of good quality.
- A StatusCode with severity Uncertain means that the quality of the value is uncertain for reasons indicated by the SubCode.
- A StatusCode with severity Bad means that the value is not usable for reasons indicated by the SubCode.
typedef uint32_t UA_StatusCode;
/* Returns the human-readable name of the StatusCode. If no matching StatusCode
* is found, a default string for "Unknown" is returned. This feature might be
* disabled to create a smaller binary with the
* UA_ENABLE_STATUSCODE_DESCRIPTIONS build-flag. Then the function returns an
* empty string for every StatusCode. */
const char *
UA_StatusCode_name(UA_StatusCode code);
/* Extracts the severity from a StatusCode. See Part 4, Section 7.34 for
* details. */
static UA_INLINE UA_Boolean
UA_StatusCode_isBad(UA_StatusCode code) {
return ((code >> 30) >= 0x02);
}
static UA_INLINE UA_Boolean
UA_StatusCode_isUncertain(UA_StatusCode code) {
return ((code >> 30) == 0x01);
}
static UA_INLINE UA_Boolean
UA_StatusCode_isGood(UA_StatusCode code) {
return ((code >> 30) == 0x00);
}
String¶
A sequence of Unicode characters. Strings are just an array of UA_Byte.
typedef struct {
size_t length; /* The length of the string */
UA_Byte *data; /* The content (not null-terminated) */
} UA_String;
/* Copies the content on the heap. Returns a null-string when alloc fails */
UA_String
UA_String_fromChars(const char *src);
UA_Boolean
UA_String_equal(const UA_String *s1, const UA_String *s2);
extern const UA_String UA_STRING_NULL;
UA_STRING
returns a string pointing to the original char-array.
UA_STRING_ALLOC
is shorthand for UA_String_fromChars
and makes a copy
of the char-array.
static UA_INLINE UA_String
UA_STRING(char *chars) {
UA_String s; s.length = 0; s.data = NULL;
if(!chars)
return s;
s.length = strlen(chars); s.data = (UA_Byte*)chars; return s;
}
#define UA_STRING_ALLOC(CHARS) UA_String_fromChars(CHARS)
/* Define strings at compile time (in ROM) */
#define UA_STRING_STATIC(CHARS) {sizeof(CHARS)-1, (UA_Byte*)CHARS}
DateTime¶
An instance in time. A DateTime value is encoded as a 64-bit signed integer which represents the number of 100 nanosecond intervals since January 1, 1601 (UTC).
The methods providing an interface to the system clock are architecture- specific. Usually, they provide a UTC clock that includes leap seconds. The OPC UA standard allows the use of International Atomic Time (TAI) for the DateTime instead. But this is still unusual and not implemented for most SDKs. Currently (2019), UTC and TAI are 37 seconds apart due to leap seconds.
typedef int64_t UA_DateTime;
/* Multiples to convert durations to DateTime */
#define UA_DATETIME_USEC 10LL
#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
/* The current time in UTC time */
UA_DateTime UA_DateTime_now(void);
/* Offset between local time and UTC time */
UA_Int64 UA_DateTime_localTimeUtcOffset(void);
/* CPU clock invariant to system time changes. Use only to measure durations,
* not absolute time. */
UA_DateTime UA_DateTime_nowMonotonic(void);
/* Represents a Datetime as a structure */
typedef struct UA_DateTimeStruct {
UA_UInt16 nanoSec;
UA_UInt16 microSec;
UA_UInt16 milliSec;
UA_UInt16 sec;
UA_UInt16 min;
UA_UInt16 hour;
UA_UInt16 day; /* From 1 to 31 */
UA_UInt16 month; /* From 1 to 12 */
UA_Int16 year; /* Can be negative (BC) */
} UA_DateTimeStruct;
UA_DateTimeStruct UA_DateTime_toStruct(UA_DateTime t);
UA_DateTime UA_DateTime_fromStruct(UA_DateTimeStruct ts);
/* The C99 standard (7.23.1) says: "The range and precision of times
* representable in clock_t and time_t are implementation-defined." On most
* systems, time_t is a 4 or 8 byte integer counting seconds since the UTC Unix
* epoch. The following methods are used for conversion. */
/* Datetime of 1 Jan 1970 00:00 */
#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
static UA_INLINE UA_Int64
UA_DateTime_toUnixTime(UA_DateTime date) {
return (date - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC;
}
static UA_INLINE UA_DateTime
UA_DateTime_fromUnixTime(UA_Int64 unixDate) {
return (unixDate * UA_DATETIME_SEC) + UA_DATETIME_UNIX_EPOCH;
}
Guid¶
A 16 byte value that can be used as a globally unique identifier.
typedef struct {
UA_UInt32 data1;
UA_UInt16 data2;
UA_UInt16 data3;
UA_Byte data4[8];
} UA_Guid;
extern const UA_Guid UA_GUID_NULL;
UA_Boolean UA_Guid_equal(const UA_Guid *g1, const UA_Guid *g2);
#ifdef UA_ENABLE_PARSING
/* Parse the Guid format defined in Part 6, 5.1.3.
* Format: C496578A-0DFE-4B8F-870A-745238C6AEAE
* | | | | | |
* 0 8 13 18 23 36 */
UA_StatusCode
UA_Guid_parse(UA_Guid *guid, const UA_String str);
static UA_INLINE UA_Guid
UA_GUID(const char *chars) {
UA_Guid guid;
UA_Guid_parse(&guid, UA_STRING((char*)(uintptr_t)chars));
return guid;
}
#endif
ByteString¶
A sequence of octets.
typedef UA_String UA_ByteString;
extern const UA_ByteString UA_BYTESTRING_NULL;
/* Allocates memory of size length for the bytestring.
* The content is not set to zero. */
UA_StatusCode
UA_ByteString_allocBuffer(UA_ByteString *bs, size_t length);
/* Converts a ByteString to the corresponding
* base64 representation */
UA_StatusCode
UA_ByteString_toBase64(const UA_ByteString *bs,
UA_String *output);
/* Parse a ByteString from a base64 representation */
UA_StatusCode
UA_ByteString_fromBase64(UA_ByteString *bs,
const UA_String *input);
static UA_INLINE UA_ByteString
UA_BYTESTRING(char *chars) {
UA_ByteString bs; bs.length = 0; bs.data = NULL;
if(!chars)
return bs;
bs.length = strlen(chars); bs.data = (UA_Byte*)chars; return bs;
}
static UA_INLINE UA_ByteString
UA_BYTESTRING_ALLOC(const char *chars) {
UA_String str = UA_String_fromChars(chars); UA_ByteString bstr;
bstr.length = str.length; bstr.data = str.data; return bstr;
}
static UA_INLINE UA_Boolean
UA_ByteString_equal(const UA_ByteString *string1,
const UA_ByteString *string2) {
return UA_String_equal((const UA_String*)string1,
(const UA_String*)string2);
}
/* Returns a non-cryptographic hash of a bytestring */
UA_UInt32
UA_ByteString_hash(UA_UInt32 initialHashValue,
const UA_Byte *data, size_t size);
NodeId¶
An identifier for a node in the address space of an OPC UA Server.
enum UA_NodeIdType {
UA_NODEIDTYPE_NUMERIC = 0, /* In the binary encoding, this can also
* become 1 or 2 (two-byte and four-byte
* encoding of small numeric nodeids) */
UA_NODEIDTYPE_STRING = 3,
UA_NODEIDTYPE_GUID = 4,
UA_NODEIDTYPE_BYTESTRING = 5
};
typedef struct {
UA_UInt16 namespaceIndex;
enum UA_NodeIdType identifierType;
union {
UA_UInt32 numeric;
UA_String string;
UA_Guid guid;
UA_ByteString byteString;
} identifier;
} UA_NodeId;
extern const UA_NodeId UA_NODEID_NULL;
UA_Boolean UA_NodeId_isNull(const UA_NodeId *p);
/* Print the NodeId in the human-readable format defined in Part 6,
* 5.3.1.10.
*
* Examples:
* UA_NODEID("i=13")
* UA_NODEID("ns=10;i=1")
* UA_NODEID("ns=10;s=Hello:World")
* UA_NODEID("g=09087e75-8e5e-499b-954f-f2a9603db28a")
* UA_NODEID("ns=1;b=b3BlbjYyNTQxIQ==") // base64
* */
UA_StatusCode
UA_NodeId_print(const UA_NodeId *id, UA_String *output);
#ifdef UA_ENABLE_PARSING
/* Parse the human-readable NodeId format. Attention! String and
* ByteString NodeIds have their identifier malloc'ed and need to be
* cleaned up. */
UA_StatusCode
UA_NodeId_parse(UA_NodeId *id, const UA_String str);
static UA_INLINE UA_NodeId
UA_NODEID(const char *chars) {
UA_NodeId id;
UA_NodeId_parse(&id, UA_STRING((char*)(uintptr_t)chars));
return id;
}
#endif
The following functions are shorthand for creating NodeIds.
static UA_INLINE UA_NodeId
UA_NODEID_NUMERIC(UA_UInt16 nsIndex, UA_UInt32 identifier) {
UA_NodeId id; id.namespaceIndex = nsIndex;
id.identifierType = UA_NODEIDTYPE_NUMERIC;
id.identifier.numeric = identifier; return id;
}
static UA_INLINE UA_NodeId
UA_NODEID_STRING(UA_UInt16 nsIndex, char *chars) {
UA_NodeId id; id.namespaceIndex = nsIndex;
id.identifierType = UA_NODEIDTYPE_STRING;
id.identifier.string = UA_STRING(chars); return id;
}
static UA_INLINE UA_NodeId
UA_NODEID_STRING_ALLOC(UA_UInt16 nsIndex, const char *chars) {
UA_NodeId id; id.namespaceIndex = nsIndex;
id.identifierType = UA_NODEIDTYPE_STRING;
id.identifier.string = UA_STRING_ALLOC(chars); return id;
}
static UA_INLINE UA_NodeId
UA_NODEID_GUID(UA_UInt16 nsIndex, UA_Guid guid) {
UA_NodeId id; id.namespaceIndex = nsIndex;
id.identifierType = UA_NODEIDTYPE_GUID;
id.identifier.guid = guid; return id;
}
static UA_INLINE UA_NodeId
UA_NODEID_BYTESTRING(UA_UInt16 nsIndex, char *chars) {
UA_NodeId id; id.namespaceIndex = nsIndex;
id.identifierType = UA_NODEIDTYPE_BYTESTRING;
id.identifier.byteString = UA_BYTESTRING(chars); return id;
}
static UA_INLINE UA_NodeId
UA_NODEID_BYTESTRING_ALLOC(UA_UInt16 nsIndex, const char *chars) {
UA_NodeId id; id.namespaceIndex = nsIndex;
id.identifierType = UA_NODEIDTYPE_BYTESTRING;
id.identifier.byteString = UA_BYTESTRING_ALLOC(chars); return id;
}
/* Total ordering of NodeId */
UA_Order
UA_NodeId_order(const UA_NodeId *n1, const UA_NodeId *n2);
/* Check for equality */
static UA_INLINE UA_Boolean
UA_NodeId_equal(const UA_NodeId *n1, const UA_NodeId *n2) {
return (UA_NodeId_order(n1, n2) == UA_ORDER_EQ);
}
/* Returns a non-cryptographic hash for NodeId */
UA_UInt32 UA_NodeId_hash(const UA_NodeId *n);
ExpandedNodeId¶
A NodeId that allows the namespace URI to be specified instead of an index.
typedef struct {
UA_NodeId nodeId;
UA_String namespaceUri;
UA_UInt32 serverIndex;
} UA_ExpandedNodeId;
extern const UA_ExpandedNodeId UA_EXPANDEDNODEID_NULL;
UA_StatusCode
UA_ExpandedNodeId_print(const UA_ExpandedNodeId *id, UA_String *output);
#ifdef UA_ENABLE_PARSING
/* Parse the ExpandedNodeId format defined in Part 6, 5.3.1.11:
*
* svr=<serverindex>;ns=<namespaceindex>;<type>=<value>
* or
* svr=<serverindex>;nsu=<uri>;<type>=<value>
*
* The definitions for svr, ns and nsu can be omitted and will be set to zero /
* the empty string.*/
UA_StatusCode
UA_ExpandedNodeId_parse(UA_ExpandedNodeId *id, const UA_String str);
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID(const char *chars) {
UA_ExpandedNodeId id;
UA_ExpandedNodeId_parse(&id, UA_STRING((char*)(uintptr_t)chars));
return id;
}
#endif
The following functions are shorthand for creating ExpandedNodeIds.
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID_NUMERIC(UA_UInt16 nsIndex, UA_UInt32 identifier) {
UA_ExpandedNodeId id; id.nodeId = UA_NODEID_NUMERIC(nsIndex, identifier);
id.serverIndex = 0; id.namespaceUri = UA_STRING_NULL; return id;
}
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID_STRING(UA_UInt16 nsIndex, char *chars) {
UA_ExpandedNodeId id; id.nodeId = UA_NODEID_STRING(nsIndex, chars);
id.serverIndex = 0; id.namespaceUri = UA_STRING_NULL; return id;
}
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID_STRING_ALLOC(UA_UInt16 nsIndex, const char *chars) {
UA_ExpandedNodeId id; id.nodeId = UA_NODEID_STRING_ALLOC(nsIndex, chars);
id.serverIndex = 0; id.namespaceUri = UA_STRING_NULL; return id;
}
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID_STRING_GUID(UA_UInt16 nsIndex, UA_Guid guid) {
UA_ExpandedNodeId id; id.nodeId = UA_NODEID_GUID(nsIndex, guid);
id.serverIndex = 0; id.namespaceUri = UA_STRING_NULL; return id;
}
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID_BYTESTRING(UA_UInt16 nsIndex, char *chars) {
UA_ExpandedNodeId id; id.nodeId = UA_NODEID_BYTESTRING(nsIndex, chars);
id.serverIndex = 0; id.namespaceUri = UA_STRING_NULL; return id;
}
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID_BYTESTRING_ALLOC(UA_UInt16 nsIndex, const char *chars) {
UA_ExpandedNodeId id; id.nodeId = UA_NODEID_BYTESTRING_ALLOC(nsIndex, chars);
id.serverIndex = 0; id.namespaceUri = UA_STRING_NULL; return id;
}
static UA_INLINE UA_ExpandedNodeId
UA_EXPANDEDNODEID_NODEID(UA_NodeId nodeId) {
UA_ExpandedNodeId id = {0}; id.nodeId = nodeId; return id;
}
/* Does the ExpandedNodeId point to a local node? That is, are namespaceUri and
* serverIndex empty? */
UA_Boolean
UA_ExpandedNodeId_isLocal(const UA_ExpandedNodeId *n);
/* Total ordering of ExpandedNodeId */
UA_Order
UA_ExpandedNodeId_order(const UA_ExpandedNodeId *n1,
const UA_ExpandedNodeId *n2);
/* Check for equality */
static UA_INLINE UA_Boolean
UA_ExpandedNodeId_equal(const UA_ExpandedNodeId *n1,
const UA_ExpandedNodeId *n2) {
return (UA_ExpandedNodeId_order(n1, n2) == UA_ORDER_EQ);
}
/* Returns a non-cryptographic hash for ExpandedNodeId. The hash of an
* ExpandedNodeId is identical to the hash of the embedded (simple) NodeId if
* the ServerIndex is zero and no NamespaceUri is set. */
UA_UInt32
UA_ExpandedNodeId_hash(const UA_ExpandedNodeId *n);
QualifiedName¶
A name qualified by a namespace.
typedef struct {
UA_UInt16 namespaceIndex;
UA_String name;
} UA_QualifiedName;
static UA_INLINE UA_Boolean
UA_QualifiedName_isNull(const UA_QualifiedName *q) {
return (q->namespaceIndex == 0 && q->name.length == 0);
}
/* Returns a non-cryptographic hash for QualifiedName */
UA_UInt32
UA_QualifiedName_hash(const UA_QualifiedName *q);
static UA_INLINE UA_QualifiedName
UA_QUALIFIEDNAME(UA_UInt16 nsIndex, char *chars) {
UA_QualifiedName qn; qn.namespaceIndex = nsIndex;
qn.name = UA_STRING(chars); return qn;
}
static UA_INLINE UA_QualifiedName
UA_QUALIFIEDNAME_ALLOC(UA_UInt16 nsIndex, const char *chars) {
UA_QualifiedName qn; qn.namespaceIndex = nsIndex;
qn.name = UA_STRING_ALLOC(chars); return qn;
}
UA_Boolean
UA_QualifiedName_equal(const UA_QualifiedName *qn1,
const UA_QualifiedName *qn2);
LocalizedText¶
Human readable text with an optional locale identifier.
typedef struct {
UA_String locale;
UA_String text;
} UA_LocalizedText;
static UA_INLINE UA_LocalizedText
UA_LOCALIZEDTEXT(char *locale, char *text) {
UA_LocalizedText lt; lt.locale = UA_STRING(locale);
lt.text = UA_STRING(text); return lt;
}
static UA_INLINE UA_LocalizedText
UA_LOCALIZEDTEXT_ALLOC(const char *locale, const char *text) {
UA_LocalizedText lt; lt.locale = UA_STRING_ALLOC(locale);
lt.text = UA_STRING_ALLOC(text); return lt;
}
NumericRange¶
NumericRanges are used to indicate subsets of a (multidimensional) array. They no official data type in the OPC UA standard and are transmitted only with a string encoding, such as “1:2,0:3,5”. The colon separates min/max index and the comma separates dimensions. A single value indicates a range with a single element (min==max).
typedef struct {
UA_UInt32 min;
UA_UInt32 max;
} UA_NumericRangeDimension;
typedef struct {
size_t dimensionsSize;
UA_NumericRangeDimension *dimensions;
} UA_NumericRange;
UA_StatusCode
UA_NumericRange_parse(UA_NumericRange *range, const UA_String str);
static UA_INLINE UA_NumericRange
UA_NUMERICRANGE(const char *s) {
UA_NumericRange nr; nr.dimensionsSize = 0; nr.dimensions = NULL;
UA_NumericRange_parse(&nr, UA_STRING((char*)(uintptr_t)s)); return nr;
}
Variant¶
Variants may contain values of any type together with a description of the content. See the section on Generic Type Handling on how types are described. The standard mandates that variants contain built-in data types only. If the value is not of a builtin type, it is wrapped into an ExtensionObject. open62541 hides this wrapping transparently in the encoding layer. If the data type is unknown to the receiver, the variant contains the original ExtensionObject in binary or XML encoding.
Variants may contain a scalar value or an array. For details on the handling
of arrays, see the section on Array handling. Array variants can have
an additional dimensionality (matrix, 3-tensor, …) defined in an array of
dimension lengths. The actual values are kept in an array of dimensions one.
For users who work with higher-dimensions arrays directly, keep in mind that
dimensions of higher rank are serialized first (the highest rank dimension
has stride 1 and elements follow each other directly). Usually it is simplest
to interact with higher-dimensional arrays via UA_NumericRange
descriptions (see Array handling).
To differentiate between scalar / array variants, the following definition is
used. UA_Variant_isScalar
provides simplified access to these checks.
arrayLength == 0 && data == NULL
: undefined array of length -1arrayLength == 0 && data == UA_EMPTY_ARRAY_SENTINEL
: array of length 0arrayLength == 0 && data > UA_EMPTY_ARRAY_SENTINEL
: scalar valuearrayLength > 0
: array of the given length
Variants can also be empty. Then, the pointer to the type description is
NULL
.
/* Forward declaration. See the section on Generic Type Handling */
struct UA_DataType;
typedef struct UA_DataType UA_DataType;
#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
typedef enum {
UA_VARIANT_DATA, /* The data has the same lifecycle as the variant */
UA_VARIANT_DATA_NODELETE /* The data is "borrowed" by the variant and is
* not deleted when the variant is cleared up.
* The array dimensions also borrowed. */
} UA_VariantStorageType;
typedef struct {
const UA_DataType *type; /* The data type description */
UA_VariantStorageType storageType;
size_t arrayLength; /* The number of elements in the data array */
void *data; /* Points to the scalar or array data */
size_t arrayDimensionsSize; /* The number of dimensions */
UA_UInt32 *arrayDimensions; /* The length of each dimension */
} UA_Variant;
/* Returns true if the variant has no value defined (contains neither an array
* nor a scalar value).
*
* @param v The variant
* @return Is the variant empty */
static UA_INLINE UA_Boolean
UA_Variant_isEmpty(const UA_Variant *v) {
return v->type == NULL;
}
/* Returns true if the variant contains a scalar value. Note that empty variants
* contain an array of length -1 (undefined).
*
* @param v The variant
* @return Does the variant contain a scalar value */
static UA_INLINE UA_Boolean
UA_Variant_isScalar(const UA_Variant *v) {
return (v->arrayLength == 0 && v->data > UA_EMPTY_ARRAY_SENTINEL);
}
/* Returns true if the variant contains a scalar value of the given type.
*
* @param v The variant
* @param type The data type
* @return Does the variant contain a scalar value of the given type */
static UA_INLINE UA_Boolean
UA_Variant_hasScalarType(const UA_Variant *v, const UA_DataType *type) {
return UA_Variant_isScalar(v) && type == v->type;
}
/* Returns true if the variant contains an array of the given type.
*
* @param v The variant
* @param type The data type
* @return Does the variant contain an array of the given type */
static UA_INLINE UA_Boolean
UA_Variant_hasArrayType(const UA_Variant *v, const UA_DataType *type) {
return (!UA_Variant_isScalar(v)) && type == v->type;
}
/* Set the variant to a scalar value that already resides in memory. The value
* takes on the lifecycle of the variant and is deleted with it.
*
* @param v The variant
* @param p A pointer to the value data
* @param type The datatype of the value in question */
void
UA_Variant_setScalar(UA_Variant *v, void *p,
const UA_DataType *type);
/* Set the variant to a scalar value that is copied from an existing variable.
* @param v The variant
* @param p A pointer to the value data
* @param type The datatype of the value
* @return Indicates whether the operation succeeded or returns an error code */
UA_StatusCode
UA_Variant_setScalarCopy(UA_Variant *v, const void *p,
const UA_DataType *type);
/* Set the variant to an array that already resides in memory. The array takes
* on the lifecycle of the variant and is deleted with it.
*
* @param v The variant
* @param array A pointer to the array data
* @param arraySize The size of the array
* @param type The datatype of the array */
void
UA_Variant_setArray(UA_Variant *v, void *array,
size_t arraySize, const UA_DataType *type);
/* Set the variant to an array that is copied from an existing array.
*
* @param v The variant
* @param array A pointer to the array data
* @param arraySize The size of the array
* @param type The datatype of the array
* @return Indicates whether the operation succeeded or returns an error code */
UA_StatusCode
UA_Variant_setArrayCopy(UA_Variant *v, const void *array,
size_t arraySize, const UA_DataType *type);
/* Copy the variant, but use only a subset of the (multidimensional) array into
* a variant. Returns an error code if the variant is not an array or if the
* indicated range does not fit.
*
* @param src The source variant
* @param dst The target variant
* @param range The range of the copied data
* @return Returns UA_STATUSCODE_GOOD or an error code */
UA_StatusCode
UA_Variant_copyRange(const UA_Variant *src, UA_Variant *dst,
const UA_NumericRange range);
/* Insert a range of data into an existing variant. The data array cannot be
* reused afterwards if it contains types without a fixed size (e.g. strings)
* since the members are moved into the variant and take on its lifecycle.
*
* @param v The variant
* @param dataArray The data array. The type must match the variant
* @param dataArraySize The length of the data array. This is checked to match
* the range size.
* @param range The range of where the new data is inserted
* @return Returns UA_STATUSCODE_GOOD or an error code */
UA_StatusCode
UA_Variant_setRange(UA_Variant *v, void *array,
size_t arraySize, const UA_NumericRange range);
/* Deep-copy a range of data into an existing variant.
*
* @param v The variant
* @param dataArray The data array. The type must match the variant
* @param dataArraySize The length of the data array. This is checked to match
* the range size.
* @param range The range of where the new data is inserted
* @return Returns UA_STATUSCODE_GOOD or an error code */
UA_StatusCode
UA_Variant_setRangeCopy(UA_Variant *v, const void *array,
size_t arraySize, const UA_NumericRange range);
ExtensionObject¶
ExtensionObjects may contain scalars of any data type. Even those that are unknown to the receiver. See the section on Generic Type Handling on how types are described. If the received data type is unknown, the encoded string and target NodeId is stored instead of the decoded value.
typedef enum {
UA_EXTENSIONOBJECT_ENCODED_NOBODY = 0,
UA_EXTENSIONOBJECT_ENCODED_BYTESTRING = 1,
UA_EXTENSIONOBJECT_ENCODED_XML = 2,
UA_EXTENSIONOBJECT_DECODED = 3,
UA_EXTENSIONOBJECT_DECODED_NODELETE = 4 /* Don't delete the content
together with the
ExtensionObject */
} UA_ExtensionObjectEncoding;
typedef struct {
UA_ExtensionObjectEncoding encoding;
union {
struct {
UA_NodeId typeId; /* The nodeid of the datatype */
UA_ByteString body; /* The bytestring of the encoded data */
} encoded;
struct {
const UA_DataType *type;
void *data;
} decoded;
} content;
} UA_ExtensionObject;
/* Initialize the ExtensionObject and set the "decoded" value to the given
* pointer. The value will be deleted when the ExtensionObject is cleared. */
void
UA_ExtensionObject_setValue(UA_ExtensionObject *eo,
void *p,
const UA_DataType *type);
/* Initialize the ExtensionObject and set the "decoded" value to the given
* pointer. The value will *not* be deleted when the ExtensionObject is
* cleared. */
void
UA_ExtensionObject_setValueNoDelete(UA_ExtensionObject *eo,
void *p,
const UA_DataType *type);
/* Initialize the ExtensionObject and set the "decoded" value to a fresh copy of
* the given value pointer. The value will be deleted when the ExtensionObject
* is cleared. */
UA_StatusCode
UA_ExtensionObject_setValueCopy(UA_ExtensionObject *eo,
void *p,
const UA_DataType *type);
DataValue¶
A data value with an associated status code and timestamps.
typedef struct {
UA_Variant value;
UA_DateTime sourceTimestamp;
UA_DateTime serverTimestamp;
UA_UInt16 sourcePicoseconds;
UA_UInt16 serverPicoseconds;
UA_StatusCode status;
UA_Boolean hasValue : 1;
UA_Boolean hasStatus : 1;
UA_Boolean hasSourceTimestamp : 1;
UA_Boolean hasServerTimestamp : 1;
UA_Boolean hasSourcePicoseconds : 1;
UA_Boolean hasServerPicoseconds : 1;
} UA_DataValue;
DiagnosticInfo¶
A structure that contains detailed error and diagnostic information associated with a StatusCode.
typedef struct UA_DiagnosticInfo {
UA_Boolean hasSymbolicId : 1;
UA_Boolean hasNamespaceUri : 1;
UA_Boolean hasLocalizedText : 1;
UA_Boolean hasLocale : 1;
UA_Boolean hasAdditionalInfo : 1;
UA_Boolean hasInnerStatusCode : 1;
UA_Boolean hasInnerDiagnosticInfo : 1;
UA_Int32 symbolicId;
UA_Int32 namespaceUri;
UA_Int32 localizedText;
UA_Int32 locale;
UA_String additionalInfo;
UA_StatusCode innerStatusCode;
struct UA_DiagnosticInfo *innerDiagnosticInfo;
} UA_DiagnosticInfo;
Generic Type Handling¶
All information about a (builtin/structured) data type is stored in a
UA_DataType
. The array UA_TYPES
contains the description of all
standard-defined types. This type description is used for the following
generic operations that work on all types:
void T_init(T *ptr)
: Initialize the data type. This is synonymous with zeroing out the memory, i.e.memset(ptr, 0, sizeof(T))
.T* T_new()
: Allocate and return the memory for the data type. The value is already initialized.UA_StatusCode T_copy(const T *src, T *dst)
: Copy the content of the data type. ReturnsUA_STATUSCODE_GOOD
orUA_STATUSCODE_BADOUTOFMEMORY
.void T_clear(T *ptr)
: Delete the dynamically allocated content of the data type and perform aT_init
to reset the type.void T_delete(T *ptr)
: Delete the content of the data type and the memory for the data type itself.
Specializations, such as UA_Int32_new()
are derived from the generic
type operations as static inline functions.
typedef struct {
#ifdef UA_ENABLE_TYPEDESCRIPTION
const char *memberName; /* Human-readable member name */
#endif
const UA_DataType *memberType;/* The member data type description */
UA_Byte padding : 6; /* How much padding is there before this
member element? For arrays this is the
padding before the size_t length member.
(No padding between size_t and the
following ptr.) For unions, the padding
includes the size of the switchfield (the
offset from the start of the union
type). */
UA_Byte isArray : 1; /* The member is an array */
UA_Byte isOptional : 1; /* The member is an optional field */
} UA_DataTypeMember;
/* The DataType "kind" is an internal type classification. It is used to
* dispatch handling to the correct routines. */
#define UA_DATATYPEKINDS 31
typedef enum {
UA_DATATYPEKIND_BOOLEAN = 0,
UA_DATATYPEKIND_SBYTE = 1,
UA_DATATYPEKIND_BYTE = 2,
UA_DATATYPEKIND_INT16 = 3,
UA_DATATYPEKIND_UINT16 = 4,
UA_DATATYPEKIND_INT32 = 5,
UA_DATATYPEKIND_UINT32 = 6,
UA_DATATYPEKIND_INT64 = 7,
UA_DATATYPEKIND_UINT64 = 8,
UA_DATATYPEKIND_FLOAT = 9,
UA_DATATYPEKIND_DOUBLE = 10,
UA_DATATYPEKIND_STRING = 11,
UA_DATATYPEKIND_DATETIME = 12,
UA_DATATYPEKIND_GUID = 13,
UA_DATATYPEKIND_BYTESTRING = 14,
UA_DATATYPEKIND_XMLELEMENT = 15,
UA_DATATYPEKIND_NODEID = 16,
UA_DATATYPEKIND_EXPANDEDNODEID = 17,
UA_DATATYPEKIND_STATUSCODE = 18,
UA_DATATYPEKIND_QUALIFIEDNAME = 19,
UA_DATATYPEKIND_LOCALIZEDTEXT = 20,
UA_DATATYPEKIND_EXTENSIONOBJECT = 21,
UA_DATATYPEKIND_DATAVALUE = 22,
UA_DATATYPEKIND_VARIANT = 23,
UA_DATATYPEKIND_DIAGNOSTICINFO = 24,
UA_DATATYPEKIND_DECIMAL = 25,
UA_DATATYPEKIND_ENUM = 26,
UA_DATATYPEKIND_STRUCTURE = 27,
UA_DATATYPEKIND_OPTSTRUCT = 28, /* struct with optional fields */
UA_DATATYPEKIND_UNION = 29,
UA_DATATYPEKIND_BITFIELDCLUSTER = 30 /* bitfields + padding */
} UA_DataTypeKind;
struct UA_DataType {
#ifdef UA_ENABLE_TYPEDESCRIPTION
const char *typeName;
#endif
UA_NodeId typeId; /* The nodeid of the type */
UA_NodeId binaryEncodingId; /* NodeId of datatype when encoded as binary */
//UA_NodeId xmlEncodingId; /* NodeId of datatype when encoded as XML */
UA_UInt32 memSize : 16; /* Size of the struct in memory */
UA_UInt32 typeKind : 6; /* Dispatch index for the handling routines */
UA_UInt32 pointerFree : 1; /* The type (and its members) contains no
* pointers that need to be freed */
UA_UInt32 overlayable : 1; /* The type has the identical memory layout
* in memory and on the binary stream. */
UA_UInt32 membersSize : 8; /* How many members does the type have? */
UA_DataTypeMember *members;
};
/* Datatype arrays with custom type definitions can be added in a linked list to
* the client or server configuration. */
typedef struct UA_DataTypeArray {
const struct UA_DataTypeArray *next;
const size_t typesSize;
const UA_DataType *types;
} UA_DataTypeArray;
/* Returns the offset and type of a structure member. The return value is false
* if the member was not found.
*
* If the member is an array, the offset points to the (size_t) length field.
* (The array pointer comes after the length field without any padding.) */
#ifdef UA_ENABLE_TYPEDESCRIPTION
UA_Boolean
UA_DataType_getStructMember(const UA_DataType *type,
const char *memberName,
size_t *outOffset,
const UA_DataType **outMemberType,
UA_Boolean *outIsArray);
#endif
/* Test if the data type is a numeric builtin data type (via the typeKind field
* of UA_DataType). This includes integers and floating point numbers. Not
* included are Boolean, DateTime, StatusCode and Enums. */
UA_Boolean
UA_DataType_isNumeric(const UA_DataType *type);
/* Return the Data Type Precedence-Rank defined in Part 4.
* If there is no Precedence-Rank assigned with the type -1 is returned.*/
UA_Int16
UA_DataType_getPrecedence(const UA_DataType *type);
Builtin data types can be accessed as UA_TYPES[UA_TYPES_XXX], where XXX is the name of the data type. If only the NodeId of a type is known, use the following method to retrieve the data type description.
/* Returns the data type description for the type's identifier or NULL if no
* matching data type was found. */
const UA_DataType *
UA_findDataType(const UA_NodeId *typeId);
The following functions are used for generic handling of data types.
/* Allocates and initializes a variable of type dataType
*
* @param type The datatype description
* @return Returns the memory location of the variable or NULL if no
* memory could be allocated */
void * UA_new(const UA_DataType *type);
/* Initializes a variable to default values
*
* @param p The memory location of the variable
* @param type The datatype description */
static UA_INLINE void
UA_init(void *p, const UA_DataType *type) {
memset(p, 0, type->memSize);
}
/* Copies the content of two variables. If copying fails (e.g. because no memory
* was available for an array), then dst is emptied and initialized to prevent
* memory leaks.
*
* @param src The memory location of the source variable
* @param dst The memory location of the destination variable
* @param type The datatype description
* @return Indicates whether the operation succeeded or returns an error code */
UA_StatusCode
UA_copy(const void *src, void *dst, const UA_DataType *type);
/* Deletes the dynamically allocated content of a variable (e.g. resets all
* arrays to undefined arrays). Afterwards, the variable can be safely deleted
* without causing memory leaks. But the variable is not initialized and may
* contain old data that is not memory-relevant.
*
* @param p The memory location of the variable
* @param type The datatype description of the variable */
void UA_clear(void *p, const UA_DataType *type);
#define UA_deleteMembers(p, type) UA_clear(p, type)
/* Frees a variable and all of its content.
*
* @param p The memory location of the variable
* @param type The datatype description of the variable */
void UA_delete(void *p, const UA_DataType *type);
/* Pretty-print the value from the datatype.
*
* @param p The memory location of the variable
* @param type The datatype description of the variable
* @param output A string that is memory-allocated for the pretty-printed output
* @return Indicates whether the operation succeeded*/
#ifdef UA_ENABLE_TYPEDESCRIPTION
UA_StatusCode
UA_print(const void *p, const UA_DataType *type, UA_String *output);
#endif
/* Compare two variables and return their order. This can also be used to test
* for equality of two values.
*
* For numerical types (including StatusCodes and Enums), their natural order is
* used. NaN is the "smallest" value for floating point values. Different bit
* representations of NaN are considered identical.
*
* All other types have *some* absolute ordering so that a < b, b < c -> a < c.
*
* The ordering of arrays (also strings) is in "shortlex": A shorter array is
* always smaller than a longer array. Otherwise the first different element
* defines the order.
*
* When members of different types are permitted (in Variants and
* ExtensionObjects), the memory address in the "UA_DataType*" pointer
* determines which variable is smaller.
*
* @param p1 The memory location of the first value
* @param p2 The memory location of the first value
* @param type The datatype description of both values */
UA_Order
UA_order(const void *p1, const void *p2, const UA_DataType *type);
Encoding/Decoding¶
Encoding and decoding routines for the available formats. For all formats the _calcSize, _encode and _decode methods are provided.
/* Returns the number of bytes the value p takes in binary encoding. Returns
* zero if an error occurs. */
size_t
UA_calcSizeBinary(const void *p, const UA_DataType *type);
/* Encodes a data-structure in the binary format. If outBuf has a length of
* zero, a buffer of the required size is allocated. Otherwise, encoding into
* the existing outBuf is attempted (and may fail if the buffer is too
* small). */
UA_StatusCode
UA_encodeBinary(const void *p, const UA_DataType *type,
UA_ByteString *outBuf);
/* The structure with the decoding options may be extended in the future.
* Zero-out the entire structure initially to ensure code-compatibility when
* more fields are added in a later release. */
typedef struct {
const UA_DataTypeArray *customTypes; /* Begin of a linked list with custom
* datatype definitions */
} UA_DecodeBinaryOptions;
/* Decodes a data structure from the input buffer in the binary format. It is
* assumed that `p` points to valid memory (not necessarily zeroed out). The
* options can be NULL and will be disregarded in that case. */
UA_StatusCode
UA_decodeBinary(const UA_ByteString *inBuf,
void *p, const UA_DataType *type,
const UA_DecodeBinaryOptions *options);
#ifdef UA_ENABLE_JSON_ENCODING
typedef struct {
const UA_String *namespaces;
size_t namespacesSize;
const UA_String *serverUris;
size_t serverUrisSize;
UA_Boolean useReversible;
} UA_EncodeJsonOptions;
/* Returns the number of bytes the value src takes in json encoding. Returns
* zero if an error occurs. */
size_t
UA_calcSizeJson(const void *src, const UA_DataType *type,
const UA_EncodeJsonOptions *options);
/* Encodes the scalar value described by type to json encoding.
*
* @param src The value. Must not be NULL.
* @param type The value type. Must not be NULL.
* @param outBuf Pointer to ByteString containing the result if the encoding
* was successful
* @return Returns a statuscode whether encoding succeeded. */
UA_StatusCode
UA_encodeJson(const void *src, const UA_DataType *type, UA_ByteString *outBuf,
const UA_EncodeJsonOptions *options);
/* The structure with the decoding options may be extended in the future.
* Zero-out the entire structure initially to ensure code-compatibility when
* more fields are added in a later release. */
typedef struct {
const UA_String *namespaces;
size_t namespacesSize;
const UA_String *serverUris;
size_t serverUrisSize;
const UA_DataTypeArray *customTypes; /* Begin of a linked list with custom
* datatype definitions */
} UA_DecodeJsonOptions;
/* Decodes a scalar value described by type from json encoding.
*
* @param src The buffer with the json encoded value. Must not be NULL.
* @param dst The target value. Must not be NULL. The target is assumed to have
* size type->memSize. The value is reset to zero before decoding. If
* decoding fails, members are deleted and the value is reset (zeroed)
* again.
* @param type The value type. Must not be NULL.
* @param options The options struct for decoding, currently unused
* @return Returns a statuscode whether decoding succeeded. */
UA_StatusCode
UA_decodeJson(const UA_ByteString *src, void *dst, const UA_DataType *type,
const UA_DecodeJsonOptions *options);
#endif /* UA_ENABLE_JSON_ENCODING */
Array handling¶
In OPC UA, arrays can have a length of zero or more with the usual meaning. In addition, arrays can be undefined. Then, they don’t even have a length. In the binary encoding, this is indicated by an array of length -1.
In open62541 however, we use size_t
for array lengths. An undefined array
has length 0 and the data pointer is NULL
. An array of length 0 also has
length 0 but a data pointer UA_EMPTY_ARRAY_SENTINEL
.
/* Allocates and initializes an array of variables of a specific type
*
* @param size The requested array length
* @param type The datatype description
* @return Returns the memory location of the variable or NULL if no memory
* could be allocated */
void *
UA_Array_new(size_t size, const UA_DataType *type);
/* Allocates and copies an array
*
* @param src The memory location of the source array
* @param size The size of the array
* @param dst The location of the pointer to the new array
* @param type The datatype of the array members
* @return Returns UA_STATUSCODE_GOOD or UA_STATUSCODE_BADOUTOFMEMORY */
UA_StatusCode
UA_Array_copy(const void *src, size_t size, void **dst,
const UA_DataType *type);
/* Resizes (and reallocates) an array. The last entries are initialized to zero
* if the array length is increased. If the array length is decreased, the last
* entries are removed if the size is decreased.
*
* @param p Double pointer to the array memory. Can be overwritten by the result
* of a realloc.
* @param size The current size of the array. Overwritten in case of success.
* @param newSize The new size of the array
* @param type The datatype of the array members
* @return Returns UA_STATUSCODE_GOOD or UA_STATUSCODE_BADOUTOFMEMORY. The
* original array is left untouched in the failure case. */
UA_StatusCode
UA_Array_resize(void **p, size_t *size, size_t newSize,
const UA_DataType *type);
/* Append the given element at the end of the array. The content is moved
* (shallow copy) and the original memory is _init'ed if appending is
* successful.
*
* @param p Double pointer to the array memory. Can be overwritten by the result
* of a realloc.
* @param size The current size of the array. Overwritten in case of success.
* @param newElem The element to be appended. The memory is reset upon success.
* @param type The datatype of the array members
* @return Returns UA_STATUSCODE_GOOD or UA_STATUSCODE_BADOUTOFMEMORY. The
* original array is left untouched in the failure case. */
UA_StatusCode
UA_Array_append(void **p, size_t *size, void *newElem,
const UA_DataType *type);
/* Append a copy of the given element at the end of the array.
*
* @param p Double pointer to the array memory. Can be overwritten by the result
* of a realloc.
* @param size The current size of the array. Overwritten in case of success.
* @param newElem The element to be appended.
* @param type The datatype of the array members
* @return Returns UA_STATUSCODE_GOOD or UA_STATUSCODE_BADOUTOFMEMORY. The
* original array is left untouched in the failure case. */
UA_StatusCode
UA_Array_appendCopy(void **p, size_t *size, const void *newElem,
const UA_DataType *type);
/* Deletes an array.
*
* @param p The memory location of the array
* @param size The size of the array
* @param type The datatype of the array members */
void
UA_Array_delete(void *p, size_t size, const UA_DataType *type);
Random Number Generator¶
If UA_MULTITHREADING is defined, then the seed is stored in thread local storage. The seed is initialized for every thread in the server/client.
void UA_random_seed(UA_UInt64 seed);
UA_UInt32 UA_UInt32_random(void); /* no cryptographic entropy */
UA_Guid UA_Guid_random(void); /* no cryptographic entropy */
Generated Data Type Definitions¶
The following data types were auto-generated from a definition in XML format.
/* The following is used to exclude type names in the definition of UA_DataType
* structures if the feature is disabled. */
#ifdef UA_ENABLE_TYPEDESCRIPTION
# define UA_TYPENAME(name) name,
#else
# define UA_TYPENAME(name)
#endif
Every type is assigned an index in an array containing the type descriptions. These descriptions are used during type handling (copying, deletion, binary encoding, …).
#define UA_TYPES_COUNT 368
extern const UA_DataType UA_TYPES[UA_TYPES_COUNT];
Boolean¶
#define UA_TYPES_BOOLEAN 0
SByte¶
#define UA_TYPES_SBYTE 1
Byte¶
#define UA_TYPES_BYTE 2
Int16¶
#define UA_TYPES_INT16 3
UInt16¶
#define UA_TYPES_UINT16 4
Int32¶
#define UA_TYPES_INT32 5
UInt32¶
#define UA_TYPES_UINT32 6
Int64¶
#define UA_TYPES_INT64 7
UInt64¶
#define UA_TYPES_UINT64 8
Float¶
#define UA_TYPES_FLOAT 9
Double¶
#define UA_TYPES_DOUBLE 10
String¶
#define UA_TYPES_STRING 11
DateTime¶
#define UA_TYPES_DATETIME 12
Guid¶
#define UA_TYPES_GUID 13
ByteString¶
#define UA_TYPES_BYTESTRING 14
XmlElement¶
#define UA_TYPES_XMLELEMENT 15
NodeId¶
#define UA_TYPES_NODEID 16
ExpandedNodeId¶
#define UA_TYPES_EXPANDEDNODEID 17
StatusCode¶
#define UA_TYPES_STATUSCODE 18
QualifiedName¶
#define UA_TYPES_QUALIFIEDNAME 19
LocalizedText¶
#define UA_TYPES_LOCALIZEDTEXT 20
ExtensionObject¶
#define UA_TYPES_EXTENSIONOBJECT 21
DataValue¶
#define UA_TYPES_DATAVALUE 22
Variant¶
#define UA_TYPES_VARIANT 23
DiagnosticInfo¶
#define UA_TYPES_DIAGNOSTICINFO 24
NamingRuleType¶
typedef enum {
UA_NAMINGRULETYPE_MANDATORY = 1,
UA_NAMINGRULETYPE_OPTIONAL = 2,
UA_NAMINGRULETYPE_CONSTRAINT = 3,
__UA_NAMINGRULETYPE_FORCE32BIT = 0x7fffffff
} UA_NamingRuleType;
UA_STATIC_ASSERT(sizeof(UA_NamingRuleType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_NAMINGRULETYPE 25
Enumeration¶
typedef enum {
__UA_ENUMERATION_FORCE32BIT = 0x7fffffff
} UA_Enumeration;
UA_STATIC_ASSERT(sizeof(UA_Enumeration) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_ENUMERATION 26
ImageBMP¶
typedef UA_ByteString UA_ImageBMP;
#define UA_TYPES_IMAGEBMP 27
ImageGIF¶
typedef UA_ByteString UA_ImageGIF;
#define UA_TYPES_IMAGEGIF 28
ImageJPG¶
typedef UA_ByteString UA_ImageJPG;
#define UA_TYPES_IMAGEJPG 29
ImagePNG¶
typedef UA_ByteString UA_ImagePNG;
#define UA_TYPES_IMAGEPNG 30
AudioDataType¶
typedef UA_ByteString UA_AudioDataType;
#define UA_TYPES_AUDIODATATYPE 31
BitFieldMaskDataType¶
typedef UA_UInt64 UA_BitFieldMaskDataType;
#define UA_TYPES_BITFIELDMASKDATATYPE 32
KeyValuePair¶
typedef struct {
UA_QualifiedName key;
UA_Variant value;
} UA_KeyValuePair;
#define UA_TYPES_KEYVALUEPAIR 33
AdditionalParametersType¶
typedef struct {
size_t parametersSize;
UA_KeyValuePair *parameters;
} UA_AdditionalParametersType;
#define UA_TYPES_ADDITIONALPARAMETERSTYPE 34
EphemeralKeyType¶
typedef struct {
UA_ByteString publicKey;
UA_ByteString signature;
} UA_EphemeralKeyType;
#define UA_TYPES_EPHEMERALKEYTYPE 35
RationalNumber¶
typedef struct {
UA_Int32 numerator;
UA_UInt32 denominator;
} UA_RationalNumber;
#define UA_TYPES_RATIONALNUMBER 36
ThreeDVector¶
typedef struct {
UA_Double x;
UA_Double y;
UA_Double z;
} UA_ThreeDVector;
#define UA_TYPES_THREEDVECTOR 37
ThreeDCartesianCoordinates¶
typedef struct {
UA_Double x;
UA_Double y;
UA_Double z;
} UA_ThreeDCartesianCoordinates;
#define UA_TYPES_THREEDCARTESIANCOORDINATES 38
ThreeDOrientation¶
typedef struct {
UA_Double a;
UA_Double b;
UA_Double c;
} UA_ThreeDOrientation;
#define UA_TYPES_THREEDORIENTATION 39
ThreeDFrame¶
typedef struct {
UA_ThreeDCartesianCoordinates cartesianCoordinates;
UA_ThreeDOrientation orientation;
} UA_ThreeDFrame;
#define UA_TYPES_THREEDFRAME 40
OpenFileMode¶
typedef enum {
UA_OPENFILEMODE_READ = 1,
UA_OPENFILEMODE_WRITE = 2,
UA_OPENFILEMODE_ERASEEXISTING = 4,
UA_OPENFILEMODE_APPEND = 8,
__UA_OPENFILEMODE_FORCE32BIT = 0x7fffffff
} UA_OpenFileMode;
UA_STATIC_ASSERT(sizeof(UA_OpenFileMode) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_OPENFILEMODE 41
IdentityCriteriaType¶
typedef enum {
UA_IDENTITYCRITERIATYPE_USERNAME = 1,
UA_IDENTITYCRITERIATYPE_THUMBPRINT = 2,
UA_IDENTITYCRITERIATYPE_ROLE = 3,
UA_IDENTITYCRITERIATYPE_GROUPID = 4,
UA_IDENTITYCRITERIATYPE_ANONYMOUS = 5,
UA_IDENTITYCRITERIATYPE_AUTHENTICATEDUSER = 6,
UA_IDENTITYCRITERIATYPE_APPLICATION = 7,
__UA_IDENTITYCRITERIATYPE_FORCE32BIT = 0x7fffffff
} UA_IdentityCriteriaType;
UA_STATIC_ASSERT(sizeof(UA_IdentityCriteriaType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_IDENTITYCRITERIATYPE 42
IdentityMappingRuleType¶
typedef struct {
UA_IdentityCriteriaType criteriaType;
UA_String criteria;
} UA_IdentityMappingRuleType;
#define UA_TYPES_IDENTITYMAPPINGRULETYPE 43
CurrencyUnitType¶
typedef struct {
UA_Int16 numericCode;
UA_SByte exponent;
UA_String alphabeticCode;
UA_LocalizedText currency;
} UA_CurrencyUnitType;
#define UA_TYPES_CURRENCYUNITTYPE 44
TrustListMasks¶
typedef enum {
UA_TRUSTLISTMASKS_NONE = 0,
UA_TRUSTLISTMASKS_TRUSTEDCERTIFICATES = 1,
UA_TRUSTLISTMASKS_TRUSTEDCRLS = 2,
UA_TRUSTLISTMASKS_ISSUERCERTIFICATES = 4,
UA_TRUSTLISTMASKS_ISSUERCRLS = 8,
UA_TRUSTLISTMASKS_ALL = 15,
__UA_TRUSTLISTMASKS_FORCE32BIT = 0x7fffffff
} UA_TrustListMasks;
UA_STATIC_ASSERT(sizeof(UA_TrustListMasks) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_TRUSTLISTMASKS 45
TrustListDataType¶
typedef struct {
UA_UInt32 specifiedLists;
size_t trustedCertificatesSize;
UA_ByteString *trustedCertificates;
size_t trustedCrlsSize;
UA_ByteString *trustedCrls;
size_t issuerCertificatesSize;
UA_ByteString *issuerCertificates;
size_t issuerCrlsSize;
UA_ByteString *issuerCrls;
} UA_TrustListDataType;
#define UA_TYPES_TRUSTLISTDATATYPE 46
DecimalDataType¶
typedef struct {
UA_Int16 scale;
UA_ByteString value;
} UA_DecimalDataType;
#define UA_TYPES_DECIMALDATATYPE 47
DataTypeDescription¶
typedef struct {
UA_NodeId dataTypeId;
UA_QualifiedName name;
} UA_DataTypeDescription;
#define UA_TYPES_DATATYPEDESCRIPTION 48
SimpleTypeDescription¶
typedef struct {
UA_NodeId dataTypeId;
UA_QualifiedName name;
UA_NodeId baseDataType;
UA_Byte builtInType;
} UA_SimpleTypeDescription;
#define UA_TYPES_SIMPLETYPEDESCRIPTION 49
PubSubState¶
typedef enum {
UA_PUBSUBSTATE_DISABLED = 0,
UA_PUBSUBSTATE_PAUSED = 1,
UA_PUBSUBSTATE_OPERATIONAL = 2,
UA_PUBSUBSTATE_ERROR = 3,
UA_PUBSUBSTATE_PREOPERATIONAL = 4,
__UA_PUBSUBSTATE_FORCE32BIT = 0x7fffffff
} UA_PubSubState;
UA_STATIC_ASSERT(sizeof(UA_PubSubState) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_PUBSUBSTATE 50
DataSetFieldFlags¶
typedef UA_UInt16 UA_DataSetFieldFlags;
#define UA_DATASETFIELDFLAGS_NONE 0
#define UA_DATASETFIELDFLAGS_PROMOTEDFIELD 1
#define UA_TYPES_DATASETFIELDFLAGS 51
ConfigurationVersionDataType¶
typedef struct {
UA_UInt32 majorVersion;
UA_UInt32 minorVersion;
} UA_ConfigurationVersionDataType;
#define UA_TYPES_CONFIGURATIONVERSIONDATATYPE 52
PublishedVariableDataType¶
typedef struct {
UA_NodeId publishedVariable;
UA_UInt32 attributeId;
UA_Double samplingIntervalHint;
UA_UInt32 deadbandType;
UA_Double deadbandValue;
UA_String indexRange;
UA_Variant substituteValue;
size_t metaDataPropertiesSize;
UA_QualifiedName *metaDataProperties;
} UA_PublishedVariableDataType;
#define UA_TYPES_PUBLISHEDVARIABLEDATATYPE 53
PublishedDataItemsDataType¶
typedef struct {
size_t publishedDataSize;
UA_PublishedVariableDataType *publishedData;
} UA_PublishedDataItemsDataType;
#define UA_TYPES_PUBLISHEDDATAITEMSDATATYPE 54
DataSetFieldContentMask¶
typedef UA_UInt32 UA_DataSetFieldContentMask;
#define UA_DATASETFIELDCONTENTMASK_NONE 0
#define UA_DATASETFIELDCONTENTMASK_STATUSCODE 1
#define UA_DATASETFIELDCONTENTMASK_SOURCETIMESTAMP 2
#define UA_DATASETFIELDCONTENTMASK_SERVERTIMESTAMP 4
#define UA_DATASETFIELDCONTENTMASK_SOURCEPICOSECONDS 8
#define UA_DATASETFIELDCONTENTMASK_SERVERPICOSECONDS 16
#define UA_DATASETFIELDCONTENTMASK_RAWDATA 32
#define UA_TYPES_DATASETFIELDCONTENTMASK 55
DataSetWriterDataType¶
typedef struct {
UA_String name;
UA_Boolean enabled;
UA_UInt16 dataSetWriterId;
UA_DataSetFieldContentMask dataSetFieldContentMask;
UA_UInt32 keyFrameCount;
UA_String dataSetName;
size_t dataSetWriterPropertiesSize;
UA_KeyValuePair *dataSetWriterProperties;
UA_ExtensionObject transportSettings;
UA_ExtensionObject messageSettings;
} UA_DataSetWriterDataType;
#define UA_TYPES_DATASETWRITERDATATYPE 56
NetworkAddressDataType¶
typedef struct {
UA_String networkInterface;
} UA_NetworkAddressDataType;
#define UA_TYPES_NETWORKADDRESSDATATYPE 57
NetworkAddressUrlDataType¶
typedef struct {
UA_String networkInterface;
UA_String url;
} UA_NetworkAddressUrlDataType;
#define UA_TYPES_NETWORKADDRESSURLDATATYPE 58
OverrideValueHandling¶
typedef enum {
UA_OVERRIDEVALUEHANDLING_DISABLED = 0,
UA_OVERRIDEVALUEHANDLING_LASTUSABLEVALUE = 1,
UA_OVERRIDEVALUEHANDLING_OVERRIDEVALUE = 2,
__UA_OVERRIDEVALUEHANDLING_FORCE32BIT = 0x7fffffff
} UA_OverrideValueHandling;
UA_STATIC_ASSERT(sizeof(UA_OverrideValueHandling) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_OVERRIDEVALUEHANDLING 59
DataSetOrderingType¶
typedef enum {
UA_DATASETORDERINGTYPE_UNDEFINED = 0,
UA_DATASETORDERINGTYPE_ASCENDINGWRITERID = 1,
UA_DATASETORDERINGTYPE_ASCENDINGWRITERIDSINGLE = 2,
__UA_DATASETORDERINGTYPE_FORCE32BIT = 0x7fffffff
} UA_DataSetOrderingType;
UA_STATIC_ASSERT(sizeof(UA_DataSetOrderingType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_DATASETORDERINGTYPE 60
UadpNetworkMessageContentMask¶
typedef UA_UInt32 UA_UadpNetworkMessageContentMask;
#define UA_UADPNETWORKMESSAGECONTENTMASK_NONE 0
#define UA_UADPNETWORKMESSAGECONTENTMASK_PUBLISHERID 1
#define UA_UADPNETWORKMESSAGECONTENTMASK_GROUPHEADER 2
#define UA_UADPNETWORKMESSAGECONTENTMASK_WRITERGROUPID 4
#define UA_UADPNETWORKMESSAGECONTENTMASK_GROUPVERSION 8
#define UA_UADPNETWORKMESSAGECONTENTMASK_NETWORKMESSAGENUMBER 16
#define UA_UADPNETWORKMESSAGECONTENTMASK_SEQUENCENUMBER 32
#define UA_UADPNETWORKMESSAGECONTENTMASK_PAYLOADHEADER 64
#define UA_UADPNETWORKMESSAGECONTENTMASK_TIMESTAMP 128
#define UA_UADPNETWORKMESSAGECONTENTMASK_PICOSECONDS 256
#define UA_UADPNETWORKMESSAGECONTENTMASK_DATASETCLASSID 512
#define UA_UADPNETWORKMESSAGECONTENTMASK_PROMOTEDFIELDS 1024
#define UA_TYPES_UADPNETWORKMESSAGECONTENTMASK 61
UadpWriterGroupMessageDataType¶
typedef struct {
UA_UInt32 groupVersion;
UA_DataSetOrderingType dataSetOrdering;
UA_UadpNetworkMessageContentMask networkMessageContentMask;
UA_Double samplingOffset;
size_t publishingOffsetSize;
UA_Double *publishingOffset;
} UA_UadpWriterGroupMessageDataType;
#define UA_TYPES_UADPWRITERGROUPMESSAGEDATATYPE 62
UadpDataSetMessageContentMask¶
typedef UA_UInt32 UA_UadpDataSetMessageContentMask;
#define UA_UADPDATASETMESSAGECONTENTMASK_NONE 0
#define UA_UADPDATASETMESSAGECONTENTMASK_TIMESTAMP 1
#define UA_UADPDATASETMESSAGECONTENTMASK_PICOSECONDS 2
#define UA_UADPDATASETMESSAGECONTENTMASK_STATUS 4
#define UA_UADPDATASETMESSAGECONTENTMASK_MAJORVERSION 8
#define UA_UADPDATASETMESSAGECONTENTMASK_MINORVERSION 16
#define UA_UADPDATASETMESSAGECONTENTMASK_SEQUENCENUMBER 32
#define UA_TYPES_UADPDATASETMESSAGECONTENTMASK 63
UadpDataSetWriterMessageDataType¶
typedef struct {
UA_UadpDataSetMessageContentMask dataSetMessageContentMask;
UA_UInt16 configuredSize;
UA_UInt16 networkMessageNumber;
UA_UInt16 dataSetOffset;
} UA_UadpDataSetWriterMessageDataType;
#define UA_TYPES_UADPDATASETWRITERMESSAGEDATATYPE 64
UadpDataSetReaderMessageDataType¶
typedef struct {
UA_UInt32 groupVersion;
UA_UInt16 networkMessageNumber;
UA_UInt16 dataSetOffset;
UA_Guid dataSetClassId;
UA_UadpNetworkMessageContentMask networkMessageContentMask;
UA_UadpDataSetMessageContentMask dataSetMessageContentMask;
UA_Double publishingInterval;
UA_Double receiveOffset;
UA_Double processingOffset;
} UA_UadpDataSetReaderMessageDataType;
#define UA_TYPES_UADPDATASETREADERMESSAGEDATATYPE 65
JsonNetworkMessageContentMask¶
typedef UA_UInt32 UA_JsonNetworkMessageContentMask;
#define UA_JSONNETWORKMESSAGECONTENTMASK_NONE 0
#define UA_JSONNETWORKMESSAGECONTENTMASK_NETWORKMESSAGEHEADER 1
#define UA_JSONNETWORKMESSAGECONTENTMASK_DATASETMESSAGEHEADER 2
#define UA_JSONNETWORKMESSAGECONTENTMASK_SINGLEDATASETMESSAGE 4
#define UA_JSONNETWORKMESSAGECONTENTMASK_PUBLISHERID 8
#define UA_JSONNETWORKMESSAGECONTENTMASK_DATASETCLASSID 16
#define UA_JSONNETWORKMESSAGECONTENTMASK_REPLYTO 32
#define UA_TYPES_JSONNETWORKMESSAGECONTENTMASK 66
JsonWriterGroupMessageDataType¶
typedef struct {
UA_JsonNetworkMessageContentMask networkMessageContentMask;
} UA_JsonWriterGroupMessageDataType;
#define UA_TYPES_JSONWRITERGROUPMESSAGEDATATYPE 67
JsonDataSetMessageContentMask¶
typedef UA_UInt32 UA_JsonDataSetMessageContentMask;
#define UA_JSONDATASETMESSAGECONTENTMASK_NONE 0
#define UA_JSONDATASETMESSAGECONTENTMASK_DATASETWRITERID 1
#define UA_JSONDATASETMESSAGECONTENTMASK_METADATAVERSION 2
#define UA_JSONDATASETMESSAGECONTENTMASK_SEQUENCENUMBER 4
#define UA_JSONDATASETMESSAGECONTENTMASK_TIMESTAMP 8
#define UA_JSONDATASETMESSAGECONTENTMASK_STATUS 16
#define UA_JSONDATASETMESSAGECONTENTMASK_MESSAGETYPE 32
#define UA_TYPES_JSONDATASETMESSAGECONTENTMASK 68
JsonDataSetWriterMessageDataType¶
typedef struct {
UA_JsonDataSetMessageContentMask dataSetMessageContentMask;
} UA_JsonDataSetWriterMessageDataType;
#define UA_TYPES_JSONDATASETWRITERMESSAGEDATATYPE 69
JsonDataSetReaderMessageDataType¶
typedef struct {
UA_JsonNetworkMessageContentMask networkMessageContentMask;
UA_JsonDataSetMessageContentMask dataSetMessageContentMask;
} UA_JsonDataSetReaderMessageDataType;
#define UA_TYPES_JSONDATASETREADERMESSAGEDATATYPE 70
DatagramConnectionTransportDataType¶
typedef struct {
UA_ExtensionObject discoveryAddress;
} UA_DatagramConnectionTransportDataType;
#define UA_TYPES_DATAGRAMCONNECTIONTRANSPORTDATATYPE 71
DatagramWriterGroupTransportDataType¶
typedef struct {
UA_Byte messageRepeatCount;
UA_Double messageRepeatDelay;
} UA_DatagramWriterGroupTransportDataType;
#define UA_TYPES_DATAGRAMWRITERGROUPTRANSPORTDATATYPE 72
BrokerConnectionTransportDataType¶
typedef struct {
UA_String resourceUri;
UA_String authenticationProfileUri;
} UA_BrokerConnectionTransportDataType;
#define UA_TYPES_BROKERCONNECTIONTRANSPORTDATATYPE 73
BrokerTransportQualityOfService¶
typedef enum {
UA_BROKERTRANSPORTQUALITYOFSERVICE_NOTSPECIFIED = 0,
UA_BROKERTRANSPORTQUALITYOFSERVICE_BESTEFFORT = 1,
UA_BROKERTRANSPORTQUALITYOFSERVICE_ATLEASTONCE = 2,
UA_BROKERTRANSPORTQUALITYOFSERVICE_ATMOSTONCE = 3,
UA_BROKERTRANSPORTQUALITYOFSERVICE_EXACTLYONCE = 4,
__UA_BROKERTRANSPORTQUALITYOFSERVICE_FORCE32BIT = 0x7fffffff
} UA_BrokerTransportQualityOfService;
UA_STATIC_ASSERT(sizeof(UA_BrokerTransportQualityOfService) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_BROKERTRANSPORTQUALITYOFSERVICE 74
BrokerWriterGroupTransportDataType¶
typedef struct {
UA_String queueName;
UA_String resourceUri;
UA_String authenticationProfileUri;
UA_BrokerTransportQualityOfService requestedDeliveryGuarantee;
} UA_BrokerWriterGroupTransportDataType;
#define UA_TYPES_BROKERWRITERGROUPTRANSPORTDATATYPE 75
BrokerDataSetWriterTransportDataType¶
typedef struct {
UA_String queueName;
UA_String resourceUri;
UA_String authenticationProfileUri;
UA_BrokerTransportQualityOfService requestedDeliveryGuarantee;
UA_String metaDataQueueName;
UA_Double metaDataUpdateTime;
} UA_BrokerDataSetWriterTransportDataType;
#define UA_TYPES_BROKERDATASETWRITERTRANSPORTDATATYPE 76
BrokerDataSetReaderTransportDataType¶
typedef struct {
UA_String queueName;
UA_String resourceUri;
UA_String authenticationProfileUri;
UA_BrokerTransportQualityOfService requestedDeliveryGuarantee;
UA_String metaDataQueueName;
} UA_BrokerDataSetReaderTransportDataType;
#define UA_TYPES_BROKERDATASETREADERTRANSPORTDATATYPE 77
DiagnosticsLevel¶
typedef enum {
UA_DIAGNOSTICSLEVEL_BASIC = 0,
UA_DIAGNOSTICSLEVEL_ADVANCED = 1,
UA_DIAGNOSTICSLEVEL_INFO = 2,
UA_DIAGNOSTICSLEVEL_LOG = 3,
UA_DIAGNOSTICSLEVEL_DEBUG = 4,
__UA_DIAGNOSTICSLEVEL_FORCE32BIT = 0x7fffffff
} UA_DiagnosticsLevel;
UA_STATIC_ASSERT(sizeof(UA_DiagnosticsLevel) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_DIAGNOSTICSLEVEL 78
PubSubDiagnosticsCounterClassification¶
typedef enum {
UA_PUBSUBDIAGNOSTICSCOUNTERCLASSIFICATION_INFORMATION = 0,
UA_PUBSUBDIAGNOSTICSCOUNTERCLASSIFICATION_ERROR = 1,
__UA_PUBSUBDIAGNOSTICSCOUNTERCLASSIFICATION_FORCE32BIT = 0x7fffffff
} UA_PubSubDiagnosticsCounterClassification;
UA_STATIC_ASSERT(sizeof(UA_PubSubDiagnosticsCounterClassification) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_PUBSUBDIAGNOSTICSCOUNTERCLASSIFICATION 79
AliasNameDataType¶
typedef struct {
UA_QualifiedName aliasName;
size_t referencedNodesSize;
UA_ExpandedNodeId *referencedNodes;
} UA_AliasNameDataType;
#define UA_TYPES_ALIASNAMEDATATYPE 80
Duplex¶
typedef enum {
UA_DUPLEX_FULL = 0,
UA_DUPLEX_HALF = 1,
UA_DUPLEX_UNKNOWN = 2,
__UA_DUPLEX_FORCE32BIT = 0x7fffffff
} UA_Duplex;
UA_STATIC_ASSERT(sizeof(UA_Duplex) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_DUPLEX 81
InterfaceAdminStatus¶
typedef enum {
UA_INTERFACEADMINSTATUS_UP = 0,
UA_INTERFACEADMINSTATUS_DOWN = 1,
UA_INTERFACEADMINSTATUS_TESTING = 2,
__UA_INTERFACEADMINSTATUS_FORCE32BIT = 0x7fffffff
} UA_InterfaceAdminStatus;
UA_STATIC_ASSERT(sizeof(UA_InterfaceAdminStatus) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_INTERFACEADMINSTATUS 82
InterfaceOperStatus¶
typedef enum {
UA_INTERFACEOPERSTATUS_UP = 0,
UA_INTERFACEOPERSTATUS_DOWN = 1,
UA_INTERFACEOPERSTATUS_TESTING = 2,
UA_INTERFACEOPERSTATUS_UNKNOWN = 3,
UA_INTERFACEOPERSTATUS_DORMANT = 4,
UA_INTERFACEOPERSTATUS_NOTPRESENT = 5,
UA_INTERFACEOPERSTATUS_LOWERLAYERDOWN = 6,
__UA_INTERFACEOPERSTATUS_FORCE32BIT = 0x7fffffff
} UA_InterfaceOperStatus;
UA_STATIC_ASSERT(sizeof(UA_InterfaceOperStatus) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_INTERFACEOPERSTATUS 83
NegotiationStatus¶
typedef enum {
UA_NEGOTIATIONSTATUS_INPROGRESS = 0,
UA_NEGOTIATIONSTATUS_COMPLETE = 1,
UA_NEGOTIATIONSTATUS_FAILED = 2,
UA_NEGOTIATIONSTATUS_UNKNOWN = 3,
UA_NEGOTIATIONSTATUS_NONEGOTIATION = 4,
__UA_NEGOTIATIONSTATUS_FORCE32BIT = 0x7fffffff
} UA_NegotiationStatus;
UA_STATIC_ASSERT(sizeof(UA_NegotiationStatus) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_NEGOTIATIONSTATUS 84
TsnFailureCode¶
typedef enum {
UA_TSNFAILURECODE_NOFAILURE = 0,
UA_TSNFAILURECODE_INSUFFICIENTBANDWIDTH = 1,
UA_TSNFAILURECODE_INSUFFICIENTRESOURCES = 2,
UA_TSNFAILURECODE_INSUFFICIENTTRAFFICCLASSBANDWIDTH = 3,
UA_TSNFAILURECODE_STREAMIDINUSE = 4,
UA_TSNFAILURECODE_STREAMDESTINATIONADDRESSINUSE = 5,
UA_TSNFAILURECODE_STREAMPREEMPTEDBYHIGHERRANK = 6,
UA_TSNFAILURECODE_LATENCYHASCHANGED = 7,
UA_TSNFAILURECODE_EGRESSPORTNOTAVBCAPABLE = 8,
UA_TSNFAILURECODE_USEDIFFERENTDESTINATIONADDRESS = 9,
UA_TSNFAILURECODE_OUTOFMSRPRESOURCES = 10,
UA_TSNFAILURECODE_OUTOFMMRPRESOURCES = 11,
UA_TSNFAILURECODE_CANNOTSTOREDESTINATIONADDRESS = 12,
UA_TSNFAILURECODE_PRIORITYISNOTANSRCCLASS = 13,
UA_TSNFAILURECODE_MAXFRAMESIZETOOLARGE = 14,
UA_TSNFAILURECODE_MAXFANINPORTSLIMITREACHED = 15,
UA_TSNFAILURECODE_FIRSTVALUECHANGEDFORSTREAMID = 16,
UA_TSNFAILURECODE_VLANBLOCKEDONEGRESS = 17,
UA_TSNFAILURECODE_VLANTAGGINGDISABLEDONEGRESS = 18,
UA_TSNFAILURECODE_SRCLASSPRIORITYMISMATCH = 19,
UA_TSNFAILURECODE_FEATURENOTPROPAGATED = 20,
UA_TSNFAILURECODE_MAXLATENCYEXCEEDED = 21,
UA_TSNFAILURECODE_BRIDGEDOESNOTPROVIDENETWORKID = 22,
UA_TSNFAILURECODE_STREAMTRANSFORMNOTSUPPORTED = 23,
UA_TSNFAILURECODE_STREAMIDTYPENOTSUPPORTED = 24,
UA_TSNFAILURECODE_FEATURENOTSUPPORTED = 25,
__UA_TSNFAILURECODE_FORCE32BIT = 0x7fffffff
} UA_TsnFailureCode;
UA_STATIC_ASSERT(sizeof(UA_TsnFailureCode) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_TSNFAILURECODE 85
TsnStreamState¶
typedef enum {
UA_TSNSTREAMSTATE_DISABLED = 0,
UA_TSNSTREAMSTATE_CONFIGURING = 1,
UA_TSNSTREAMSTATE_READY = 2,
UA_TSNSTREAMSTATE_OPERATIONAL = 3,
UA_TSNSTREAMSTATE_ERROR = 4,
__UA_TSNSTREAMSTATE_FORCE32BIT = 0x7fffffff
} UA_TsnStreamState;
UA_STATIC_ASSERT(sizeof(UA_TsnStreamState) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_TSNSTREAMSTATE 86
TsnTalkerStatus¶
typedef enum {
UA_TSNTALKERSTATUS_NONE = 0,
UA_TSNTALKERSTATUS_READY = 1,
UA_TSNTALKERSTATUS_FAILED = 2,
__UA_TSNTALKERSTATUS_FORCE32BIT = 0x7fffffff
} UA_TsnTalkerStatus;
UA_STATIC_ASSERT(sizeof(UA_TsnTalkerStatus) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_TSNTALKERSTATUS 87
TsnListenerStatus¶
typedef enum {
UA_TSNLISTENERSTATUS_NONE = 0,
UA_TSNLISTENERSTATUS_READY = 1,
UA_TSNLISTENERSTATUS_PARTIALFAILED = 2,
UA_TSNLISTENERSTATUS_FAILED = 3,
__UA_TSNLISTENERSTATUS_FORCE32BIT = 0x7fffffff
} UA_TsnListenerStatus;
UA_STATIC_ASSERT(sizeof(UA_TsnListenerStatus) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_TSNLISTENERSTATUS 88
UnsignedRationalNumber¶
typedef struct {
UA_UInt32 numerator;
UA_UInt32 denominator;
} UA_UnsignedRationalNumber;
#define UA_TYPES_UNSIGNEDRATIONALNUMBER 89
IdType¶
typedef enum {
UA_IDTYPE_NUMERIC = 0,
UA_IDTYPE_STRING = 1,
UA_IDTYPE_GUID = 2,
UA_IDTYPE_OPAQUE = 3,
__UA_IDTYPE_FORCE32BIT = 0x7fffffff
} UA_IdType;
UA_STATIC_ASSERT(sizeof(UA_IdType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_IDTYPE 90
NodeClass¶
typedef enum {
UA_NODECLASS_UNSPECIFIED = 0,
UA_NODECLASS_OBJECT = 1,
UA_NODECLASS_VARIABLE = 2,
UA_NODECLASS_METHOD = 4,
UA_NODECLASS_OBJECTTYPE = 8,
UA_NODECLASS_VARIABLETYPE = 16,
UA_NODECLASS_REFERENCETYPE = 32,
UA_NODECLASS_DATATYPE = 64,
UA_NODECLASS_VIEW = 128,
__UA_NODECLASS_FORCE32BIT = 0x7fffffff
} UA_NodeClass;
UA_STATIC_ASSERT(sizeof(UA_NodeClass) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_NODECLASS 91
PermissionType¶
typedef UA_UInt32 UA_PermissionType;
#define UA_PERMISSIONTYPE_NONE 0
#define UA_PERMISSIONTYPE_BROWSE 1
#define UA_PERMISSIONTYPE_READROLEPERMISSIONS 2
#define UA_PERMISSIONTYPE_WRITEATTRIBUTE 4
#define UA_PERMISSIONTYPE_WRITEROLEPERMISSIONS 8
#define UA_PERMISSIONTYPE_WRITEHISTORIZING 16
#define UA_PERMISSIONTYPE_READ 32
#define UA_PERMISSIONTYPE_WRITE 64
#define UA_PERMISSIONTYPE_READHISTORY 128
#define UA_PERMISSIONTYPE_INSERTHISTORY 256
#define UA_PERMISSIONTYPE_MODIFYHISTORY 512
#define UA_PERMISSIONTYPE_DELETEHISTORY 1024
#define UA_PERMISSIONTYPE_RECEIVEEVENTS 2048
#define UA_PERMISSIONTYPE_CALL 4096
#define UA_PERMISSIONTYPE_ADDREFERENCE 8192
#define UA_PERMISSIONTYPE_REMOVEREFERENCE 16384
#define UA_PERMISSIONTYPE_DELETENODE 32768
#define UA_PERMISSIONTYPE_ADDNODE 65536
#define UA_TYPES_PERMISSIONTYPE 92
AccessLevelType¶
typedef UA_Byte UA_AccessLevelType;
#define UA_ACCESSLEVELTYPE_NONE 0
#define UA_ACCESSLEVELTYPE_CURRENTREAD 1
#define UA_ACCESSLEVELTYPE_CURRENTWRITE 2
#define UA_ACCESSLEVELTYPE_HISTORYREAD 4
#define UA_ACCESSLEVELTYPE_HISTORYWRITE 8
#define UA_ACCESSLEVELTYPE_SEMANTICCHANGE 16
#define UA_ACCESSLEVELTYPE_STATUSWRITE 32
#define UA_ACCESSLEVELTYPE_TIMESTAMPWRITE 64
#define UA_TYPES_ACCESSLEVELTYPE 93
AccessLevelExType¶
typedef UA_UInt32 UA_AccessLevelExType;
#define UA_ACCESSLEVELEXTYPE_NONE 0
#define UA_ACCESSLEVELEXTYPE_CURRENTREAD 1
#define UA_ACCESSLEVELEXTYPE_CURRENTWRITE 2
#define UA_ACCESSLEVELEXTYPE_HISTORYREAD 4
#define UA_ACCESSLEVELEXTYPE_HISTORYWRITE 8
#define UA_ACCESSLEVELEXTYPE_SEMANTICCHANGE 16
#define UA_ACCESSLEVELEXTYPE_STATUSWRITE 32
#define UA_ACCESSLEVELEXTYPE_TIMESTAMPWRITE 64
#define UA_ACCESSLEVELEXTYPE_NONATOMICREAD 256
#define UA_ACCESSLEVELEXTYPE_NONATOMICWRITE 512
#define UA_ACCESSLEVELEXTYPE_WRITEFULLARRAYONLY 1024
#define UA_ACCESSLEVELEXTYPE_NOSUBDATATYPES 2048
#define UA_TYPES_ACCESSLEVELEXTYPE 94
EventNotifierType¶
typedef UA_Byte UA_EventNotifierType;
#define UA_EVENTNOTIFIERTYPE_NONE 0
#define UA_EVENTNOTIFIERTYPE_SUBSCRIBETOEVENTS 1
#define UA_EVENTNOTIFIERTYPE_HISTORYREAD 4
#define UA_EVENTNOTIFIERTYPE_HISTORYWRITE 8
#define UA_TYPES_EVENTNOTIFIERTYPE 95
AccessRestrictionType¶
typedef UA_UInt16 UA_AccessRestrictionType;
#define UA_ACCESSRESTRICTIONTYPE_NONE 0
#define UA_ACCESSRESTRICTIONTYPE_SIGNINGREQUIRED 1
#define UA_ACCESSRESTRICTIONTYPE_ENCRYPTIONREQUIRED 2
#define UA_ACCESSRESTRICTIONTYPE_SESSIONREQUIRED 4
#define UA_ACCESSRESTRICTIONTYPE_APPLYRESTRICTIONSTOBROWSE 8
#define UA_TYPES_ACCESSRESTRICTIONTYPE 96
RolePermissionType¶
typedef struct {
UA_NodeId roleId;
UA_PermissionType permissions;
} UA_RolePermissionType;
#define UA_TYPES_ROLEPERMISSIONTYPE 97
StructureType¶
typedef enum {
UA_STRUCTURETYPE_STRUCTURE = 0,
UA_STRUCTURETYPE_STRUCTUREWITHOPTIONALFIELDS = 1,
UA_STRUCTURETYPE_UNION = 2,
UA_STRUCTURETYPE_STRUCTUREWITHSUBTYPEDVALUES = 3,
UA_STRUCTURETYPE_UNIONWITHSUBTYPEDVALUES = 4,
__UA_STRUCTURETYPE_FORCE32BIT = 0x7fffffff
} UA_StructureType;
UA_STATIC_ASSERT(sizeof(UA_StructureType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_STRUCTURETYPE 98
StructureField¶
typedef struct {
UA_String name;
UA_LocalizedText description;
UA_NodeId dataType;
UA_Int32 valueRank;
size_t arrayDimensionsSize;
UA_UInt32 *arrayDimensions;
UA_UInt32 maxStringLength;
UA_Boolean isOptional;
} UA_StructureField;
#define UA_TYPES_STRUCTUREFIELD 99
StructureDefinition¶
typedef struct {
UA_NodeId defaultEncodingId;
UA_NodeId baseDataType;
UA_StructureType structureType;
size_t fieldsSize;
UA_StructureField *fields;
} UA_StructureDefinition;
#define UA_TYPES_STRUCTUREDEFINITION 100
ReferenceNode¶
typedef struct {
UA_NodeId referenceTypeId;
UA_Boolean isInverse;
UA_ExpandedNodeId targetId;
} UA_ReferenceNode;
#define UA_TYPES_REFERENCENODE 101
Argument¶
typedef struct {
UA_String name;
UA_NodeId dataType;
UA_Int32 valueRank;
size_t arrayDimensionsSize;
UA_UInt32 *arrayDimensions;
UA_LocalizedText description;
} UA_Argument;
#define UA_TYPES_ARGUMENT 102
EnumValueType¶
typedef struct {
UA_Int64 value;
UA_LocalizedText displayName;
UA_LocalizedText description;
} UA_EnumValueType;
#define UA_TYPES_ENUMVALUETYPE 103
EnumField¶
typedef struct {
UA_Int64 value;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_String name;
} UA_EnumField;
#define UA_TYPES_ENUMFIELD 104
OptionSet¶
typedef struct {
UA_ByteString value;
UA_ByteString validBits;
} UA_OptionSet;
#define UA_TYPES_OPTIONSET 105
NormalizedString¶
typedef UA_String UA_NormalizedString;
#define UA_TYPES_NORMALIZEDSTRING 106
DecimalString¶
typedef UA_String UA_DecimalString;
#define UA_TYPES_DECIMALSTRING 107
DurationString¶
typedef UA_String UA_DurationString;
#define UA_TYPES_DURATIONSTRING 108
TimeString¶
typedef UA_String UA_TimeString;
#define UA_TYPES_TIMESTRING 109
DateString¶
typedef UA_String UA_DateString;
#define UA_TYPES_DATESTRING 110
Duration¶
typedef UA_Double UA_Duration;
#define UA_TYPES_DURATION 111
UtcTime¶
typedef UA_DateTime UA_UtcTime;
#define UA_TYPES_UTCTIME 112
Time¶
typedef UA_String UA_Time;
#define UA_TYPES_TIME 113
Date¶
typedef UA_DateTime UA_Date;
#define UA_TYPES_DATE 114
LocaleId¶
typedef UA_String UA_LocaleId;
#define UA_TYPES_LOCALEID 115
TimeZoneDataType¶
typedef struct {
UA_Int16 offset;
UA_Boolean daylightSavingInOffset;
} UA_TimeZoneDataType;
#define UA_TYPES_TIMEZONEDATATYPE 116
Index¶
typedef UA_ByteString UA_Index;
#define UA_TYPES_INDEX 117
IntegerId¶
typedef UA_UInt32 UA_IntegerId;
#define UA_TYPES_INTEGERID 118
ApplicationType¶
typedef enum {
UA_APPLICATIONTYPE_SERVER = 0,
UA_APPLICATIONTYPE_CLIENT = 1,
UA_APPLICATIONTYPE_CLIENTANDSERVER = 2,
UA_APPLICATIONTYPE_DISCOVERYSERVER = 3,
__UA_APPLICATIONTYPE_FORCE32BIT = 0x7fffffff
} UA_ApplicationType;
UA_STATIC_ASSERT(sizeof(UA_ApplicationType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_APPLICATIONTYPE 119
ApplicationDescription¶
typedef struct {
UA_String applicationUri;
UA_String productUri;
UA_LocalizedText applicationName;
UA_ApplicationType applicationType;
UA_String gatewayServerUri;
UA_String discoveryProfileUri;
size_t discoveryUrlsSize;
UA_String *discoveryUrls;
} UA_ApplicationDescription;
#define UA_TYPES_APPLICATIONDESCRIPTION 120
RequestHeader¶
typedef struct {
UA_NodeId authenticationToken;
UA_DateTime timestamp;
UA_UInt32 requestHandle;
UA_UInt32 returnDiagnostics;
UA_String auditEntryId;
UA_UInt32 timeoutHint;
UA_ExtensionObject additionalHeader;
} UA_RequestHeader;
#define UA_TYPES_REQUESTHEADER 121
ResponseHeader¶
typedef struct {
UA_DateTime timestamp;
UA_UInt32 requestHandle;
UA_StatusCode serviceResult;
UA_DiagnosticInfo serviceDiagnostics;
size_t stringTableSize;
UA_String *stringTable;
UA_ExtensionObject additionalHeader;
} UA_ResponseHeader;
#define UA_TYPES_RESPONSEHEADER 122
VersionTime¶
typedef UA_ByteString UA_VersionTime;
#define UA_TYPES_VERSIONTIME 123
ServiceFault¶
typedef struct {
UA_ResponseHeader responseHeader;
} UA_ServiceFault;
#define UA_TYPES_SERVICEFAULT 124
SessionlessInvokeRequestType¶
typedef struct {
UA_UInt32 urisVersion;
size_t namespaceUrisSize;
UA_String *namespaceUris;
size_t serverUrisSize;
UA_String *serverUris;
size_t localeIdsSize;
UA_String *localeIds;
UA_UInt32 serviceId;
} UA_SessionlessInvokeRequestType;
#define UA_TYPES_SESSIONLESSINVOKEREQUESTTYPE 125
SessionlessInvokeResponseType¶
typedef struct {
size_t namespaceUrisSize;
UA_String *namespaceUris;
size_t serverUrisSize;
UA_String *serverUris;
UA_UInt32 serviceId;
} UA_SessionlessInvokeResponseType;
#define UA_TYPES_SESSIONLESSINVOKERESPONSETYPE 126
FindServersRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_String endpointUrl;
size_t localeIdsSize;
UA_String *localeIds;
size_t serverUrisSize;
UA_String *serverUris;
} UA_FindServersRequest;
#define UA_TYPES_FINDSERVERSREQUEST 127
FindServersResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t serversSize;
UA_ApplicationDescription *servers;
} UA_FindServersResponse;
#define UA_TYPES_FINDSERVERSRESPONSE 128
ServerOnNetwork¶
typedef struct {
UA_UInt32 recordId;
UA_String serverName;
UA_String discoveryUrl;
size_t serverCapabilitiesSize;
UA_String *serverCapabilities;
} UA_ServerOnNetwork;
#define UA_TYPES_SERVERONNETWORK 129
FindServersOnNetworkRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 startingRecordId;
UA_UInt32 maxRecordsToReturn;
size_t serverCapabilityFilterSize;
UA_String *serverCapabilityFilter;
} UA_FindServersOnNetworkRequest;
#define UA_TYPES_FINDSERVERSONNETWORKREQUEST 130
FindServersOnNetworkResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_DateTime lastCounterResetTime;
size_t serversSize;
UA_ServerOnNetwork *servers;
} UA_FindServersOnNetworkResponse;
#define UA_TYPES_FINDSERVERSONNETWORKRESPONSE 131
ApplicationInstanceCertificate¶
typedef UA_ByteString UA_ApplicationInstanceCertificate;
#define UA_TYPES_APPLICATIONINSTANCECERTIFICATE 132
MessageSecurityMode¶
typedef enum {
UA_MESSAGESECURITYMODE_INVALID = 0,
UA_MESSAGESECURITYMODE_NONE = 1,
UA_MESSAGESECURITYMODE_SIGN = 2,
UA_MESSAGESECURITYMODE_SIGNANDENCRYPT = 3,
__UA_MESSAGESECURITYMODE_FORCE32BIT = 0x7fffffff
} UA_MessageSecurityMode;
UA_STATIC_ASSERT(sizeof(UA_MessageSecurityMode) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_MESSAGESECURITYMODE 133
UserTokenType¶
typedef enum {
UA_USERTOKENTYPE_ANONYMOUS = 0,
UA_USERTOKENTYPE_USERNAME = 1,
UA_USERTOKENTYPE_CERTIFICATE = 2,
UA_USERTOKENTYPE_ISSUEDTOKEN = 3,
__UA_USERTOKENTYPE_FORCE32BIT = 0x7fffffff
} UA_UserTokenType;
UA_STATIC_ASSERT(sizeof(UA_UserTokenType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_USERTOKENTYPE 134
UserTokenPolicy¶
typedef struct {
UA_String policyId;
UA_UserTokenType tokenType;
UA_String issuedTokenType;
UA_String issuerEndpointUrl;
UA_String securityPolicyUri;
} UA_UserTokenPolicy;
#define UA_TYPES_USERTOKENPOLICY 135
EndpointDescription¶
typedef struct {
UA_String endpointUrl;
UA_ApplicationDescription server;
UA_ByteString serverCertificate;
UA_MessageSecurityMode securityMode;
UA_String securityPolicyUri;
size_t userIdentityTokensSize;
UA_UserTokenPolicy *userIdentityTokens;
UA_String transportProfileUri;
UA_Byte securityLevel;
} UA_EndpointDescription;
#define UA_TYPES_ENDPOINTDESCRIPTION 136
GetEndpointsRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_String endpointUrl;
size_t localeIdsSize;
UA_String *localeIds;
size_t profileUrisSize;
UA_String *profileUris;
} UA_GetEndpointsRequest;
#define UA_TYPES_GETENDPOINTSREQUEST 137
GetEndpointsResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t endpointsSize;
UA_EndpointDescription *endpoints;
} UA_GetEndpointsResponse;
#define UA_TYPES_GETENDPOINTSRESPONSE 138
RegisteredServer¶
typedef struct {
UA_String serverUri;
UA_String productUri;
size_t serverNamesSize;
UA_LocalizedText *serverNames;
UA_ApplicationType serverType;
UA_String gatewayServerUri;
size_t discoveryUrlsSize;
UA_String *discoveryUrls;
UA_String semaphoreFilePath;
UA_Boolean isOnline;
} UA_RegisteredServer;
#define UA_TYPES_REGISTEREDSERVER 139
RegisterServerRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_RegisteredServer server;
} UA_RegisterServerRequest;
#define UA_TYPES_REGISTERSERVERREQUEST 140
RegisterServerResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
} UA_RegisterServerResponse;
#define UA_TYPES_REGISTERSERVERRESPONSE 141
MdnsDiscoveryConfiguration¶
typedef struct {
UA_String mdnsServerName;
size_t serverCapabilitiesSize;
UA_String *serverCapabilities;
} UA_MdnsDiscoveryConfiguration;
#define UA_TYPES_MDNSDISCOVERYCONFIGURATION 142
RegisterServer2Request¶
typedef struct {
UA_RequestHeader requestHeader;
UA_RegisteredServer server;
size_t discoveryConfigurationSize;
UA_ExtensionObject *discoveryConfiguration;
} UA_RegisterServer2Request;
#define UA_TYPES_REGISTERSERVER2REQUEST 143
RegisterServer2Response¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t configurationResultsSize;
UA_StatusCode *configurationResults;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_RegisterServer2Response;
#define UA_TYPES_REGISTERSERVER2RESPONSE 144
SecurityTokenRequestType¶
typedef enum {
UA_SECURITYTOKENREQUESTTYPE_ISSUE = 0,
UA_SECURITYTOKENREQUESTTYPE_RENEW = 1,
__UA_SECURITYTOKENREQUESTTYPE_FORCE32BIT = 0x7fffffff
} UA_SecurityTokenRequestType;
UA_STATIC_ASSERT(sizeof(UA_SecurityTokenRequestType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_SECURITYTOKENREQUESTTYPE 145
ChannelSecurityToken¶
typedef struct {
UA_UInt32 channelId;
UA_UInt32 tokenId;
UA_DateTime createdAt;
UA_UInt32 revisedLifetime;
} UA_ChannelSecurityToken;
#define UA_TYPES_CHANNELSECURITYTOKEN 146
OpenSecureChannelRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 clientProtocolVersion;
UA_SecurityTokenRequestType requestType;
UA_MessageSecurityMode securityMode;
UA_ByteString clientNonce;
UA_UInt32 requestedLifetime;
} UA_OpenSecureChannelRequest;
#define UA_TYPES_OPENSECURECHANNELREQUEST 147
OpenSecureChannelResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_UInt32 serverProtocolVersion;
UA_ChannelSecurityToken securityToken;
UA_ByteString serverNonce;
} UA_OpenSecureChannelResponse;
#define UA_TYPES_OPENSECURECHANNELRESPONSE 148
CloseSecureChannelRequest¶
typedef struct {
UA_RequestHeader requestHeader;
} UA_CloseSecureChannelRequest;
#define UA_TYPES_CLOSESECURECHANNELREQUEST 149
CloseSecureChannelResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
} UA_CloseSecureChannelResponse;
#define UA_TYPES_CLOSESECURECHANNELRESPONSE 150
SignedSoftwareCertificate¶
typedef struct {
UA_ByteString certificateData;
UA_ByteString signature;
} UA_SignedSoftwareCertificate;
#define UA_TYPES_SIGNEDSOFTWARECERTIFICATE 151
SessionAuthenticationToken¶
typedef UA_NodeId UA_SessionAuthenticationToken;
#define UA_TYPES_SESSIONAUTHENTICATIONTOKEN 152
SignatureData¶
typedef struct {
UA_String algorithm;
UA_ByteString signature;
} UA_SignatureData;
#define UA_TYPES_SIGNATUREDATA 153
CreateSessionRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_ApplicationDescription clientDescription;
UA_String serverUri;
UA_String endpointUrl;
UA_String sessionName;
UA_ByteString clientNonce;
UA_ByteString clientCertificate;
UA_Double requestedSessionTimeout;
UA_UInt32 maxResponseMessageSize;
} UA_CreateSessionRequest;
#define UA_TYPES_CREATESESSIONREQUEST 154
CreateSessionResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_NodeId sessionId;
UA_NodeId authenticationToken;
UA_Double revisedSessionTimeout;
UA_ByteString serverNonce;
UA_ByteString serverCertificate;
size_t serverEndpointsSize;
UA_EndpointDescription *serverEndpoints;
size_t serverSoftwareCertificatesSize;
UA_SignedSoftwareCertificate *serverSoftwareCertificates;
UA_SignatureData serverSignature;
UA_UInt32 maxRequestMessageSize;
} UA_CreateSessionResponse;
#define UA_TYPES_CREATESESSIONRESPONSE 155
UserIdentityToken¶
typedef struct {
UA_String policyId;
} UA_UserIdentityToken;
#define UA_TYPES_USERIDENTITYTOKEN 156
AnonymousIdentityToken¶
typedef struct {
UA_String policyId;
} UA_AnonymousIdentityToken;
#define UA_TYPES_ANONYMOUSIDENTITYTOKEN 157
UserNameIdentityToken¶
typedef struct {
UA_String policyId;
UA_String userName;
UA_ByteString password;
UA_String encryptionAlgorithm;
} UA_UserNameIdentityToken;
#define UA_TYPES_USERNAMEIDENTITYTOKEN 158
X509IdentityToken¶
typedef struct {
UA_String policyId;
UA_ByteString certificateData;
} UA_X509IdentityToken;
#define UA_TYPES_X509IDENTITYTOKEN 159
IssuedIdentityToken¶
typedef struct {
UA_String policyId;
UA_ByteString tokenData;
UA_String encryptionAlgorithm;
} UA_IssuedIdentityToken;
#define UA_TYPES_ISSUEDIDENTITYTOKEN 160
RsaEncryptedSecret¶
typedef UA_ByteString UA_RsaEncryptedSecret;
#define UA_TYPES_RSAENCRYPTEDSECRET 161
EccEncryptedSecret¶
typedef UA_ByteString UA_EccEncryptedSecret;
#define UA_TYPES_ECCENCRYPTEDSECRET 162
ActivateSessionRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_SignatureData clientSignature;
size_t clientSoftwareCertificatesSize;
UA_SignedSoftwareCertificate *clientSoftwareCertificates;
size_t localeIdsSize;
UA_String *localeIds;
UA_ExtensionObject userIdentityToken;
UA_SignatureData userTokenSignature;
} UA_ActivateSessionRequest;
#define UA_TYPES_ACTIVATESESSIONREQUEST 163
ActivateSessionResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_ByteString serverNonce;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_ActivateSessionResponse;
#define UA_TYPES_ACTIVATESESSIONRESPONSE 164
CloseSessionRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_Boolean deleteSubscriptions;
} UA_CloseSessionRequest;
#define UA_TYPES_CLOSESESSIONREQUEST 165
CloseSessionResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
} UA_CloseSessionResponse;
#define UA_TYPES_CLOSESESSIONRESPONSE 166
CancelRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 requestHandle;
} UA_CancelRequest;
#define UA_TYPES_CANCELREQUEST 167
CancelResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_UInt32 cancelCount;
} UA_CancelResponse;
#define UA_TYPES_CANCELRESPONSE 168
NodeAttributesMask¶
typedef enum {
UA_NODEATTRIBUTESMASK_NONE = 0,
UA_NODEATTRIBUTESMASK_ACCESSLEVEL = 1,
UA_NODEATTRIBUTESMASK_ARRAYDIMENSIONS = 2,
UA_NODEATTRIBUTESMASK_BROWSENAME = 4,
UA_NODEATTRIBUTESMASK_CONTAINSNOLOOPS = 8,
UA_NODEATTRIBUTESMASK_DATATYPE = 16,
UA_NODEATTRIBUTESMASK_DESCRIPTION = 32,
UA_NODEATTRIBUTESMASK_DISPLAYNAME = 64,
UA_NODEATTRIBUTESMASK_EVENTNOTIFIER = 128,
UA_NODEATTRIBUTESMASK_EXECUTABLE = 256,
UA_NODEATTRIBUTESMASK_HISTORIZING = 512,
UA_NODEATTRIBUTESMASK_INVERSENAME = 1024,
UA_NODEATTRIBUTESMASK_ISABSTRACT = 2048,
UA_NODEATTRIBUTESMASK_MINIMUMSAMPLINGINTERVAL = 4096,
UA_NODEATTRIBUTESMASK_NODECLASS = 8192,
UA_NODEATTRIBUTESMASK_NODEID = 16384,
UA_NODEATTRIBUTESMASK_SYMMETRIC = 32768,
UA_NODEATTRIBUTESMASK_USERACCESSLEVEL = 65536,
UA_NODEATTRIBUTESMASK_USEREXECUTABLE = 131072,
UA_NODEATTRIBUTESMASK_USERWRITEMASK = 262144,
UA_NODEATTRIBUTESMASK_VALUERANK = 524288,
UA_NODEATTRIBUTESMASK_WRITEMASK = 1048576,
UA_NODEATTRIBUTESMASK_VALUE = 2097152,
UA_NODEATTRIBUTESMASK_DATATYPEDEFINITION = 4194304,
UA_NODEATTRIBUTESMASK_ROLEPERMISSIONS = 8388608,
UA_NODEATTRIBUTESMASK_ACCESSRESTRICTIONS = 16777216,
UA_NODEATTRIBUTESMASK_ALL = 33554431,
UA_NODEATTRIBUTESMASK_BASENODE = 26501220,
UA_NODEATTRIBUTESMASK_OBJECT = 26501348,
UA_NODEATTRIBUTESMASK_OBJECTTYPE = 26503268,
UA_NODEATTRIBUTESMASK_VARIABLE = 26571383,
UA_NODEATTRIBUTESMASK_VARIABLETYPE = 28600438,
UA_NODEATTRIBUTESMASK_METHOD = 26632548,
UA_NODEATTRIBUTESMASK_REFERENCETYPE = 26537060,
UA_NODEATTRIBUTESMASK_VIEW = 26501356,
__UA_NODEATTRIBUTESMASK_FORCE32BIT = 0x7fffffff
} UA_NodeAttributesMask;
UA_STATIC_ASSERT(sizeof(UA_NodeAttributesMask) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_NODEATTRIBUTESMASK 169
NodeAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
} UA_NodeAttributes;
#define UA_TYPES_NODEATTRIBUTES 170
ObjectAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Byte eventNotifier;
} UA_ObjectAttributes;
#define UA_TYPES_OBJECTATTRIBUTES 171
VariableAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Variant value;
UA_NodeId dataType;
UA_Int32 valueRank;
size_t arrayDimensionsSize;
UA_UInt32 *arrayDimensions;
UA_Byte accessLevel;
UA_Byte userAccessLevel;
UA_Double minimumSamplingInterval;
UA_Boolean historizing;
} UA_VariableAttributes;
#define UA_TYPES_VARIABLEATTRIBUTES 172
MethodAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Boolean executable;
UA_Boolean userExecutable;
} UA_MethodAttributes;
#define UA_TYPES_METHODATTRIBUTES 173
ObjectTypeAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Boolean isAbstract;
} UA_ObjectTypeAttributes;
#define UA_TYPES_OBJECTTYPEATTRIBUTES 174
VariableTypeAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Variant value;
UA_NodeId dataType;
UA_Int32 valueRank;
size_t arrayDimensionsSize;
UA_UInt32 *arrayDimensions;
UA_Boolean isAbstract;
} UA_VariableTypeAttributes;
#define UA_TYPES_VARIABLETYPEATTRIBUTES 175
ReferenceTypeAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Boolean isAbstract;
UA_Boolean symmetric;
UA_LocalizedText inverseName;
} UA_ReferenceTypeAttributes;
#define UA_TYPES_REFERENCETYPEATTRIBUTES 176
DataTypeAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Boolean isAbstract;
} UA_DataTypeAttributes;
#define UA_TYPES_DATATYPEATTRIBUTES 177
ViewAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
UA_Boolean containsNoLoops;
UA_Byte eventNotifier;
} UA_ViewAttributes;
#define UA_TYPES_VIEWATTRIBUTES 178
GenericAttributeValue¶
typedef struct {
UA_UInt32 attributeId;
UA_Variant value;
} UA_GenericAttributeValue;
#define UA_TYPES_GENERICATTRIBUTEVALUE 179
GenericAttributes¶
typedef struct {
UA_UInt32 specifiedAttributes;
UA_LocalizedText displayName;
UA_LocalizedText description;
UA_UInt32 writeMask;
UA_UInt32 userWriteMask;
size_t attributeValuesSize;
UA_GenericAttributeValue *attributeValues;
} UA_GenericAttributes;
#define UA_TYPES_GENERICATTRIBUTES 180
AddNodesItem¶
typedef struct {
UA_ExpandedNodeId parentNodeId;
UA_NodeId referenceTypeId;
UA_ExpandedNodeId requestedNewNodeId;
UA_QualifiedName browseName;
UA_NodeClass nodeClass;
UA_ExtensionObject nodeAttributes;
UA_ExpandedNodeId typeDefinition;
} UA_AddNodesItem;
#define UA_TYPES_ADDNODESITEM 181
AddNodesResult¶
typedef struct {
UA_StatusCode statusCode;
UA_NodeId addedNodeId;
} UA_AddNodesResult;
#define UA_TYPES_ADDNODESRESULT 182
AddNodesRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t nodesToAddSize;
UA_AddNodesItem *nodesToAdd;
} UA_AddNodesRequest;
#define UA_TYPES_ADDNODESREQUEST 183
AddNodesResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_AddNodesResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_AddNodesResponse;
#define UA_TYPES_ADDNODESRESPONSE 184
AddReferencesItem¶
typedef struct {
UA_NodeId sourceNodeId;
UA_NodeId referenceTypeId;
UA_Boolean isForward;
UA_String targetServerUri;
UA_ExpandedNodeId targetNodeId;
UA_NodeClass targetNodeClass;
} UA_AddReferencesItem;
#define UA_TYPES_ADDREFERENCESITEM 185
AddReferencesRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t referencesToAddSize;
UA_AddReferencesItem *referencesToAdd;
} UA_AddReferencesRequest;
#define UA_TYPES_ADDREFERENCESREQUEST 186
AddReferencesResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_AddReferencesResponse;
#define UA_TYPES_ADDREFERENCESRESPONSE 187
DeleteNodesItem¶
typedef struct {
UA_NodeId nodeId;
UA_Boolean deleteTargetReferences;
} UA_DeleteNodesItem;
#define UA_TYPES_DELETENODESITEM 188
DeleteNodesRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t nodesToDeleteSize;
UA_DeleteNodesItem *nodesToDelete;
} UA_DeleteNodesRequest;
#define UA_TYPES_DELETENODESREQUEST 189
DeleteNodesResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_DeleteNodesResponse;
#define UA_TYPES_DELETENODESRESPONSE 190
DeleteReferencesItem¶
typedef struct {
UA_NodeId sourceNodeId;
UA_NodeId referenceTypeId;
UA_Boolean isForward;
UA_ExpandedNodeId targetNodeId;
UA_Boolean deleteBidirectional;
} UA_DeleteReferencesItem;
#define UA_TYPES_DELETEREFERENCESITEM 191
DeleteReferencesRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t referencesToDeleteSize;
UA_DeleteReferencesItem *referencesToDelete;
} UA_DeleteReferencesRequest;
#define UA_TYPES_DELETEREFERENCESREQUEST 192
DeleteReferencesResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_DeleteReferencesResponse;
#define UA_TYPES_DELETEREFERENCESRESPONSE 193
AttributeWriteMask¶
typedef UA_UInt32 UA_AttributeWriteMask;
#define UA_ATTRIBUTEWRITEMASK_NONE 0
#define UA_ATTRIBUTEWRITEMASK_ACCESSLEVEL 1
#define UA_ATTRIBUTEWRITEMASK_ARRAYDIMENSIONS 2
#define UA_ATTRIBUTEWRITEMASK_BROWSENAME 4
#define UA_ATTRIBUTEWRITEMASK_CONTAINSNOLOOPS 8
#define UA_ATTRIBUTEWRITEMASK_DATATYPE 16
#define UA_ATTRIBUTEWRITEMASK_DESCRIPTION 32
#define UA_ATTRIBUTEWRITEMASK_DISPLAYNAME 64
#define UA_ATTRIBUTEWRITEMASK_EVENTNOTIFIER 128
#define UA_ATTRIBUTEWRITEMASK_EXECUTABLE 256
#define UA_ATTRIBUTEWRITEMASK_HISTORIZING 512
#define UA_ATTRIBUTEWRITEMASK_INVERSENAME 1024
#define UA_ATTRIBUTEWRITEMASK_ISABSTRACT 2048
#define UA_ATTRIBUTEWRITEMASK_MINIMUMSAMPLINGINTERVAL 4096
#define UA_ATTRIBUTEWRITEMASK_NODECLASS 8192
#define UA_ATTRIBUTEWRITEMASK_NODEID 16384
#define UA_ATTRIBUTEWRITEMASK_SYMMETRIC 32768
#define UA_ATTRIBUTEWRITEMASK_USERACCESSLEVEL 65536
#define UA_ATTRIBUTEWRITEMASK_USEREXECUTABLE 131072
#define UA_ATTRIBUTEWRITEMASK_USERWRITEMASK 262144
#define UA_ATTRIBUTEWRITEMASK_VALUERANK 524288
#define UA_ATTRIBUTEWRITEMASK_WRITEMASK 1048576
#define UA_ATTRIBUTEWRITEMASK_VALUEFORVARIABLETYPE 2097152
#define UA_ATTRIBUTEWRITEMASK_DATATYPEDEFINITION 4194304
#define UA_ATTRIBUTEWRITEMASK_ROLEPERMISSIONS 8388608
#define UA_ATTRIBUTEWRITEMASK_ACCESSRESTRICTIONS 16777216
#define UA_ATTRIBUTEWRITEMASK_ACCESSLEVELEX 33554432
#define UA_TYPES_ATTRIBUTEWRITEMASK 194
BrowseDirection¶
typedef enum {
UA_BROWSEDIRECTION_FORWARD = 0,
UA_BROWSEDIRECTION_INVERSE = 1,
UA_BROWSEDIRECTION_BOTH = 2,
UA_BROWSEDIRECTION_INVALID = 3,
__UA_BROWSEDIRECTION_FORCE32BIT = 0x7fffffff
} UA_BrowseDirection;
UA_STATIC_ASSERT(sizeof(UA_BrowseDirection) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_BROWSEDIRECTION 195
ViewDescription¶
typedef struct {
UA_NodeId viewId;
UA_DateTime timestamp;
UA_UInt32 viewVersion;
} UA_ViewDescription;
#define UA_TYPES_VIEWDESCRIPTION 196
BrowseDescription¶
typedef struct {
UA_NodeId nodeId;
UA_BrowseDirection browseDirection;
UA_NodeId referenceTypeId;
UA_Boolean includeSubtypes;
UA_UInt32 nodeClassMask;
UA_UInt32 resultMask;
} UA_BrowseDescription;
#define UA_TYPES_BROWSEDESCRIPTION 197
BrowseResultMask¶
typedef enum {
UA_BROWSERESULTMASK_NONE = 0,
UA_BROWSERESULTMASK_REFERENCETYPEID = 1,
UA_BROWSERESULTMASK_ISFORWARD = 2,
UA_BROWSERESULTMASK_NODECLASS = 4,
UA_BROWSERESULTMASK_BROWSENAME = 8,
UA_BROWSERESULTMASK_DISPLAYNAME = 16,
UA_BROWSERESULTMASK_TYPEDEFINITION = 32,
UA_BROWSERESULTMASK_ALL = 63,
UA_BROWSERESULTMASK_REFERENCETYPEINFO = 3,
UA_BROWSERESULTMASK_TARGETINFO = 60,
__UA_BROWSERESULTMASK_FORCE32BIT = 0x7fffffff
} UA_BrowseResultMask;
UA_STATIC_ASSERT(sizeof(UA_BrowseResultMask) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_BROWSERESULTMASK 198
ReferenceDescription¶
typedef struct {
UA_NodeId referenceTypeId;
UA_Boolean isForward;
UA_ExpandedNodeId nodeId;
UA_QualifiedName browseName;
UA_LocalizedText displayName;
UA_NodeClass nodeClass;
UA_ExpandedNodeId typeDefinition;
} UA_ReferenceDescription;
#define UA_TYPES_REFERENCEDESCRIPTION 199
ContinuationPoint¶
typedef UA_ByteString UA_ContinuationPoint;
#define UA_TYPES_CONTINUATIONPOINT 200
BrowseResult¶
typedef struct {
UA_StatusCode statusCode;
UA_ByteString continuationPoint;
size_t referencesSize;
UA_ReferenceDescription *references;
} UA_BrowseResult;
#define UA_TYPES_BROWSERESULT 201
BrowseRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_ViewDescription view;
UA_UInt32 requestedMaxReferencesPerNode;
size_t nodesToBrowseSize;
UA_BrowseDescription *nodesToBrowse;
} UA_BrowseRequest;
#define UA_TYPES_BROWSEREQUEST 202
BrowseResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_BrowseResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_BrowseResponse;
#define UA_TYPES_BROWSERESPONSE 203
BrowseNextRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_Boolean releaseContinuationPoints;
size_t continuationPointsSize;
UA_ByteString *continuationPoints;
} UA_BrowseNextRequest;
#define UA_TYPES_BROWSENEXTREQUEST 204
BrowseNextResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_BrowseResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_BrowseNextResponse;
#define UA_TYPES_BROWSENEXTRESPONSE 205
RelativePathElement¶
typedef struct {
UA_NodeId referenceTypeId;
UA_Boolean isInverse;
UA_Boolean includeSubtypes;
UA_QualifiedName targetName;
} UA_RelativePathElement;
#define UA_TYPES_RELATIVEPATHELEMENT 206
RelativePath¶
typedef struct {
size_t elementsSize;
UA_RelativePathElement *elements;
} UA_RelativePath;
#define UA_TYPES_RELATIVEPATH 207
BrowsePath¶
typedef struct {
UA_NodeId startingNode;
UA_RelativePath relativePath;
} UA_BrowsePath;
#define UA_TYPES_BROWSEPATH 208
BrowsePathTarget¶
typedef struct {
UA_ExpandedNodeId targetId;
UA_UInt32 remainingPathIndex;
} UA_BrowsePathTarget;
#define UA_TYPES_BROWSEPATHTARGET 209
BrowsePathResult¶
typedef struct {
UA_StatusCode statusCode;
size_t targetsSize;
UA_BrowsePathTarget *targets;
} UA_BrowsePathResult;
#define UA_TYPES_BROWSEPATHRESULT 210
TranslateBrowsePathsToNodeIdsRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t browsePathsSize;
UA_BrowsePath *browsePaths;
} UA_TranslateBrowsePathsToNodeIdsRequest;
#define UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSREQUEST 211
TranslateBrowsePathsToNodeIdsResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_BrowsePathResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_TranslateBrowsePathsToNodeIdsResponse;
#define UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSRESPONSE 212
RegisterNodesRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t nodesToRegisterSize;
UA_NodeId *nodesToRegister;
} UA_RegisterNodesRequest;
#define UA_TYPES_REGISTERNODESREQUEST 213
RegisterNodesResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t registeredNodeIdsSize;
UA_NodeId *registeredNodeIds;
} UA_RegisterNodesResponse;
#define UA_TYPES_REGISTERNODESRESPONSE 214
UnregisterNodesRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t nodesToUnregisterSize;
UA_NodeId *nodesToUnregister;
} UA_UnregisterNodesRequest;
#define UA_TYPES_UNREGISTERNODESREQUEST 215
UnregisterNodesResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
} UA_UnregisterNodesResponse;
#define UA_TYPES_UNREGISTERNODESRESPONSE 216
Counter¶
typedef UA_UInt32 UA_Counter;
#define UA_TYPES_COUNTER 217
OpaqueNumericRange¶
typedef UA_String UA_OpaqueNumericRange;
#define UA_TYPES_OPAQUENUMERICRANGE 218
EndpointConfiguration¶
typedef struct {
UA_Int32 operationTimeout;
UA_Boolean useBinaryEncoding;
UA_Int32 maxStringLength;
UA_Int32 maxByteStringLength;
UA_Int32 maxArrayLength;
UA_Int32 maxMessageSize;
UA_Int32 maxBufferSize;
UA_Int32 channelLifetime;
UA_Int32 securityTokenLifetime;
} UA_EndpointConfiguration;
#define UA_TYPES_ENDPOINTCONFIGURATION 219
QueryDataDescription¶
typedef struct {
UA_RelativePath relativePath;
UA_UInt32 attributeId;
UA_String indexRange;
} UA_QueryDataDescription;
#define UA_TYPES_QUERYDATADESCRIPTION 220
NodeTypeDescription¶
typedef struct {
UA_ExpandedNodeId typeDefinitionNode;
UA_Boolean includeSubTypes;
size_t dataToReturnSize;
UA_QueryDataDescription *dataToReturn;
} UA_NodeTypeDescription;
#define UA_TYPES_NODETYPEDESCRIPTION 221
FilterOperator¶
typedef enum {
UA_FILTEROPERATOR_EQUALS = 0,
UA_FILTEROPERATOR_ISNULL = 1,
UA_FILTEROPERATOR_GREATERTHAN = 2,
UA_FILTEROPERATOR_LESSTHAN = 3,
UA_FILTEROPERATOR_GREATERTHANOREQUAL = 4,
UA_FILTEROPERATOR_LESSTHANOREQUAL = 5,
UA_FILTEROPERATOR_LIKE = 6,
UA_FILTEROPERATOR_NOT = 7,
UA_FILTEROPERATOR_BETWEEN = 8,
UA_FILTEROPERATOR_INLIST = 9,
UA_FILTEROPERATOR_AND = 10,
UA_FILTEROPERATOR_OR = 11,
UA_FILTEROPERATOR_CAST = 12,
UA_FILTEROPERATOR_INVIEW = 13,
UA_FILTEROPERATOR_OFTYPE = 14,
UA_FILTEROPERATOR_RELATEDTO = 15,
UA_FILTEROPERATOR_BITWISEAND = 16,
UA_FILTEROPERATOR_BITWISEOR = 17,
__UA_FILTEROPERATOR_FORCE32BIT = 0x7fffffff
} UA_FilterOperator;
UA_STATIC_ASSERT(sizeof(UA_FilterOperator) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_FILTEROPERATOR 222
QueryDataSet¶
typedef struct {
UA_ExpandedNodeId nodeId;
UA_ExpandedNodeId typeDefinitionNode;
size_t valuesSize;
UA_Variant *values;
} UA_QueryDataSet;
#define UA_TYPES_QUERYDATASET 223
NodeReference¶
typedef struct {
UA_NodeId nodeId;
UA_NodeId referenceTypeId;
UA_Boolean isForward;
size_t referencedNodeIdsSize;
UA_NodeId *referencedNodeIds;
} UA_NodeReference;
#define UA_TYPES_NODEREFERENCE 224
ContentFilterElement¶
typedef struct {
UA_FilterOperator filterOperator;
size_t filterOperandsSize;
UA_ExtensionObject *filterOperands;
} UA_ContentFilterElement;
#define UA_TYPES_CONTENTFILTERELEMENT 225
ContentFilter¶
typedef struct {
size_t elementsSize;
UA_ContentFilterElement *elements;
} UA_ContentFilter;
#define UA_TYPES_CONTENTFILTER 226
ElementOperand¶
typedef struct {
UA_UInt32 index;
} UA_ElementOperand;
#define UA_TYPES_ELEMENTOPERAND 227
LiteralOperand¶
typedef struct {
UA_Variant value;
} UA_LiteralOperand;
#define UA_TYPES_LITERALOPERAND 228
AttributeOperand¶
typedef struct {
UA_NodeId nodeId;
UA_String alias;
UA_RelativePath browsePath;
UA_UInt32 attributeId;
UA_String indexRange;
} UA_AttributeOperand;
#define UA_TYPES_ATTRIBUTEOPERAND 229
SimpleAttributeOperand¶
typedef struct {
UA_NodeId typeDefinitionId;
size_t browsePathSize;
UA_QualifiedName *browsePath;
UA_UInt32 attributeId;
UA_String indexRange;
} UA_SimpleAttributeOperand;
#define UA_TYPES_SIMPLEATTRIBUTEOPERAND 230
ContentFilterElementResult¶
typedef struct {
UA_StatusCode statusCode;
size_t operandStatusCodesSize;
UA_StatusCode *operandStatusCodes;
size_t operandDiagnosticInfosSize;
UA_DiagnosticInfo *operandDiagnosticInfos;
} UA_ContentFilterElementResult;
#define UA_TYPES_CONTENTFILTERELEMENTRESULT 231
ContentFilterResult¶
typedef struct {
size_t elementResultsSize;
UA_ContentFilterElementResult *elementResults;
size_t elementDiagnosticInfosSize;
UA_DiagnosticInfo *elementDiagnosticInfos;
} UA_ContentFilterResult;
#define UA_TYPES_CONTENTFILTERRESULT 232
ParsingResult¶
typedef struct {
UA_StatusCode statusCode;
size_t dataStatusCodesSize;
UA_StatusCode *dataStatusCodes;
size_t dataDiagnosticInfosSize;
UA_DiagnosticInfo *dataDiagnosticInfos;
} UA_ParsingResult;
#define UA_TYPES_PARSINGRESULT 233
QueryFirstRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_ViewDescription view;
size_t nodeTypesSize;
UA_NodeTypeDescription *nodeTypes;
UA_ContentFilter filter;
UA_UInt32 maxDataSetsToReturn;
UA_UInt32 maxReferencesToReturn;
} UA_QueryFirstRequest;
#define UA_TYPES_QUERYFIRSTREQUEST 234
QueryFirstResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t queryDataSetsSize;
UA_QueryDataSet *queryDataSets;
UA_ByteString continuationPoint;
size_t parsingResultsSize;
UA_ParsingResult *parsingResults;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
UA_ContentFilterResult filterResult;
} UA_QueryFirstResponse;
#define UA_TYPES_QUERYFIRSTRESPONSE 235
QueryNextRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_Boolean releaseContinuationPoint;
UA_ByteString continuationPoint;
} UA_QueryNextRequest;
#define UA_TYPES_QUERYNEXTREQUEST 236
QueryNextResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t queryDataSetsSize;
UA_QueryDataSet *queryDataSets;
UA_ByteString revisedContinuationPoint;
} UA_QueryNextResponse;
#define UA_TYPES_QUERYNEXTRESPONSE 237
TimestampsToReturn¶
typedef enum {
UA_TIMESTAMPSTORETURN_SOURCE = 0,
UA_TIMESTAMPSTORETURN_SERVER = 1,
UA_TIMESTAMPSTORETURN_BOTH = 2,
UA_TIMESTAMPSTORETURN_NEITHER = 3,
UA_TIMESTAMPSTORETURN_INVALID = 4,
__UA_TIMESTAMPSTORETURN_FORCE32BIT = 0x7fffffff
} UA_TimestampsToReturn;
UA_STATIC_ASSERT(sizeof(UA_TimestampsToReturn) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_TIMESTAMPSTORETURN 238
ReadValueId¶
typedef struct {
UA_NodeId nodeId;
UA_UInt32 attributeId;
UA_String indexRange;
UA_QualifiedName dataEncoding;
} UA_ReadValueId;
#define UA_TYPES_READVALUEID 239
ReadRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_Double maxAge;
UA_TimestampsToReturn timestampsToReturn;
size_t nodesToReadSize;
UA_ReadValueId *nodesToRead;
} UA_ReadRequest;
#define UA_TYPES_READREQUEST 240
ReadResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_DataValue *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_ReadResponse;
#define UA_TYPES_READRESPONSE 241
HistoryReadValueId¶
typedef struct {
UA_NodeId nodeId;
UA_String indexRange;
UA_QualifiedName dataEncoding;
UA_ByteString continuationPoint;
} UA_HistoryReadValueId;
#define UA_TYPES_HISTORYREADVALUEID 242
HistoryReadResult¶
typedef struct {
UA_StatusCode statusCode;
UA_ByteString continuationPoint;
UA_ExtensionObject historyData;
} UA_HistoryReadResult;
#define UA_TYPES_HISTORYREADRESULT 243
ReadRawModifiedDetails¶
typedef struct {
UA_Boolean isReadModified;
UA_DateTime startTime;
UA_DateTime endTime;
UA_UInt32 numValuesPerNode;
UA_Boolean returnBounds;
} UA_ReadRawModifiedDetails;
#define UA_TYPES_READRAWMODIFIEDDETAILS 244
ReadAtTimeDetails¶
typedef struct {
size_t reqTimesSize;
UA_DateTime *reqTimes;
UA_Boolean useSimpleBounds;
} UA_ReadAtTimeDetails;
#define UA_TYPES_READATTIMEDETAILS 245
ReadAnnotationDataDetails¶
typedef struct {
size_t reqTimesSize;
UA_DateTime *reqTimes;
} UA_ReadAnnotationDataDetails;
#define UA_TYPES_READANNOTATIONDATADETAILS 246
HistoryData¶
typedef struct {
size_t dataValuesSize;
UA_DataValue *dataValues;
} UA_HistoryData;
#define UA_TYPES_HISTORYDATA 247
HistoryReadRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_ExtensionObject historyReadDetails;
UA_TimestampsToReturn timestampsToReturn;
UA_Boolean releaseContinuationPoints;
size_t nodesToReadSize;
UA_HistoryReadValueId *nodesToRead;
} UA_HistoryReadRequest;
#define UA_TYPES_HISTORYREADREQUEST 248
HistoryReadResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_HistoryReadResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_HistoryReadResponse;
#define UA_TYPES_HISTORYREADRESPONSE 249
WriteValue¶
typedef struct {
UA_NodeId nodeId;
UA_UInt32 attributeId;
UA_String indexRange;
UA_DataValue value;
} UA_WriteValue;
#define UA_TYPES_WRITEVALUE 250
WriteRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t nodesToWriteSize;
UA_WriteValue *nodesToWrite;
} UA_WriteRequest;
#define UA_TYPES_WRITEREQUEST 251
WriteResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_WriteResponse;
#define UA_TYPES_WRITERESPONSE 252
HistoryUpdateDetails¶
typedef struct {
UA_NodeId nodeId;
} UA_HistoryUpdateDetails;
#define UA_TYPES_HISTORYUPDATEDETAILS 253
HistoryUpdateType¶
typedef enum {
UA_HISTORYUPDATETYPE_INSERT = 1,
UA_HISTORYUPDATETYPE_REPLACE = 2,
UA_HISTORYUPDATETYPE_UPDATE = 3,
UA_HISTORYUPDATETYPE_DELETE = 4,
__UA_HISTORYUPDATETYPE_FORCE32BIT = 0x7fffffff
} UA_HistoryUpdateType;
UA_STATIC_ASSERT(sizeof(UA_HistoryUpdateType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_HISTORYUPDATETYPE 254
PerformUpdateType¶
typedef enum {
UA_PERFORMUPDATETYPE_INSERT = 1,
UA_PERFORMUPDATETYPE_REPLACE = 2,
UA_PERFORMUPDATETYPE_UPDATE = 3,
UA_PERFORMUPDATETYPE_REMOVE = 4,
__UA_PERFORMUPDATETYPE_FORCE32BIT = 0x7fffffff
} UA_PerformUpdateType;
UA_STATIC_ASSERT(sizeof(UA_PerformUpdateType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_PERFORMUPDATETYPE 255
UpdateDataDetails¶
typedef struct {
UA_NodeId nodeId;
UA_PerformUpdateType performInsertReplace;
size_t updateValuesSize;
UA_DataValue *updateValues;
} UA_UpdateDataDetails;
#define UA_TYPES_UPDATEDATADETAILS 256
UpdateStructureDataDetails¶
typedef struct {
UA_NodeId nodeId;
UA_PerformUpdateType performInsertReplace;
size_t updateValuesSize;
UA_DataValue *updateValues;
} UA_UpdateStructureDataDetails;
#define UA_TYPES_UPDATESTRUCTUREDATADETAILS 257
DeleteRawModifiedDetails¶
typedef struct {
UA_NodeId nodeId;
UA_Boolean isDeleteModified;
UA_DateTime startTime;
UA_DateTime endTime;
} UA_DeleteRawModifiedDetails;
#define UA_TYPES_DELETERAWMODIFIEDDETAILS 258
DeleteAtTimeDetails¶
typedef struct {
UA_NodeId nodeId;
size_t reqTimesSize;
UA_DateTime *reqTimes;
} UA_DeleteAtTimeDetails;
#define UA_TYPES_DELETEATTIMEDETAILS 259
DeleteEventDetails¶
typedef struct {
UA_NodeId nodeId;
size_t eventIdsSize;
UA_ByteString *eventIds;
} UA_DeleteEventDetails;
#define UA_TYPES_DELETEEVENTDETAILS 260
HistoryUpdateResult¶
typedef struct {
UA_StatusCode statusCode;
size_t operationResultsSize;
UA_StatusCode *operationResults;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_HistoryUpdateResult;
#define UA_TYPES_HISTORYUPDATERESULT 261
HistoryUpdateRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t historyUpdateDetailsSize;
UA_ExtensionObject *historyUpdateDetails;
} UA_HistoryUpdateRequest;
#define UA_TYPES_HISTORYUPDATEREQUEST 262
HistoryUpdateResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_HistoryUpdateResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_HistoryUpdateResponse;
#define UA_TYPES_HISTORYUPDATERESPONSE 263
CallMethodRequest¶
typedef struct {
UA_NodeId objectId;
UA_NodeId methodId;
size_t inputArgumentsSize;
UA_Variant *inputArguments;
} UA_CallMethodRequest;
#define UA_TYPES_CALLMETHODREQUEST 264
CallMethodResult¶
typedef struct {
UA_StatusCode statusCode;
size_t inputArgumentResultsSize;
UA_StatusCode *inputArgumentResults;
size_t inputArgumentDiagnosticInfosSize;
UA_DiagnosticInfo *inputArgumentDiagnosticInfos;
size_t outputArgumentsSize;
UA_Variant *outputArguments;
} UA_CallMethodResult;
#define UA_TYPES_CALLMETHODRESULT 265
CallRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t methodsToCallSize;
UA_CallMethodRequest *methodsToCall;
} UA_CallRequest;
#define UA_TYPES_CALLREQUEST 266
CallResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_CallMethodResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_CallResponse;
#define UA_TYPES_CALLRESPONSE 267
MonitoringMode¶
typedef enum {
UA_MONITORINGMODE_DISABLED = 0,
UA_MONITORINGMODE_SAMPLING = 1,
UA_MONITORINGMODE_REPORTING = 2,
__UA_MONITORINGMODE_FORCE32BIT = 0x7fffffff
} UA_MonitoringMode;
UA_STATIC_ASSERT(sizeof(UA_MonitoringMode) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_MONITORINGMODE 268
DataChangeTrigger¶
typedef enum {
UA_DATACHANGETRIGGER_STATUS = 0,
UA_DATACHANGETRIGGER_STATUSVALUE = 1,
UA_DATACHANGETRIGGER_STATUSVALUETIMESTAMP = 2,
__UA_DATACHANGETRIGGER_FORCE32BIT = 0x7fffffff
} UA_DataChangeTrigger;
UA_STATIC_ASSERT(sizeof(UA_DataChangeTrigger) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_DATACHANGETRIGGER 269
DeadbandType¶
typedef enum {
UA_DEADBANDTYPE_NONE = 0,
UA_DEADBANDTYPE_ABSOLUTE = 1,
UA_DEADBANDTYPE_PERCENT = 2,
__UA_DEADBANDTYPE_FORCE32BIT = 0x7fffffff
} UA_DeadbandType;
UA_STATIC_ASSERT(sizeof(UA_DeadbandType) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_DEADBANDTYPE 270
DataChangeFilter¶
typedef struct {
UA_DataChangeTrigger trigger;
UA_UInt32 deadbandType;
UA_Double deadbandValue;
} UA_DataChangeFilter;
#define UA_TYPES_DATACHANGEFILTER 271
EventFilter¶
typedef struct {
size_t selectClausesSize;
UA_SimpleAttributeOperand *selectClauses;
UA_ContentFilter whereClause;
} UA_EventFilter;
#define UA_TYPES_EVENTFILTER 272
AggregateConfiguration¶
typedef struct {
UA_Boolean useServerCapabilitiesDefaults;
UA_Boolean treatUncertainAsBad;
UA_Byte percentDataBad;
UA_Byte percentDataGood;
UA_Boolean useSlopedExtrapolation;
} UA_AggregateConfiguration;
#define UA_TYPES_AGGREGATECONFIGURATION 273
AggregateFilter¶
typedef struct {
UA_DateTime startTime;
UA_NodeId aggregateType;
UA_Double processingInterval;
UA_AggregateConfiguration aggregateConfiguration;
} UA_AggregateFilter;
#define UA_TYPES_AGGREGATEFILTER 274
EventFilterResult¶
typedef struct {
size_t selectClauseResultsSize;
UA_StatusCode *selectClauseResults;
size_t selectClauseDiagnosticInfosSize;
UA_DiagnosticInfo *selectClauseDiagnosticInfos;
UA_ContentFilterResult whereClauseResult;
} UA_EventFilterResult;
#define UA_TYPES_EVENTFILTERRESULT 275
AggregateFilterResult¶
typedef struct {
UA_DateTime revisedStartTime;
UA_Double revisedProcessingInterval;
UA_AggregateConfiguration revisedAggregateConfiguration;
} UA_AggregateFilterResult;
#define UA_TYPES_AGGREGATEFILTERRESULT 276
MonitoringParameters¶
typedef struct {
UA_UInt32 clientHandle;
UA_Double samplingInterval;
UA_ExtensionObject filter;
UA_UInt32 queueSize;
UA_Boolean discardOldest;
} UA_MonitoringParameters;
#define UA_TYPES_MONITORINGPARAMETERS 277
MonitoredItemCreateRequest¶
typedef struct {
UA_ReadValueId itemToMonitor;
UA_MonitoringMode monitoringMode;
UA_MonitoringParameters requestedParameters;
} UA_MonitoredItemCreateRequest;
#define UA_TYPES_MONITOREDITEMCREATEREQUEST 278
MonitoredItemCreateResult¶
typedef struct {
UA_StatusCode statusCode;
UA_UInt32 monitoredItemId;
UA_Double revisedSamplingInterval;
UA_UInt32 revisedQueueSize;
UA_ExtensionObject filterResult;
} UA_MonitoredItemCreateResult;
#define UA_TYPES_MONITOREDITEMCREATERESULT 279
CreateMonitoredItemsRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 subscriptionId;
UA_TimestampsToReturn timestampsToReturn;
size_t itemsToCreateSize;
UA_MonitoredItemCreateRequest *itemsToCreate;
} UA_CreateMonitoredItemsRequest;
#define UA_TYPES_CREATEMONITOREDITEMSREQUEST 280
CreateMonitoredItemsResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_MonitoredItemCreateResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_CreateMonitoredItemsResponse;
#define UA_TYPES_CREATEMONITOREDITEMSRESPONSE 281
MonitoredItemModifyRequest¶
typedef struct {
UA_UInt32 monitoredItemId;
UA_MonitoringParameters requestedParameters;
} UA_MonitoredItemModifyRequest;
#define UA_TYPES_MONITOREDITEMMODIFYREQUEST 282
MonitoredItemModifyResult¶
typedef struct {
UA_StatusCode statusCode;
UA_Double revisedSamplingInterval;
UA_UInt32 revisedQueueSize;
UA_ExtensionObject filterResult;
} UA_MonitoredItemModifyResult;
#define UA_TYPES_MONITOREDITEMMODIFYRESULT 283
ModifyMonitoredItemsRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 subscriptionId;
UA_TimestampsToReturn timestampsToReturn;
size_t itemsToModifySize;
UA_MonitoredItemModifyRequest *itemsToModify;
} UA_ModifyMonitoredItemsRequest;
#define UA_TYPES_MODIFYMONITOREDITEMSREQUEST 284
ModifyMonitoredItemsResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_MonitoredItemModifyResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_ModifyMonitoredItemsResponse;
#define UA_TYPES_MODIFYMONITOREDITEMSRESPONSE 285
SetMonitoringModeRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 subscriptionId;
UA_MonitoringMode monitoringMode;
size_t monitoredItemIdsSize;
UA_UInt32 *monitoredItemIds;
} UA_SetMonitoringModeRequest;
#define UA_TYPES_SETMONITORINGMODEREQUEST 286
SetMonitoringModeResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_SetMonitoringModeResponse;
#define UA_TYPES_SETMONITORINGMODERESPONSE 287
SetTriggeringRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 subscriptionId;
UA_UInt32 triggeringItemId;
size_t linksToAddSize;
UA_UInt32 *linksToAdd;
size_t linksToRemoveSize;
UA_UInt32 *linksToRemove;
} UA_SetTriggeringRequest;
#define UA_TYPES_SETTRIGGERINGREQUEST 288
SetTriggeringResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t addResultsSize;
UA_StatusCode *addResults;
size_t addDiagnosticInfosSize;
UA_DiagnosticInfo *addDiagnosticInfos;
size_t removeResultsSize;
UA_StatusCode *removeResults;
size_t removeDiagnosticInfosSize;
UA_DiagnosticInfo *removeDiagnosticInfos;
} UA_SetTriggeringResponse;
#define UA_TYPES_SETTRIGGERINGRESPONSE 289
DeleteMonitoredItemsRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 subscriptionId;
size_t monitoredItemIdsSize;
UA_UInt32 *monitoredItemIds;
} UA_DeleteMonitoredItemsRequest;
#define UA_TYPES_DELETEMONITOREDITEMSREQUEST 290
DeleteMonitoredItemsResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_DeleteMonitoredItemsResponse;
#define UA_TYPES_DELETEMONITOREDITEMSRESPONSE 291
CreateSubscriptionRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_Double requestedPublishingInterval;
UA_UInt32 requestedLifetimeCount;
UA_UInt32 requestedMaxKeepAliveCount;
UA_UInt32 maxNotificationsPerPublish;
UA_Boolean publishingEnabled;
UA_Byte priority;
} UA_CreateSubscriptionRequest;
#define UA_TYPES_CREATESUBSCRIPTIONREQUEST 292
CreateSubscriptionResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_UInt32 subscriptionId;
UA_Double revisedPublishingInterval;
UA_UInt32 revisedLifetimeCount;
UA_UInt32 revisedMaxKeepAliveCount;
} UA_CreateSubscriptionResponse;
#define UA_TYPES_CREATESUBSCRIPTIONRESPONSE 293
ModifySubscriptionRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 subscriptionId;
UA_Double requestedPublishingInterval;
UA_UInt32 requestedLifetimeCount;
UA_UInt32 requestedMaxKeepAliveCount;
UA_UInt32 maxNotificationsPerPublish;
UA_Byte priority;
} UA_ModifySubscriptionRequest;
#define UA_TYPES_MODIFYSUBSCRIPTIONREQUEST 294
ModifySubscriptionResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_Double revisedPublishingInterval;
UA_UInt32 revisedLifetimeCount;
UA_UInt32 revisedMaxKeepAliveCount;
} UA_ModifySubscriptionResponse;
#define UA_TYPES_MODIFYSUBSCRIPTIONRESPONSE 295
SetPublishingModeRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_Boolean publishingEnabled;
size_t subscriptionIdsSize;
UA_UInt32 *subscriptionIds;
} UA_SetPublishingModeRequest;
#define UA_TYPES_SETPUBLISHINGMODEREQUEST 296
SetPublishingModeResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_SetPublishingModeResponse;
#define UA_TYPES_SETPUBLISHINGMODERESPONSE 297
NotificationMessage¶
typedef struct {
UA_UInt32 sequenceNumber;
UA_DateTime publishTime;
size_t notificationDataSize;
UA_ExtensionObject *notificationData;
} UA_NotificationMessage;
#define UA_TYPES_NOTIFICATIONMESSAGE 298
MonitoredItemNotification¶
typedef struct {
UA_UInt32 clientHandle;
UA_DataValue value;
} UA_MonitoredItemNotification;
#define UA_TYPES_MONITOREDITEMNOTIFICATION 299
EventFieldList¶
typedef struct {
UA_UInt32 clientHandle;
size_t eventFieldsSize;
UA_Variant *eventFields;
} UA_EventFieldList;
#define UA_TYPES_EVENTFIELDLIST 300
HistoryEventFieldList¶
typedef struct {
size_t eventFieldsSize;
UA_Variant *eventFields;
} UA_HistoryEventFieldList;
#define UA_TYPES_HISTORYEVENTFIELDLIST 301
StatusChangeNotification¶
typedef struct {
UA_StatusCode status;
UA_DiagnosticInfo diagnosticInfo;
} UA_StatusChangeNotification;
#define UA_TYPES_STATUSCHANGENOTIFICATION 302
SubscriptionAcknowledgement¶
typedef struct {
UA_UInt32 subscriptionId;
UA_UInt32 sequenceNumber;
} UA_SubscriptionAcknowledgement;
#define UA_TYPES_SUBSCRIPTIONACKNOWLEDGEMENT 303
PublishRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t subscriptionAcknowledgementsSize;
UA_SubscriptionAcknowledgement *subscriptionAcknowledgements;
} UA_PublishRequest;
#define UA_TYPES_PUBLISHREQUEST 304
PublishResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_UInt32 subscriptionId;
size_t availableSequenceNumbersSize;
UA_UInt32 *availableSequenceNumbers;
UA_Boolean moreNotifications;
UA_NotificationMessage notificationMessage;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_PublishResponse;
#define UA_TYPES_PUBLISHRESPONSE 305
RepublishRequest¶
typedef struct {
UA_RequestHeader requestHeader;
UA_UInt32 subscriptionId;
UA_UInt32 retransmitSequenceNumber;
} UA_RepublishRequest;
#define UA_TYPES_REPUBLISHREQUEST 306
RepublishResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
UA_NotificationMessage notificationMessage;
} UA_RepublishResponse;
#define UA_TYPES_REPUBLISHRESPONSE 307
TransferResult¶
typedef struct {
UA_StatusCode statusCode;
size_t availableSequenceNumbersSize;
UA_UInt32 *availableSequenceNumbers;
} UA_TransferResult;
#define UA_TYPES_TRANSFERRESULT 308
TransferSubscriptionsRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t subscriptionIdsSize;
UA_UInt32 *subscriptionIds;
UA_Boolean sendInitialValues;
} UA_TransferSubscriptionsRequest;
#define UA_TYPES_TRANSFERSUBSCRIPTIONSREQUEST 309
TransferSubscriptionsResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_TransferResult *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_TransferSubscriptionsResponse;
#define UA_TYPES_TRANSFERSUBSCRIPTIONSRESPONSE 310
DeleteSubscriptionsRequest¶
typedef struct {
UA_RequestHeader requestHeader;
size_t subscriptionIdsSize;
UA_UInt32 *subscriptionIds;
} UA_DeleteSubscriptionsRequest;
#define UA_TYPES_DELETESUBSCRIPTIONSREQUEST 311
DeleteSubscriptionsResponse¶
typedef struct {
UA_ResponseHeader responseHeader;
size_t resultsSize;
UA_StatusCode *results;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_DeleteSubscriptionsResponse;
#define UA_TYPES_DELETESUBSCRIPTIONSRESPONSE 312
BuildInfo¶
typedef struct {
UA_String productUri;
UA_String manufacturerName;
UA_String productName;
UA_String softwareVersion;
UA_String buildNumber;
UA_DateTime buildDate;
} UA_BuildInfo;
#define UA_TYPES_BUILDINFO 313
RedundancySupport¶
typedef enum {
UA_REDUNDANCYSUPPORT_NONE = 0,
UA_REDUNDANCYSUPPORT_COLD = 1,
UA_REDUNDANCYSUPPORT_WARM = 2,
UA_REDUNDANCYSUPPORT_HOT = 3,
UA_REDUNDANCYSUPPORT_TRANSPARENT = 4,
UA_REDUNDANCYSUPPORT_HOTANDMIRRORED = 5,
__UA_REDUNDANCYSUPPORT_FORCE32BIT = 0x7fffffff
} UA_RedundancySupport;
UA_STATIC_ASSERT(sizeof(UA_RedundancySupport) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_REDUNDANCYSUPPORT 314
ServerState¶
typedef enum {
UA_SERVERSTATE_RUNNING = 0,
UA_SERVERSTATE_FAILED = 1,
UA_SERVERSTATE_NOCONFIGURATION = 2,
UA_SERVERSTATE_SUSPENDED = 3,
UA_SERVERSTATE_SHUTDOWN = 4,
UA_SERVERSTATE_TEST = 5,
UA_SERVERSTATE_COMMUNICATIONFAULT = 6,
UA_SERVERSTATE_UNKNOWN = 7,
__UA_SERVERSTATE_FORCE32BIT = 0x7fffffff
} UA_ServerState;
UA_STATIC_ASSERT(sizeof(UA_ServerState) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_SERVERSTATE 315
RedundantServerDataType¶
typedef struct {
UA_String serverId;
UA_Byte serviceLevel;
UA_ServerState serverState;
} UA_RedundantServerDataType;
#define UA_TYPES_REDUNDANTSERVERDATATYPE 316
EndpointUrlListDataType¶
typedef struct {
size_t endpointUrlListSize;
UA_String *endpointUrlList;
} UA_EndpointUrlListDataType;
#define UA_TYPES_ENDPOINTURLLISTDATATYPE 317
NetworkGroupDataType¶
typedef struct {
UA_String serverUri;
size_t networkPathsSize;
UA_EndpointUrlListDataType *networkPaths;
} UA_NetworkGroupDataType;
#define UA_TYPES_NETWORKGROUPDATATYPE 318
SamplingIntervalDiagnosticsDataType¶
typedef struct {
UA_Double samplingInterval;
UA_UInt32 monitoredItemCount;
UA_UInt32 maxMonitoredItemCount;
UA_UInt32 disabledMonitoredItemCount;
} UA_SamplingIntervalDiagnosticsDataType;
#define UA_TYPES_SAMPLINGINTERVALDIAGNOSTICSDATATYPE 319
ServerDiagnosticsSummaryDataType¶
typedef struct {
UA_UInt32 serverViewCount;
UA_UInt32 currentSessionCount;
UA_UInt32 cumulatedSessionCount;
UA_UInt32 securityRejectedSessionCount;
UA_UInt32 rejectedSessionCount;
UA_UInt32 sessionTimeoutCount;
UA_UInt32 sessionAbortCount;
UA_UInt32 currentSubscriptionCount;
UA_UInt32 cumulatedSubscriptionCount;
UA_UInt32 publishingIntervalCount;
UA_UInt32 securityRejectedRequestsCount;
UA_UInt32 rejectedRequestsCount;
} UA_ServerDiagnosticsSummaryDataType;
#define UA_TYPES_SERVERDIAGNOSTICSSUMMARYDATATYPE 320
ServerStatusDataType¶
typedef struct {
UA_DateTime startTime;
UA_DateTime currentTime;
UA_ServerState state;
UA_BuildInfo buildInfo;
UA_UInt32 secondsTillShutdown;
UA_LocalizedText shutdownReason;
} UA_ServerStatusDataType;
#define UA_TYPES_SERVERSTATUSDATATYPE 321
SessionSecurityDiagnosticsDataType¶
typedef struct {
UA_NodeId sessionId;
UA_String clientUserIdOfSession;
size_t clientUserIdHistorySize;
UA_String *clientUserIdHistory;
UA_String authenticationMechanism;
UA_String encoding;
UA_String transportProtocol;
UA_MessageSecurityMode securityMode;
UA_String securityPolicyUri;
UA_ByteString clientCertificate;
} UA_SessionSecurityDiagnosticsDataType;
#define UA_TYPES_SESSIONSECURITYDIAGNOSTICSDATATYPE 322
ServiceCounterDataType¶
typedef struct {
UA_UInt32 totalCount;
UA_UInt32 errorCount;
} UA_ServiceCounterDataType;
#define UA_TYPES_SERVICECOUNTERDATATYPE 323
StatusResult¶
typedef struct {
UA_StatusCode statusCode;
UA_DiagnosticInfo diagnosticInfo;
} UA_StatusResult;
#define UA_TYPES_STATUSRESULT 324
SubscriptionDiagnosticsDataType¶
typedef struct {
UA_NodeId sessionId;
UA_UInt32 subscriptionId;
UA_Byte priority;
UA_Double publishingInterval;
UA_UInt32 maxKeepAliveCount;
UA_UInt32 maxLifetimeCount;
UA_UInt32 maxNotificationsPerPublish;
UA_Boolean publishingEnabled;
UA_UInt32 modifyCount;
UA_UInt32 enableCount;
UA_UInt32 disableCount;
UA_UInt32 republishRequestCount;
UA_UInt32 republishMessageRequestCount;
UA_UInt32 republishMessageCount;
UA_UInt32 transferRequestCount;
UA_UInt32 transferredToAltClientCount;
UA_UInt32 transferredToSameClientCount;
UA_UInt32 publishRequestCount;
UA_UInt32 dataChangeNotificationsCount;
UA_UInt32 eventNotificationsCount;
UA_UInt32 notificationsCount;
UA_UInt32 latePublishRequestCount;
UA_UInt32 currentKeepAliveCount;
UA_UInt32 currentLifetimeCount;
UA_UInt32 unacknowledgedMessageCount;
UA_UInt32 discardedMessageCount;
UA_UInt32 monitoredItemCount;
UA_UInt32 disabledMonitoredItemCount;
UA_UInt32 monitoringQueueOverflowCount;
UA_UInt32 nextSequenceNumber;
UA_UInt32 eventQueueOverFlowCount;
} UA_SubscriptionDiagnosticsDataType;
#define UA_TYPES_SUBSCRIPTIONDIAGNOSTICSDATATYPE 325
ModelChangeStructureVerbMask¶
typedef enum {
UA_MODELCHANGESTRUCTUREVERBMASK_NODEADDED = 1,
UA_MODELCHANGESTRUCTUREVERBMASK_NODEDELETED = 2,
UA_MODELCHANGESTRUCTUREVERBMASK_REFERENCEADDED = 4,
UA_MODELCHANGESTRUCTUREVERBMASK_REFERENCEDELETED = 8,
UA_MODELCHANGESTRUCTUREVERBMASK_DATATYPECHANGED = 16,
__UA_MODELCHANGESTRUCTUREVERBMASK_FORCE32BIT = 0x7fffffff
} UA_ModelChangeStructureVerbMask;
UA_STATIC_ASSERT(sizeof(UA_ModelChangeStructureVerbMask) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_MODELCHANGESTRUCTUREVERBMASK 326
ModelChangeStructureDataType¶
typedef struct {
UA_NodeId affected;
UA_NodeId affectedType;
UA_Byte verb;
} UA_ModelChangeStructureDataType;
#define UA_TYPES_MODELCHANGESTRUCTUREDATATYPE 327
SemanticChangeStructureDataType¶
typedef struct {
UA_NodeId affected;
UA_NodeId affectedType;
} UA_SemanticChangeStructureDataType;
#define UA_TYPES_SEMANTICCHANGESTRUCTUREDATATYPE 328
Range¶
typedef struct {
UA_Double low;
UA_Double high;
} UA_Range;
#define UA_TYPES_RANGE 329
EUInformation¶
typedef struct {
UA_String namespaceUri;
UA_Int32 unitId;
UA_LocalizedText displayName;
UA_LocalizedText description;
} UA_EUInformation;
#define UA_TYPES_EUINFORMATION 330
AxisScaleEnumeration¶
typedef enum {
UA_AXISSCALEENUMERATION_LINEAR = 0,
UA_AXISSCALEENUMERATION_LOG = 1,
UA_AXISSCALEENUMERATION_LN = 2,
__UA_AXISSCALEENUMERATION_FORCE32BIT = 0x7fffffff
} UA_AxisScaleEnumeration;
UA_STATIC_ASSERT(sizeof(UA_AxisScaleEnumeration) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_AXISSCALEENUMERATION 331
ComplexNumberType¶
typedef struct {
UA_Float real;
UA_Float imaginary;
} UA_ComplexNumberType;
#define UA_TYPES_COMPLEXNUMBERTYPE 332
DoubleComplexNumberType¶
typedef struct {
UA_Double real;
UA_Double imaginary;
} UA_DoubleComplexNumberType;
#define UA_TYPES_DOUBLECOMPLEXNUMBERTYPE 333
AxisInformation¶
typedef struct {
UA_EUInformation engineeringUnits;
UA_Range eURange;
UA_LocalizedText title;
UA_AxisScaleEnumeration axisScaleType;
size_t axisStepsSize;
UA_Double *axisSteps;
} UA_AxisInformation;
#define UA_TYPES_AXISINFORMATION 334
XVType¶
typedef struct {
UA_Double x;
UA_Float value;
} UA_XVType;
#define UA_TYPES_XVTYPE 335
ProgramDiagnosticDataType¶
typedef struct {
UA_NodeId createSessionId;
UA_String createClientName;
UA_DateTime invocationCreationTime;
UA_DateTime lastTransitionTime;
UA_String lastMethodCall;
UA_NodeId lastMethodSessionId;
size_t lastMethodInputArgumentsSize;
UA_Argument *lastMethodInputArguments;
size_t lastMethodOutputArgumentsSize;
UA_Argument *lastMethodOutputArguments;
UA_DateTime lastMethodCallTime;
UA_StatusResult lastMethodReturnStatus;
} UA_ProgramDiagnosticDataType;
#define UA_TYPES_PROGRAMDIAGNOSTICDATATYPE 336
ProgramDiagnostic2DataType¶
typedef struct {
UA_NodeId createSessionId;
UA_String createClientName;
UA_DateTime invocationCreationTime;
UA_DateTime lastTransitionTime;
UA_String lastMethodCall;
UA_NodeId lastMethodSessionId;
size_t lastMethodInputArgumentsSize;
UA_Argument *lastMethodInputArguments;
size_t lastMethodOutputArgumentsSize;
UA_Argument *lastMethodOutputArguments;
size_t lastMethodInputValuesSize;
UA_Variant *lastMethodInputValues;
size_t lastMethodOutputValuesSize;
UA_Variant *lastMethodOutputValues;
UA_DateTime lastMethodCallTime;
UA_StatusCode lastMethodReturnStatus;
} UA_ProgramDiagnostic2DataType;
#define UA_TYPES_PROGRAMDIAGNOSTIC2DATATYPE 337
Annotation¶
typedef struct {
UA_String message;
UA_String userName;
UA_DateTime annotationTime;
} UA_Annotation;
#define UA_TYPES_ANNOTATION 338
ExceptionDeviationFormat¶
typedef enum {
UA_EXCEPTIONDEVIATIONFORMAT_ABSOLUTEVALUE = 0,
UA_EXCEPTIONDEVIATIONFORMAT_PERCENTOFVALUE = 1,
UA_EXCEPTIONDEVIATIONFORMAT_PERCENTOFRANGE = 2,
UA_EXCEPTIONDEVIATIONFORMAT_PERCENTOFEURANGE = 3,
UA_EXCEPTIONDEVIATIONFORMAT_UNKNOWN = 4,
__UA_EXCEPTIONDEVIATIONFORMAT_FORCE32BIT = 0x7fffffff
} UA_ExceptionDeviationFormat;
UA_STATIC_ASSERT(sizeof(UA_ExceptionDeviationFormat) == sizeof(UA_Int32), enum_must_be_32bit);
#define UA_TYPES_EXCEPTIONDEVIATIONFORMAT 339
EndpointType¶
typedef struct {
UA_String endpointUrl;
UA_MessageSecurityMode securityMode;
UA_String securityPolicyUri;
UA_String transportProfileUri;
} UA_EndpointType;
#define UA_TYPES_ENDPOINTTYPE 340
StructureDescription¶
typedef struct {
UA_NodeId dataTypeId;
UA_QualifiedName name;
UA_StructureDefinition structureDefinition;
} UA_StructureDescription;
#define UA_TYPES_STRUCTUREDESCRIPTION 341
FieldMetaData¶
typedef struct {
UA_String name;
UA_LocalizedText description;
UA_DataSetFieldFlags fieldFlags;
UA_Byte builtInType;
UA_NodeId dataType;
UA_Int32 valueRank;
size_t arrayDimensionsSize;
UA_UInt32 *arrayDimensions;
UA_UInt32 maxStringLength;
UA_Guid dataSetFieldId;
size_t propertiesSize;
UA_KeyValuePair *properties;
} UA_FieldMetaData;
#define UA_TYPES_FIELDMETADATA 342
PublishedEventsDataType¶
typedef struct {
UA_NodeId eventNotifier;
size_t selectedFieldsSize;
UA_SimpleAttributeOperand *selectedFields;
UA_ContentFilter filter;
} UA_PublishedEventsDataType;
#define UA_TYPES_PUBLISHEDEVENTSDATATYPE 343
PubSubGroupDataType¶
typedef struct {
UA_String name;
UA_Boolean enabled;
UA_MessageSecurityMode securityMode;
UA_String securityGroupId;
size_t securityKeyServicesSize;
UA_EndpointDescription *securityKeyServices;
UA_UInt32 maxNetworkMessageSize;
size_t groupPropertiesSize;
UA_KeyValuePair *groupProperties;
} UA_PubSubGroupDataType;
#define UA_TYPES_PUBSUBGROUPDATATYPE 344
WriterGroupDataType¶
typedef struct {
UA_String name;
UA_Boolean enabled;
UA_MessageSecurityMode securityMode;
UA_String securityGroupId;
size_t securityKeyServicesSize;
UA_EndpointDescription *securityKeyServices;
UA_UInt32 maxNetworkMessageSize;
size_t groupPropertiesSize;
UA_KeyValuePair *groupProperties;
UA_UInt16 writerGroupId;
UA_Double publishingInterval;
UA_Double keepAliveTime;
UA_Byte priority;
size_t localeIdsSize;
UA_String *localeIds;
UA_String headerLayoutUri;
UA_ExtensionObject transportSettings;
UA_ExtensionObject messageSettings;
size_t dataSetWritersSize;
UA_DataSetWriterDataType *dataSetWriters;
} UA_WriterGroupDataType;
#define UA_TYPES_WRITERGROUPDATATYPE 345
FieldTargetDataType¶
typedef struct {
UA_Guid dataSetFieldId;
UA_String receiverIndexRange;
UA_NodeId targetNodeId;
UA_UInt32 attributeId;
UA_String writeIndexRange;
UA_OverrideValueHandling overrideValueHandling;
UA_Variant overrideValue;
} UA_FieldTargetDataType;
#define UA_TYPES_FIELDTARGETDATATYPE 346
SubscribedDataSetMirrorDataType¶
typedef struct {
UA_String parentNodeName;
size_t rolePermissionsSize;
UA_RolePermissionType *rolePermissions;
} UA_SubscribedDataSetMirrorDataType;
#define UA_TYPES_SUBSCRIBEDDATASETMIRRORDATATYPE 347
EnumDefinition¶
typedef struct {
size_t fieldsSize;
UA_EnumField *fields;
} UA_EnumDefinition;
#define UA_TYPES_ENUMDEFINITION 348
ReadEventDetails¶
typedef struct {
UA_UInt32 numValuesPerNode;
UA_DateTime startTime;
UA_DateTime endTime;
UA_EventFilter filter;
} UA_ReadEventDetails;
#define UA_TYPES_READEVENTDETAILS 349
ReadProcessedDetails¶
typedef struct {
UA_DateTime startTime;
UA_DateTime endTime;
UA_Double processingInterval;
size_t aggregateTypeSize;
UA_NodeId *aggregateType;
UA_AggregateConfiguration aggregateConfiguration;
} UA_ReadProcessedDetails;
#define UA_TYPES_READPROCESSEDDETAILS 350
ModificationInfo¶
typedef struct {
UA_DateTime modificationTime;
UA_HistoryUpdateType updateType;
UA_String userName;
} UA_ModificationInfo;
#define UA_TYPES_MODIFICATIONINFO 351
HistoryModifiedData¶
typedef struct {
size_t dataValuesSize;
UA_DataValue *dataValues;
size_t modificationInfosSize;
UA_ModificationInfo *modificationInfos;
} UA_HistoryModifiedData;
#define UA_TYPES_HISTORYMODIFIEDDATA 352
HistoryEvent¶
typedef struct {
size_t eventsSize;
UA_HistoryEventFieldList *events;
} UA_HistoryEvent;
#define UA_TYPES_HISTORYEVENT 353
UpdateEventDetails¶
typedef struct {
UA_NodeId nodeId;
UA_PerformUpdateType performInsertReplace;
UA_EventFilter filter;
size_t eventDataSize;
UA_HistoryEventFieldList *eventData;
} UA_UpdateEventDetails;
#define UA_TYPES_UPDATEEVENTDETAILS 354
DataChangeNotification¶
typedef struct {
size_t monitoredItemsSize;
UA_MonitoredItemNotification *monitoredItems;
size_t diagnosticInfosSize;
UA_DiagnosticInfo *diagnosticInfos;
} UA_DataChangeNotification;
#define UA_TYPES_DATACHANGENOTIFICATION 355
EventNotificationList¶
typedef struct {
size_t eventsSize;
UA_EventFieldList *events;
} UA_EventNotificationList;
#define UA_TYPES_EVENTNOTIFICATIONLIST 356
SessionDiagnosticsDataType¶
typedef struct {
UA_NodeId sessionId;
UA_String sessionName;
UA_ApplicationDescription clientDescription;
UA_String serverUri;
UA_String endpointUrl;
size_t localeIdsSize;
UA_String *localeIds;
UA_Double actualSessionTimeout;
UA_UInt32 maxResponseMessageSize;
UA_DateTime clientConnectionTime;
UA_DateTime clientLastContactTime;
UA_UInt32 currentSubscriptionsCount;
UA_UInt32 currentMonitoredItemsCount;
UA_UInt32 currentPublishRequestsInQueue;
UA_ServiceCounterDataType totalRequestCount;
UA_UInt32 unauthorizedRequestCount;
UA_ServiceCounterDataType readCount;
UA_ServiceCounterDataType historyReadCount;
UA_ServiceCounterDataType writeCount;
UA_ServiceCounterDataType historyUpdateCount;
UA_ServiceCounterDataType callCount;
UA_ServiceCounterDataType createMonitoredItemsCount;
UA_ServiceCounterDataType modifyMonitoredItemsCount;
UA_ServiceCounterDataType setMonitoringModeCount;
UA_ServiceCounterDataType setTriggeringCount;
UA_ServiceCounterDataType deleteMonitoredItemsCount;
UA_ServiceCounterDataType createSubscriptionCount;
UA_ServiceCounterDataType modifySubscriptionCount;
UA_ServiceCounterDataType setPublishingModeCount;
UA_ServiceCounterDataType publishCount;
UA_ServiceCounterDataType republishCount;
UA_ServiceCounterDataType transferSubscriptionsCount;
UA_ServiceCounterDataType deleteSubscriptionsCount;
UA_ServiceCounterDataType addNodesCount;
UA_ServiceCounterDataType addReferencesCount;
UA_ServiceCounterDataType deleteNodesCount;
UA_ServiceCounterDataType deleteReferencesCount;
UA_ServiceCounterDataType browseCount;
UA_ServiceCounterDataType browseNextCount;
UA_ServiceCounterDataType translateBrowsePathsToNodeIdsCount;
UA_ServiceCounterDataType queryFirstCount;
UA_ServiceCounterDataType queryNextCount;
UA_ServiceCounterDataType registerNodesCount;
UA_ServiceCounterDataType unregisterNodesCount;
} UA_SessionDiagnosticsDataType;
#define UA_TYPES_SESSIONDIAGNOSTICSDATATYPE 357
EnumDescription¶
typedef struct {
UA_NodeId dataTypeId;
UA_QualifiedName name;
UA_EnumDefinition enumDefinition;
UA_Byte builtInType;
} UA_EnumDescription;
#define UA_TYPES_ENUMDESCRIPTION 358
UABinaryFileDataType¶
typedef struct {
size_t namespacesSize;
UA_String *namespaces;
size_t structureDataTypesSize;
UA_StructureDescription *structureDataTypes;
size_t enumDataTypesSize;
UA_EnumDescription *enumDataTypes;
size_t simpleDataTypesSize;
UA_SimpleTypeDescription *simpleDataTypes;
UA_String schemaLocation;
size_t fileHeaderSize;
UA_KeyValuePair *fileHeader;
UA_Variant body;
} UA_UABinaryFileDataType;
#define UA_TYPES_UABINARYFILEDATATYPE 359
DataSetMetaDataType¶
typedef struct {
size_t namespacesSize;
UA_String *namespaces;
size_t structureDataTypesSize;
UA_StructureDescription *structureDataTypes;
size_t enumDataTypesSize;
UA_EnumDescription *enumDataTypes;
size_t simpleDataTypesSize;
UA_SimpleTypeDescription *simpleDataTypes;
UA_String name;
UA_LocalizedText description;
size_t fieldsSize;
UA_FieldMetaData *fields;
UA_Guid dataSetClassId;
UA_ConfigurationVersionDataType configurationVersion;
} UA_DataSetMetaDataType;
#define UA_TYPES_DATASETMETADATATYPE 360
PublishedDataSetDataType¶
typedef struct {
UA_String name;
size_t dataSetFolderSize;
UA_String *dataSetFolder;
UA_DataSetMetaDataType dataSetMetaData;
size_t extensionFieldsSize;
UA_KeyValuePair *extensionFields;
UA_ExtensionObject dataSetSource;
} UA_PublishedDataSetDataType;
#define UA_TYPES_PUBLISHEDDATASETDATATYPE 361
DataSetReaderDataType¶
typedef struct {
UA_String name;
UA_Boolean enabled;
UA_Variant publisherId;
UA_UInt16 writerGroupId;
UA_UInt16 dataSetWriterId;
UA_DataSetMetaDataType dataSetMetaData;
UA_DataSetFieldContentMask dataSetFieldContentMask;
UA_Double messageReceiveTimeout;
UA_UInt32 keyFrameCount;
UA_String headerLayoutUri;
UA_MessageSecurityMode securityMode;
UA_String securityGroupId;
size_t securityKeyServicesSize;
UA_EndpointDescription *securityKeyServices;
size_t dataSetReaderPropertiesSize;
UA_KeyValuePair *dataSetReaderProperties;
UA_ExtensionObject transportSettings;
UA_ExtensionObject messageSettings;
UA_ExtensionObject subscribedDataSet;
} UA_DataSetReaderDataType;
#define UA_TYPES_DATASETREADERDATATYPE 362
TargetVariablesDataType¶
typedef struct {
size_t targetVariablesSize;
UA_FieldTargetDataType *targetVariables;
} UA_TargetVariablesDataType;
#define UA_TYPES_TARGETVARIABLESDATATYPE 363
DataTypeSchemaHeader¶
typedef struct {
size_t namespacesSize;
UA_String *namespaces;
size_t structureDataTypesSize;
UA_StructureDescription *structureDataTypes;
size_t enumDataTypesSize;
UA_EnumDescription *enumDataTypes;
size_t simpleDataTypesSize;
UA_SimpleTypeDescription *simpleDataTypes;
} UA_DataTypeSchemaHeader;
#define UA_TYPES_DATATYPESCHEMAHEADER 364
ReaderGroupDataType¶
typedef struct {
UA_String name;
UA_Boolean enabled;
UA_MessageSecurityMode securityMode;
UA_String securityGroupId;
size_t securityKeyServicesSize;
UA_EndpointDescription *securityKeyServices;
UA_UInt32 maxNetworkMessageSize;
size_t groupPropertiesSize;
UA_KeyValuePair *groupProperties;
UA_ExtensionObject transportSettings;
UA_ExtensionObject messageSettings;
size_t dataSetReadersSize;
UA_DataSetReaderDataType *dataSetReaders;
} UA_ReaderGroupDataType;
#define UA_TYPES_READERGROUPDATATYPE 365
PubSubConnectionDataType¶
typedef struct {
UA_String name;
UA_Boolean enabled;
UA_Variant publisherId;
UA_String transportProfileUri;
UA_ExtensionObject address;
size_t connectionPropertiesSize;
UA_KeyValuePair *connectionProperties;
UA_ExtensionObject transportSettings;
size_t writerGroupsSize;
UA_WriterGroupDataType *writerGroups;
size_t readerGroupsSize;
UA_ReaderGroupDataType *readerGroups;
} UA_PubSubConnectionDataType;
#define UA_TYPES_PUBSUBCONNECTIONDATATYPE 366
PubSubConfigurationDataType¶
typedef struct {
size_t publishedDataSetsSize;
UA_PublishedDataSetDataType *publishedDataSets;
size_t connectionsSize;
UA_PubSubConnectionDataType *connections;
UA_Boolean enabled;
} UA_PubSubConfigurationDataType;
#define UA_TYPES_PUBSUBCONFIGURATIONDATATYPE 367