Advertisement
Guest User

arp.lua

a guest
Mar 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. rednet.broadcast("arp", "arp")
  4.  
  5. function receive()
  6.     while true do
  7.         s,m = rednet.receive("arpa")
  8.         print(s .. ":" .. m)
  9.     end
  10. end
  11.  
  12. parallel.waitForAny(receive, function() os.sleep(1) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement