Advertisement
RabaGhast

wireless_rec

Sep 28th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. modem = peripheral.wrap("right")
  2. modem.open(100)
  3.  
  4. while true do
  5.   event, side, frequency, replyFrequency, message, distance = os.pullEvent("modem_message")
  6.   print("Message received from the open modem on the "..side.." side of this computer.")
  7.   print("Frequency: "..frequency..")
  8.  print("Requested reply frequency: "..replyFrequency..")
  9.   print("Distance: "..distance..")
  10.  print("Message is as follows: "..message)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement