Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 451 Bytes

OPCUA.md

File metadata and controls

26 lines (20 loc) · 451 Bytes

OpcUa(open61850) Lua binding

Functions

setLogger

Set logger callback method

Usage:

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

getStatusCodeName

Get cosponding string name of UA_StatusCode enums

Usage:

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