send table instead of string

This commit is contained in:
navid.sassan 2021-04-02 16:47:18 +02:00
parent 0710bd238c
commit 2b05b43507

View File

@ -56,7 +56,7 @@ function recv()
elseif data == 'get_state' then elseif data == 'get_state' then
local output_state = redstone.getInput("back") local output_state = redstone.getInput("back")
print("Output state: " .. tostring(output_state)) print("Output state: " .. tostring(output_state))
rednet.send(master, "Output state: " .. tostring(output_state)) rednet.send(master, {'output_state', output_state})
end end
end end
end end