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
758 posts
Location
Budapest, 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).
80 posts
Posted 01 March 2013 - 06:38 AM
hares what i mean:
758 posts
Location
Budapest, 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…
445 posts
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?
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.
445 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)
80 posts
Posted 01 March 2013 - 10:07 AM
i tried it with firewolf and it does not work :(/>
80 posts
Posted 02 March 2013 - 05:45 AM
anyone?
1619 posts
Posted 02 March 2013 - 11:24 AM
This would be a question for the Firewolf developers.