Advertisement
Guest User

receive

a guest
May 27th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local mon = peripheral.wrap("top")
  2. local modem = peripheral.wrap("right")
  3.  
  4. while true do
  5.   mon.clear()
  6.   modem.open(5)
  7.   local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  8. --  if senderChannel==chanrec then
  9.       mon.write("on recoit le message suivant : "..message)
  10. --  end
  11.   modem.close(5)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement