No default new constructor
N/A
-
setProductURI(uri | string)
-
setServerURI(uri | string)
-
setServername(locale | string, name | string)
-
new()
-
new(port | int)
-
new(port | int, cert | string)
-
running boolean -- Is server running flag.
-
config ServerConfig -- Server configuration.
-
addCallback(func | function, ms | integer) Add server repeated callback function.
-
run() Server run loop.
-
startup() Server run startup.
-
run_once() Server run once.
-
shutdown() Server run shutdown.
-
addNamespace(namespaceUri | string) Add namespace.
-
getNamespaceByName(namespaceUri | string) Get namespace by name.
-
getNodeMgr() Get sever node mananger.
-
getObjectsNode()
-
getTypesNode()
-
getViewsNode()
-
getServerNode()
-
getRootNode()
-
getNode(id | NodeId)
-
getNode(ns | int, id | int)
-
getNode(ns | int, id | string)
-
getNode(ns | int, id | guid)
-
deleteNode(id | NodeId, deleteReference | boolean)
-
deleteNode(id | Node, deleteReference | boolean)
-
setMethodCallback(methodNodeId | NodeId, func | MethodCallbackFunction)
-
setVariableNode_valueCallback(id | NodeId, callback | ValueCallback)
TODO:
- new(func_on_read, func_on_write)
func_on_read = function(server, sessionId, sessionContext, nodeId, numericRange, dataValue)
end
func_on_write = function(server, sessionId, sessionContext, nodeId, numericRange, dataValue)
end
- on_read - This will be called when client try to read value of variable. You cloud change the dataValue during on read callback
- on_write - This will be called when client write value to variable. The dataValue has the value written from client.