Server
This page lists docstrings relevant to the server API.
Adding different types of nodes:
Open62541.JUA_Server_addNode
— FunctionJUA_Server_addNode(server::JUA_Server, requestedNewNodeId::JUA_NodeId,
parentNodeId::JUA_NodeId, referenceTypeId::JUA_NodeId, browseName::JUA_QualifiedName,
attributes::Union{JUA_VariableAttributes, JUA_VariableTypeAttributes, JUA_ObjectAttributes},
outNewNodeId::JUA_NodeId, nodeContext::JUA_NodeId, typeDefinition::JUA_NodeId)::UA_StatusCode
uses the server API to add a Variable, VariableType, or Object node to the server
.
See JUA_VariableAttributes
, JUA_VariableTypeAttributes
, and JUA_ObjectAttributes
on how to define valid attributes.
JUA_Server_addNode(server::JUA_Server, requestedNewNodeId::JUA_NodeId,
parentNodeId::JUA_NodeId, referenceTypeId::JUA_NodeId, browseName::JUA_QualifiedName,
attributes::Union{JUA_ObjectTypeAttributes, JUA_ReferenceTypeAttributes, JUA_DataTypeAttributes, JUA_ViewAttributes},
outNewNodeId::JUA_NodeId, nodeContext::JUA_NodeId)::UA_StatusCode
uses the server API to add a ObjectType, ReferenceType, DataType, or View node to the server
.
See JUA_ObjectTypeAttributes
, JUA_ReferenceTypeAttributes
, JUA_DataTypeAttributes
, and JUA_ViewAttributes
on how to define valid attributes.
JUA_Server_addNode(server::JUA_Server, requestedNewNodeId::JUA_NodeId,
parentNodeId::JUA_NodeId, referenceTypeId::JUA_NodeId, browseName::JUA_QualifiedName,
attributes::JUA_MethodAttributes, method::Union{Function, Ptr{Cvoid}, Base.CFunction},
inputArguments::Union{AbstractArray{JUA_Argument}, JUA_Argument},
outputArguments::Union{AbstractArray{JUA_Argument}, JUA_Argument},
outNewNodeId::JUA_NodeId, nodeContext::JUA_NodeId)::UA_StatusCode
uses the server API to add a Method node to the server
.
The method
supplied can either be a Julia function that fulfills the requirements for UA_MethodCallback_wrap
or UA_MethodCallback_generate
.
See also:
JUA_MethodAttributes
for how to define valid attributes.JUA_MethodCallback_generate
for requirements onmethod
.JUA_MethodCallback_wrap
for requirements onmethod
.
Open62541.UA_Server_addVariableNode
— FunctionUA_Server_addVariableNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, typedefinition::Ptr{UA_NodeId},
attr::Ptr{UA_VariableAttributes}, nodeContext::Ptr{UA_NodeId},
outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a variable node to the server
.
See UA_VariableAttributes_generate
on how to define valid attributes.
Open62541.UA_Server_addObjectNode
— FunctionUA_Server_addObjectNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, typedefinition::Ptr{UA_NodeId},
attr::Ptr{UA_ObjectAttributes}, nodeContext::Ptr{UA_NodeId},
outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a object node to the server
.
See UA_ObjectAttributes_generate
on how to define valid attributes.
Open62541.UA_Server_addVariableTypeNode
— FunctionUA_Server_addVariableTypeNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, typedefinition::Ptr{UA_NodeId},
attr::Ptr{UA_VariableTypeAttributes}, nodeContext::Ptr{UA_NodeId},
outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a variabletype node to the server
.
See UA_VariableTypeAttributes_generate
on how to define valid attributes.
Open62541.UA_Server_addObjectTypeNode
— FunctionUA_Server_addObjectTypeNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, typedefinition::Ptr{UA_NodeId},
attr::Ptr{UA_ObjectTypeAttributes}, nodeContext::Ptr{UA_NodeId},
outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a objecttype node to the server
.
See UA_ObjectTypeAttributes_generate
on how to define valid attributes.
Open62541.UA_Server_addViewNode
— FunctionUA_Server_addViewNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, typedefinition::Ptr{UA_NodeId},
attr::Ptr{UA_ViewAttributes}, nodeContext::Ptr{UA_NodeId},
outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a view node to the server
.
See UA_ViewAttributes_generate
on how to define valid attributes.
Open62541.UA_Server_addReferenceTypeNode
— FunctionUA_Server_addReferenceTypeNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, typedefinition::Ptr{UA_NodeId},
attr::Ptr{UA_ReferenceTypeAttributes}, nodeContext::Ptr{UA_NodeId},
outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a referencetype node to the server
.
See UA_ReferenceTypeAttributes_generate
on how to define valid attributes.
Open62541.UA_Server_addDataTypeNode
— FunctionUA_Server_addDataTypeNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, typedefinition::Ptr{UA_NodeId},
attr::Ptr{UA_DataTypeAttributes}, nodeContext::Ptr{UA_NodeId},
outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a datatype node to the server
.
See UA_DataTypeAttributes_generate
on how to define valid attributes.
Open62541.UA_Server_addMethodNode
— FunctionUA_Server_addMethodNode(server::Ptr{UA_Server}, requestednewnodeid::Ptr{UA_NodeId},
parentnodeid::Ptr{UA_NodeId}, referenceTypeId::Ptr{UA_NodeId},
browseName::Ptr{UA_QualifiedName}, attr::Ptr{UA_MethodAttributes},
method::UA_MethodCallback, inputArgumentsSize::Csize_t, inputArguments::Union{UA_Argument, AbstractArray{UA_Argument}},
outputArgumentsSize::Csize_t, outputArguments::Union{UA_Argument, AbstractArray{UA_Argument}},
nodeContext::Ptr{UA_NodeId}, outNewNodeId::Ptr{UA_NodeId})::UA_StatusCode
uses the server API to add a method node with the callback method
to the server
.
See also:
UA_MethodAttributes_generate
to define valid attributes.
UA_MethodAttributes_generate
to generate a valid callback.
Reading from nodes:
Open62541.UA_Server_readAccessLevel
— FunctionUA_Server_readAccessLevel(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Byte})
Uses the Server API to read the value of the attribute AccessLevel from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Byte_new()
. The resulting object must be cleaned up via UA_Byte_delete(out::Ptr{UA_Byte})
after its use.
Open62541.UA_Server_readArrayDimensions
— FunctionUA_Server_readArrayDimensions(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Variant})
Uses the Server API to read the value of the attribute ArrayDimensions from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Variant_new()
. The resulting object must be cleaned up via UA_Variant_delete(out::Ptr{UA_Variant})
after its use.
Open62541.UA_Server_readBrowseName
— FunctionUA_Server_readBrowseName(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_QualifiedName})
Uses the Server API to read the value of the attribute BrowseName from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_QualifiedName_new()
. The resulting object must be cleaned up via UA_QualifiedName_delete(out::Ptr{UA_QualifiedName})
after its use.
Open62541.UA_Server_readContainsNoLoops
— FunctionUA_Server_readContainsNoLoops(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Boolean})
Uses the Server API to read the value of the attribute ContainsNoLoops from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Boolean_new()
. The resulting object must be cleaned up via UA_Boolean_delete(out::Ptr{UA_Boolean})
after its use.
Open62541.UA_Server_readDataType
— FunctionUA_Server_readDataType(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_NodeId})
Uses the Server API to read the value of the attribute DataType from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_NodeId_new()
. The resulting object must be cleaned up via UA_NodeId_delete(out::Ptr{UA_NodeId})
after its use.
Open62541.UA_Server_readDescription
— FunctionUA_Server_readDescription(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_LocalizedText})
Uses the Server API to read the value of the attribute Description from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_LocalizedText_new()
. The resulting object must be cleaned up via UA_LocalizedText_delete(out::Ptr{UA_LocalizedText})
after its use.
Open62541.UA_Server_readDisplayName
— FunctionUA_Server_readDisplayName(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_LocalizedText})
Uses the Server API to read the value of the attribute DisplayName from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_LocalizedText_new()
. The resulting object must be cleaned up via UA_LocalizedText_delete(out::Ptr{UA_LocalizedText})
after its use.
Open62541.UA_Server_readEventNotifier
— FunctionUA_Server_readEventNotifier(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Byte})
Uses the Server API to read the value of the attribute EventNotifier from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Byte_new()
. The resulting object must be cleaned up via UA_Byte_delete(out::Ptr{UA_Byte})
after its use.
Open62541.UA_Server_readExecutable
— FunctionUA_Server_readExecutable(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Boolean})
Uses the Server API to read the value of the attribute Executable from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Boolean_new()
. The resulting object must be cleaned up via UA_Boolean_delete(out::Ptr{UA_Boolean})
after its use.
Open62541.UA_Server_readHistorizing
— FunctionUA_Server_readHistorizing(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Boolean})
Uses the Server API to read the value of the attribute Historizing from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Boolean_new()
. The resulting object must be cleaned up via UA_Boolean_delete(out::Ptr{UA_Boolean})
after its use.
Open62541.UA_Server_readInverseName
— FunctionUA_Server_readInverseName(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_LocalizedText})
Uses the Server API to read the value of the attribute InverseName from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_LocalizedText_new()
. The resulting object must be cleaned up via UA_LocalizedText_delete(out::Ptr{UA_LocalizedText})
after its use.
Open62541.UA_Server_readIsAbstract
— FunctionUA_Server_readIsAbstract(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Boolean})
Uses the Server API to read the value of the attribute IsAbstract from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Boolean_new()
. The resulting object must be cleaned up via UA_Boolean_delete(out::Ptr{UA_Boolean})
after its use.
Open62541.UA_Server_readMinimumSamplingInterval
— FunctionUA_Server_readMinimumSamplingInterval(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Double})
Uses the Server API to read the value of the attribute MinimumSamplingInterval from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Double_new()
. The resulting object must be cleaned up via UA_Double_delete(out::Ptr{UA_Double})
after its use.
Open62541.UA_Server_readNodeClass
— FunctionUA_Server_readNodeClass(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_NodeClass})
Uses the Server API to read the value of the attribute NodeClass from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_NodeClass_new()
. The resulting object must be cleaned up via UA_NodeClass_delete(out::Ptr{UA_NodeClass})
after its use.
Open62541.UA_Server_readNodeId
— FunctionUA_Server_readNodeId(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_NodeId})
Uses the Server API to read the value of the attribute NodeId from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_NodeId_new()
. The resulting object must be cleaned up via UA_NodeId_delete(out::Ptr{UA_NodeId})
after its use.
Open62541.UA_Server_readSymmetric
— FunctionUA_Server_readSymmetric(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Boolean})
Uses the Server API to read the value of the attribute Symmetric from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Boolean_new()
. The resulting object must be cleaned up via UA_Boolean_delete(out::Ptr{UA_Boolean})
after its use.
Open62541.UA_Server_readValue
— FunctionUA_Server_readValue(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Variant})
Uses the Server API to read the value of the attribute Value from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Variant_new()
. The resulting object must be cleaned up via UA_Variant_delete(out::Ptr{UA_Variant})
after its use.
Open62541.UA_Server_readValueRank
— FunctionUA_Server_readValueRank(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_Int32})
Uses the Server API to read the value of the attribute ValueRank from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_Int32_new()
. The resulting object must be cleaned up via UA_Int32_delete(out::Ptr{UA_Int32})
after its use.
Open62541.UA_Server_readWriteMask
— FunctionUA_Server_readWriteMask(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, out::Ptr{UA_UInt32})
Uses the Server API to read the value of the attribute WriteMask from the NodeId nodeId
located on server server
. The result is saved into out
.
Note that memory for out
must be allocated by C before using this function. This can be accomplished with out = UA_UInt32_new()
. The resulting object must be cleaned up via UA_UInt32_delete(out::Ptr{UA_UInt32})
after its use.
Writing to nodes:
Open62541.UA_Server_writeAccessLevel
— FunctionUA_Server_writeAccessLevel(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Byte})
Uses the Server API to write the value new_val
to the attribute AccessLevel of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeArrayDimensions
— FunctionUA_Server_writeArrayDimensions(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Variant})
Uses the Server API to write the value new_val
to the attribute ArrayDimensions of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeBrowseName
— FunctionUA_Server_writeBrowseName(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_QualifiedName})
Uses the Server API to write the value new_val
to the attribute BrowseName of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeDataType
— FunctionUA_Server_writeDataType(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_NodeId})
Uses the Server API to write the value new_val
to the attribute DataType of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeDataValue
— FunctionUA_Server_writeDataValue(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_DataValue})
Uses the Server API to write the value new_val
to the attribute DataValue of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeDescription
— FunctionUA_Server_writeDescription(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_LocalizedText})
Uses the Server API to write the value new_val
to the attribute Description of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeDisplayName
— FunctionUA_Server_writeDisplayName(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_LocalizedText})
Uses the Server API to write the value new_val
to the attribute DisplayName of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeEventNotifier
— FunctionUA_Server_writeEventNotifier(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Byte})
Uses the Server API to write the value new_val
to the attribute EventNotifier of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeExecutable
— FunctionUA_Server_writeExecutable(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Boolean})
Uses the Server API to write the value new_val
to the attribute Executable of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeHistorizing
— FunctionUA_Server_writeHistorizing(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Boolean})
Uses the Server API to write the value new_val
to the attribute Historizing of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeInverseName
— FunctionUA_Server_writeInverseName(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_LocalizedText})
Uses the Server API to write the value new_val
to the attribute InverseName of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeIsAbstract
— FunctionUA_Server_writeIsAbstract(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Boolean})
Uses the Server API to write the value new_val
to the attribute IsAbstract of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeMinimumSamplingInterval
— FunctionUA_Server_writeMinimumSamplingInterval(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Double})
Uses the Server API to write the value new_val
to the attribute MinimumSamplingInterval of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeValue
— FunctionUA_Server_writeValue(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Variant})
Uses the Server API to write the value new_val
to the attribute Value of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeValueRank
— FunctionUA_Server_writeValueRank(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_Int32})
Uses the Server API to write the value new_val
to the attribute ValueRank of the NodeId nodeId
located on the server
.
Open62541.UA_Server_writeWriteMask
— FunctionUA_Server_writeWriteMask(server::Ptr{UA_Server}, nodeId::Ptr{UA_NodeId}, new_val::Ptr{UA_UInt32})
Uses the Server API to write the value new_val
to the attribute WriteMask of the NodeId nodeId
located on the server
.