Jump to content




Wireless communication


3 replies to this topic

#1 UrsaMauris

  • Members
  • 5 posts

Posted 21 April 2017 - 04:51 PM

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!

#2 Larry84

  • Members
  • 51 posts
  • LocationItaly

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 ( :P) peripherals, you should be just fine replacing the two modems.

#3 UrsaMauris

  • Members
  • 5 posts

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 Larry84

  • Members
  • 51 posts
  • LocationItaly

Posted 21 April 2017 - 08:13 PM

Everythig worked fine? :blink: I was not sure about that :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users