03.02.2022, 23:17
(03.02.2022, 06:48)admin Wrote: Event script for the code object. Use 250 byte string object. Code format is 6 numbers, everything else will be ignored.
Code:value = event.getvalue()
-- code format is 6 numbers
if #value == 6 and value:match('^%d+$') then
b1 = tonumber(value:sub(1, 2), 16)
b2 = tonumber(value:sub(3, 4), 16)
b3 = tonumber(value:sub(5, 6), 16)
req = string.char(b1, b2, b3, 0, 0, 0, 0, 0, 0, 0x80)
grp.write('5/4/0', req, dt.raw)
end
works great, you are a crack!
thank you very much