#7 sending commands to PLCs, retrying failed sends until confirmed

This commit is contained in:
Mikayla Fischler
2022-05-01 17:04:38 -04:00
parent cd46c69a66
commit 7ff0e25711
3 changed files with 130 additions and 21 deletions

View File

@@ -128,7 +128,6 @@ local function _iterate(sessions)
local ok = session.instance.iterate()
if ok then
-- send packets in out queue
-- @todo handle commands if that's being used too
while session.out_queue.ready() do
local msg = session.out_queue.pop()
if msg.qtype == mqueue.TYPE.PACKET then