RTU print fixes, config fixes, comms init fixes and moved modem open

This commit is contained in:
Mikayla Fischler
2022-04-11 11:08:46 -04:00
parent 28b1c03e03
commit 203d868aeb
3 changed files with 30 additions and 19 deletions

View File

@@ -98,6 +98,11 @@ function rtu_comms(modem, local_port, server_port)
l_port = local_port
}
-- open modem
if not self.modem.isOpen(self.l_port) then
self.modem.open(self.l_port)
end
-- PRIVATE FUNCTIONS --
local _send = function (protocol, msg)