21.06.2019, 11:32
(20.06.2019, 16:59)admin Wrote: By standard response to write request contains exactly the same data. So any Luamodbus write function returns just true/false.
Does really readregister wait for this reply and read full answer? Not only number of bytes that were sent?
Because if I do this:
Code:
for index, value in ipairs(self.modbus_mapping) do
local val,err=self.mb_aolan:writeregisters(value.register,write_val)
if (val == nil) then
-- here I do something with the error
return
end
--os.sleep(0.1)
os.sleep(0.05)
end
Can you please send me list of parameters for writereadregisters?
Thank you
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259