Hello pros,
I need help with switching from wired modem communication to wireless. Are there any equivalents of rednet.receive(2) -> which listens to any messages for 2 seconds, then continues on with the code? Also, is there any equivalent for protocols or is the way to replace them to use different channels? If so, can I do this?
local modem = peripheral.wrap("top")
modem.open(3,5,7)
thanks!
1
Wireless communication
Started by UrsaMauris, Apr 21 2017 04:51 PM
3 replies to this topic
#1
Posted 21 April 2017 - 04:51 PM
#2
Posted 21 April 2017 - 05:30 PM
In theory, both wired and wireless modems use the same APIs - both modem and rednet APIs - so, unless you're using wired modems for connecting the computer to monitors or other non-self-code-executing ( ) peripherals, you should be just fine replacing the two modems.
#3
Posted 21 April 2017 - 05:54 PM
Oh my god, man, that saved me so f***ing much trouble and time, just replacing the modems! Thousand times thank you!
#4
Posted 21 April 2017 - 08:13 PM
Everythig worked fine? I was not sure about that
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users