This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Glotz659's profile picture

RP-Bundled cable to wireless modem?

Started by Glotz659, 17 August 2012 - 06:49 PM
Glotz659 #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?
immibis #2
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.
Noodle #3
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
immibis #4
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?