#93, #94, unit commands and range/type checks on unit IDs on PLC/RTU connections

This commit is contained in:
Mikayla Fischler
2022-10-06 13:54:52 -04:00
parent c02479b52e
commit 62ac993dae
8 changed files with 155 additions and 79 deletions

View File

@@ -516,7 +516,7 @@ function plc.new_session(id, for_reactor, in_queue, out_queue)
end
elseif message.qtype == mqueue.TYPE.DATA then
-- instruction with body
local cmd = message.message
local cmd = message.message ---@type queue_data
if cmd.key == PLC_S_DATA.BURN_RATE then
-- update burn rate
self.commanded_burn_rate = cmd.val