Jump to content




wireless to wired rednet


  • You cannot reply to this topic
9 replies to this topic

#1 NoLongerUsed

  • Members
  • 80 posts

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

#2 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

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).

#3 NoLongerUsed

  • Members
  • 80 posts

Posted 01 March 2013 - 06:38 AM

hares what i mean:
Posted Image

#4 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

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...

#5 Pinkishu

  • Members
  • 484 posts

Posted 01 March 2013 - 06:59 AM

View PostLBPHacker, on 01 March 2013 - 06:52 AM, said:

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?

#6 NoLongerUsed

  • Members
  • 80 posts

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.

#7 Pinkishu

  • Members
  • 484 posts

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)

#8 NoLongerUsed

  • Members
  • 80 posts

Posted 01 March 2013 - 10:07 AM

i tried it with firewolf and it does not work :(

#9 NoLongerUsed

  • Members
  • 80 posts

Posted 02 March 2013 - 05:45 AM

anyone?

#10 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 02 March 2013 - 11:24 AM

This would be a question for the Firewolf developers.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users