Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. mod = peripheral.find("modem")
  2. mod.open(1)
  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