readix

test modem

Apr 6th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. local modem = peripheral.wrap("left")
  2. modem.open(31998)
  3.  
  4.  
  5. while true do
  6. local event,side , channel, reply, msg, dist = os.pullEvent("modem_message")
  7. print("Nouvelle position:")
  8. print(msg)
  9. print("at the distance : "..dist)
  10. end
Add Comment
Please, Sign In to add comment