#33 lua module/require architecture changeover

This commit is contained in:
Mikayla Fischler
2022-05-04 13:37:01 -04:00
parent 7bcb260712
commit b575899d46
33 changed files with 679 additions and 518 deletions

View File

@@ -1,8 +1,10 @@
-- #REQUIRES rtu.lua
local rtu = require("rtu")
function new(machine)
local energymachine_rtu = {}
energymachine_rtu.new = function (machine)
local self = {
rtu = rtu.rtu_init(),
rtu = rtu.init_unit(),
machine = machine
}
@@ -31,3 +33,5 @@ function new(machine)
rtu_interface = rtu_interface
}
end
return energymachine_rtu