#225 work in progress comms changes
This commit is contained in:
@@ -38,7 +38,7 @@ local pkt = comms.modbus_packet()
|
||||
---@diagnostic disable-next-line: param-type-mismatch
|
||||
pkt.make(1, 2, 7, {0, 1, 2, 3, 4, 5, 6, 7, 8, 9})
|
||||
local spkt = comms.scada_packet()
|
||||
spkt.make(1, 1, pkt.raw_sendable())
|
||||
spkt.make(0, 1, 1, pkt.raw_sendable())
|
||||
|
||||
start = util.time()
|
||||
local data = textutils.serialize(spkt.raw_sendable(), { allow_repetitions = true, compact = true })
|
||||
|
||||
@@ -22,7 +22,7 @@ println("")
|
||||
|
||||
-- RTU init --
|
||||
|
||||
log.init("/log.txt", log.MODE.NEW)
|
||||
log.init("/log.txt", log.MODE.NEW, true)
|
||||
|
||||
print(">>> init turbine RTU: ")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user