ANSI C Based OPC UA Client/Server SDK
1.8.1.381
|
Data Structures | |
struct | UaServer_AddressSpace |
Holds all OpcUa_BaseNodes owned by a provider. More... | |
Functions | |
OpcUa_StatusCode | UaServer_AddNode (UaServer_AddressSpace *a_pAddressSpace, OpcUa_BaseNode *a_pNode) |
Add a new node to an address space table. More... | |
OpcUa_StatusCode | UaServer_RemoveNode (UaServer_AddressSpace *a_pAddressSpace, OpcUa_BaseNode *a_pNode) |
Remove a node from an address space table. More... | |
OpcUa_StatusCode | UaServer_RemoveNodeById (OpcUa_NodeId *a_pNodeId) |
Remove a node from an address space table by the given NodeId. More... | |
OpcUa_StatusCode | UaServer_AddressSpace_Get (OpcUa_UInt16 a_NamespaceIndex, UaServer_AddressSpace **a_ppAddressSpace) |
Returns the addressspace by the given NamespaceIndex. More... | |
OpcUa_Boolean | UaServer_IsSubtypeOf (OpcUa_NodeId *a_pType, OpcUa_NodeId *a_pBaseType) |
Is a_pTypeId a subtype of a_pBaseTypeId? More... | |
OpcUa_StatusCode | UaServer_CreateNode (UaServer_AddressSpace *a_pAddressSpace, OpcUa_BaseNode **a_ppNewNode, OpcUa_Void *a_pOwner, OpcUa_NodeId *a_pNodeId, OpcUa_NodeClass a_eNodeClass, OpcUa_NodeId *a_pReferenceNodeId, OpcUa_NodeId *a_pTypeNodeId, const OpcUa_CharA *a_sBrowseName, const OpcUa_CharA *a_sDisplayName, const OpcUa_CharA *a_sDescription) |
Creates a new OPC UA Node in the address space. More... | |
OpcUa_StatusCode | UaServer_CreateFolder (UaServer_AddressSpace *a_pAddressSpace, OpcUa_Folder **a_ppNewFolder, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a folder node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateObject (UaServer_AddressSpace *a_pAddressSpace, OpcUa_Object **a_ppNewObject, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a object node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateObjectType (UaServer_AddressSpace *a_pAddressSpace, OpcUa_ObjectType **a_ppNewObjectType, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a object node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateProperty (UaServer_AddressSpace *a_pAddressSpace, OpcUa_Property **a_ppNewProperty, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a property node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateDataVariable (UaServer_AddressSpace *a_pAddressSpace, OpcUa_DataVariable **a_ppNewVariable, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a datavariable node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateVariableType (UaServer_AddressSpace *a_pAddressSpace, OpcUa_VariableType **a_ppNewVariableType, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a VariableType node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateReferenceType (UaServer_AddressSpace *a_pAddressSpace, OpcUa_ReferenceType **a_ppNewType, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a reference type node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateDataType (UaServer_AddressSpace *a_pAddressSpace, OpcUa_DataType **a_ppNewDataType, OpcUa_Void *a_pOwner, OpcUa_UInt32 a_iId, OpcUa_UInt16 a_iNamespaceIndex, const OpcUa_CharA *a_sName) |
Creates a DataType node with a numeric NodeId. More... | |
OpcUa_StatusCode | UaServer_GetNode (UaServer_AddressSpace *pAddressSpace, OpcUa_NodeId *pNodeId, OpcUa_BaseNode **ppNode) |
Returns a node identified by a NodeId. More... | |
OpcUa_BaseNode * | UaServer_GetNodeById (OpcUa_NodeId *a_pNodeId) |
Get the Node by the given NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateDataVariableS (UaServer_AddressSpace *a_pAddressSpace, OpcUa_DataVariable **a_ppNewVariable, OpcUa_Void *a_pOwner, const OpcUa_CharA *a_sId, OpcUa_UInt16 a_iNSIdx, const OpcUa_CharA *a_sName) |
Creates a datavariable node with a string NodeId. More... | |
OpcUa_StatusCode | UaServer_CreatePropertyS (UaServer_AddressSpace *a_pAddressSpace, OpcUa_Property **a_ppNewProperty, OpcUa_Void *a_pOwner, const OpcUa_CharA *a_sId, OpcUa_UInt16 a_iNSIdx, const OpcUa_CharA *a_sName) |
Creates a property node with a string NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateFolderS (UaServer_AddressSpace *a_pAddressSpace, OpcUa_Folder **a_ppNewFolder, OpcUa_Void *a_pOwner, const OpcUa_CharA *a_sId, OpcUa_UInt16 a_iNSIdx, const OpcUa_CharA *a_sName) |
Creates a folder node with a string NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateObjectS (UaServer_AddressSpace *a_pAddressSpace, OpcUa_Object **a_ppNewObject, OpcUa_Void *a_pOwner, const OpcUa_CharA *a_sId, OpcUa_UInt16 a_iNSIdx, const OpcUa_CharA *a_sName) |
Creates a object node with a string NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateDataTypeS (UaServer_AddressSpace *a_pAddressSpace, OpcUa_DataType **a_ppNewDataType, OpcUa_Void *a_pOwner, const OpcUa_CharA *a_sId, OpcUa_UInt16 a_iNSIdx, const OpcUa_CharA *a_sName) |
Creates a DataType node with a string NodeId. More... | |
OpcUa_StatusCode | UaServer_CreateMethodS (UaServer_AddressSpace *a_pAddressSpace, OpcUa_Method **a_ppNewMethod, OpcUa_Void *a_pOwner, const OpcUa_CharA *a_sId, OpcUa_UInt16 a_iNSIdx, const OpcUa_CharA *a_sName) |
Creates a Method node with a string NodeId. More... | |
OpcUa_StatusCode UaServer_AddNode | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_BaseNode * | a_pNode | ||
) |
Add a new node to an address space table.
a_pAddressSpace | The.handle to the address space. |
a_pNode | The node to add. |
OpcUa_StatusCode UaServer_AddressSpace_Get | ( | OpcUa_UInt16 | a_NamespaceIndex, |
UaServer_AddressSpace ** | a_ppAddressSpace | ||
) |
Returns the addressspace by the given NamespaceIndex.
a_NamespaceIndex | NamespaceIndex to look up. |
a_ppAddressSpace | Returns the handle to the address space. |
OpcUa_StatusCode UaServer_CreateDataType | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_DataType ** | a_ppNewDataType, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a DataType node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewDataType | a pointer to the new created DataType. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the actual DataType. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the created DataType. |
OpcUa_StatusCode UaServer_CreateDataTypeS | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_DataType ** | a_ppNewDataType, | ||
OpcUa_Void * | a_pOwner, | ||
const OpcUa_CharA * | a_sId, | ||
OpcUa_UInt16 | a_iNSIdx, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a DataType node with a string NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewDataType | a pointer to the new created DataType. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_sId | the Id of the new DataType. |
[in] | a_iNSIdx | the actual NamespaceIndex. |
[in] | a_sName | the name of the created DataType. |
OpcUa_StatusCode UaServer_CreateDataVariable | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_DataVariable ** | a_ppNewVariable, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a datavariable node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewVariable | a pointer to the new created Variable. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the actual Variable. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the created Variable. |
OpcUa_StatusCode UaServer_CreateDataVariableS | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_DataVariable ** | a_ppNewVariable, | ||
OpcUa_Void * | a_pOwner, | ||
const OpcUa_CharA * | a_sId, | ||
OpcUa_UInt16 | a_iNSIdx, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a datavariable node with a string NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewVariable | a pointer to the new created VariableS. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_sId | the Id of the new VariableS |
[in] | a_iNSIdx | the actual NamespaceIndex. |
[in] | a_sName | the name of the new VariableS. |
OpcUa_StatusCode UaServer_CreateFolder | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_Folder ** | a_ppNewFolder, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a folder node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewFolder | a pointer to the new created folder. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the Folder. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the created folder. |
OpcUa_StatusCode UaServer_CreateFolderS | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_Folder ** | a_ppNewFolder, | ||
OpcUa_Void * | a_pOwner, | ||
const OpcUa_CharA * | a_sId, | ||
OpcUa_UInt16 | a_iNSIdx, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a folder node with a string NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewFolder | a pointer to the new FolderS. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_sId | the Id of the created FolderS. |
[in] | a_iNSIdx | the actual NamespaceIndex. |
[in] | a_sName | the name of the new FolderS. |
OpcUa_StatusCode UaServer_CreateMethodS | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_Method ** | a_ppNewMethod, | ||
OpcUa_Void * | a_pOwner, | ||
const OpcUa_CharA * | a_sId, | ||
OpcUa_UInt16 | a_iNSIdx, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a Method node with a string NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewMethod | a pointer to the new created Method. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_sId | the Id of the new DataType. |
[in] | a_iNSIdx | the actual NamespaceIndex. |
[in] | a_sName | the name of the created DataType. |
OpcUa_StatusCode UaServer_CreateNode | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_BaseNode ** | a_ppNewNode, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_NodeId * | a_pNodeId, | ||
OpcUa_NodeClass | a_eNodeClass, | ||
OpcUa_NodeId * | a_pReferenceNodeId, | ||
OpcUa_NodeId * | a_pTypeNodeId, | ||
const OpcUa_CharA * | a_sBrowseName, | ||
const OpcUa_CharA * | a_sDisplayName, | ||
const OpcUa_CharA * | a_sDescription | ||
) |
Creates a new OPC UA Node in the address space.
a_pAddressSpace | Handle to the address space. |
a_ppNewNode | Returns the pointer to the newly created node. |
a_pOwner | Pointer to the node that owns the new node. |
a_pNodeId | Pointer to NodeId of the new node. |
a_eNodeClass | Specificies the nodeclass of the new node. |
a_pReferenceNodeId | Specifies the reference type that should be created between owner and the new node. |
a_pTypeNodeId | Specififies the typeId of the new node. This creates a HasTypeDefinition reference from the new node to the type node. |
a_sBrowseName | The browse name of the new node. |
a_sDisplayName | The display name of the new node. |
a_sDescription | The description of the new node. |
OpcUa_StatusCode UaServer_CreateObject | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_Object ** | a_ppNewObject, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a object node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewObject | a pointer to the created Object. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the Object. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the new Object. |
OpcUa_StatusCode UaServer_CreateObjectS | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_Object ** | a_ppNewObject, | ||
OpcUa_Void * | a_pOwner, | ||
const OpcUa_CharA * | a_sId, | ||
OpcUa_UInt16 | a_iNSIdx, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a object node with a string NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewObject | a pointer to the new ObjectS. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_sId | the Id of the new ObjectS. |
[in] | a_iNSIdx | the actual NamespaceIndex. |
[in] | a_sName | the name of the new ObjectS. |
OpcUa_StatusCode UaServer_CreateObjectType | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_ObjectType ** | a_ppNewObjectType, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a object node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewObjectType | a pointer to the created Object. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the Object. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the new Object. |
OpcUa_StatusCode UaServer_CreateProperty | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_Property ** | a_ppNewProperty, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a property node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewProperty | the new Property to create. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the Property. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the Property. |
OpcUa_StatusCode UaServer_CreatePropertyS | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_Property ** | a_ppNewProperty, | ||
OpcUa_Void * | a_pOwner, | ||
const OpcUa_CharA * | a_sId, | ||
OpcUa_UInt16 | a_iNSIdx, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a property node with a string NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewProperty | a pointer to the created PropertyS. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_sId | the Id of the created PropertyS. |
[in] | a_iNSIdx | the actual NamespaceIndex. |
[in] | a_sName | the name of the new PropertyS. |
OpcUa_StatusCode UaServer_CreateReferenceType | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_ReferenceType ** | a_ppNewType, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a reference type node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewType | a pointer to the new created Reference. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the actual Reference. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the created Reference. |
OpcUa_StatusCode UaServer_CreateVariableType | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_VariableType ** | a_ppNewVariableType, | ||
OpcUa_Void * | a_pOwner, | ||
OpcUa_UInt32 | a_iId, | ||
OpcUa_UInt16 | a_iNamespaceIndex, | ||
const OpcUa_CharA * | a_sName | ||
) |
Creates a VariableType node with a numeric NodeId.
[in] | a_pAddressSpace | the address space to use. |
[out] | a_ppNewVariableType | a pointer to the new created Variable. |
[in] | a_pOwner | a pointer to the actual owner. |
[in] | a_iId | the Id of the actual Variable. |
[in] | a_iNamespaceIndex | the actual NamespaceIndex. |
[in] | a_sName | the name of the created Variable. |
OpcUa_StatusCode UaServer_GetNode | ( | UaServer_AddressSpace * | pAddressSpace, |
OpcUa_NodeId * | pNodeId, | ||
OpcUa_BaseNode ** | ppNode | ||
) |
Returns a node identified by a NodeId.
[in] | pAddressSpace | the address space to use. |
[in] | pNodeId | the Id of the Node. |
[out] | ppNode | a pointer to the actual Node. |
OpcUa_BaseNode * UaServer_GetNodeById | ( | OpcUa_NodeId * | a_pNodeId | ) |
Get the Node by the given NodeId.
a_pNodeId | the Nodeid |
OpcUa_Boolean UaServer_IsSubtypeOf | ( | OpcUa_NodeId * | a_pType, |
OpcUa_NodeId * | a_pBaseType | ||
) |
Is a_pTypeId a subtype of a_pBaseTypeId?
a_pType | The type to check. |
a_pBaseType | The base type. |
OpcUa_StatusCode UaServer_RemoveNode | ( | UaServer_AddressSpace * | a_pAddressSpace, |
OpcUa_BaseNode * | a_pNode | ||
) |
Remove a node from an address space table.
a_pAddressSpace | pointer to the address space. |
a_pNode | The node to remove. |
OpcUa_StatusCode UaServer_RemoveNodeById | ( | OpcUa_NodeId * | a_pNodeId | ) |
Remove a node from an address space table by the given NodeId.
a_pNodeId | the Id of the Node to remvoe |