Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 456 Bytes

OPCUA.md

File metadata and controls

28 lines (20 loc) · 456 Bytes

OpcUa(open61850) Lua binding 模块

全局函数

setLogger

设定日志输出回调函数

Usage:

local opcua = require 'opcua'
opcua.setLogger(function(level, category, msg)
	print(level, category, msg)
end)

getStatusCodeName

获取状态码对应的字符串化名称

Usage:

local r = client:connect()
print(opcua.getStatusCodeName(r))