#67 boilerv RTU supervisor session, supervisor session cleanup
This commit is contained in:
@@ -20,7 +20,7 @@ local TXN_TAGS = {
|
||||
"imatrix.formed",
|
||||
"imatrix.build",
|
||||
"imatrix.state",
|
||||
"imatrix.tanks",
|
||||
"imatrix.tanks"
|
||||
}
|
||||
|
||||
local PERIODICS = {
|
||||
@@ -51,7 +51,7 @@ function imatrix.new(session_id, unit_id, advert, out_queue)
|
||||
next_formed_req = 0,
|
||||
next_build_req = 0,
|
||||
next_state_req = 0,
|
||||
next_tanks_req = 0,
|
||||
next_tanks_req = 0
|
||||
},
|
||||
---@class imatrix_session_db
|
||||
db = {
|
||||
@@ -83,7 +83,7 @@ function imatrix.new(session_id, unit_id, advert, out_queue)
|
||||
|
||||
-- PRIVATE FUNCTIONS --
|
||||
|
||||
-- query if the build is formed
|
||||
-- query if the multiblock is formed
|
||||
local function _request_formed()
|
||||
-- read discrete input 1 (start = 1, count = 1)
|
||||
self.session.send_request(TXN_TYPES.FORMED, MODBUS_FCODE.READ_DISCRETE_INPUTS, { 1, 1 })
|
||||
|
||||
Reference in New Issue
Block a user