33 posts
Location
127.0.0.1
Posted 17 August 2012 - 08:49 PM
I'm trying to make a computer broadcast a rednet signal (Bundled Cable) using a wireless modem. This is what i tried:
(Connections: Bundled cable to the bottom, modem to the top)
while true do
rednet.open("bottom")
id, msg = rednet.receive()
rednet.close("bottom")
rednet.open("top")
rednet.broadcast(msg)
rednet.close("top")
end
But it doesn't work. What am I doing wrong?
997 posts
Location
Wellington, New Zealand
Posted 18 August 2012 - 11:34 AM
I'm trying to make a computer broadcast a rednet signal (Bundled Cable) using a wireless modem. This is what i tried:
(Connections: Bundled cable to the bottom, modem to the top)
while true do
rednet.open("bottom")
id, msg = rednet.receive()
rednet.close("bottom")
rednet.open("top")
rednet.broadcast(msg)
rednet.close("top")
end
But it doesn't work. What am I doing wrong?
The messages gets sent in the background. You close the cable instantly, before it can finish sending.
864 posts
Location
Sometime.
Posted 19 August 2012 - 05:25 AM
How to fix
rednet.open("top") -- It looks better with only one and on top
while true do
id, msg = rednet.receive()
rednet.broadcast(msg)
end
997 posts
Location
Wellington, New Zealand
Posted 19 August 2012 - 01:10 PM
How to fix
rednet.open("top") -- It looks better with only one and on top
while true do
id, msg = rednet.receive()
rednet.broadcast(msg)
end
Did you even read what he was trying to do?