send table instead of string
This commit is contained in:
parent
0710bd238c
commit
2b05b43507
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user