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

wireless to wired rednet

Started by mtwiscool, 01 March 2013 - 05:14 AM
mtwiscool #1
Posted 01 March 2013 - 06:14 AM
wireless to wired rednet and wired to wireless needed
as i'm making a project that this will help with alot of things
LBPHacker #2
Posted 01 March 2013 - 06:24 AM
And your question is…?

Btw rednet through RP bundled cables was possible until 1.5 update. Now you have to wait for ComputerCraft's own internet cables (next update I assume).
mtwiscool #3
Posted 01 March 2013 - 06:38 AM
hares what i mean:
LBPHacker #4
Posted 01 March 2013 - 06:52 AM
Oh… What the?!… Is that some kind of modem or what? Because I've never seen anything like that before. What mod is that? I would help if I knew what that cable-thingie is…
Pinkishu #5
Posted 01 March 2013 - 06:59 AM
Oh… What the?!… Is that some kind of modem or what? Because I've never seen anything like that before. What mod is that? I would help if I knew what that cable-thingie is…

The cables in the new pre-releases

In this case you'd wrap the wired modem as a peripheral on the right and the wireless as peripheral on top
then you'd listen on both and just call transmit on the other when you receive something?
mtwiscool #6
Posted 01 March 2013 - 07:48 AM
i'm thinking the code a bitlike a rednet relay to relays from wireless to wired
or the other way as well.
Pinkishu #7
Posted 01 March 2013 - 08:27 AM
Yeah, as i told you :P/>

open both modems on the channels you want to listen from wired/wireless
then just relay the message to the wired if you receive on wireless and vice versa?

something like

local modemWireless = peripheral.wrap("top")
local modemWired = peripheral.wrap("right")

modemWireless.open(rednet.CHANNEL_BROADCAST)
modemWired.open(rednet.CHANNEL_BROADCAST)

while true do
  local ev,side,chan,replyChan,msg,dist = os.pullEvent("modem_message")
  local otherModem = modemWired
  if side == "right" then otherModem = modemWireless end
  otherModem.transmit(chan,replyChan,msg)
end

(didn't test)
mtwiscool #8
Posted 01 March 2013 - 10:07 AM
i tried it with firewolf and it does not work :(/>
mtwiscool #9
Posted 02 March 2013 - 05:45 AM
anyone?
Dlcruz129 #10
Posted 02 March 2013 - 11:24 AM
This would be a question for the Firewolf developers.