Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id = rednet.lookup("worker","ana")
- print("Ping")
- if id == nil then
- print("Can't find worker")
- return
- else
- print("ID:"..tostring(id))
- rednet.send(id, "location", "worker")
- end
- sender, message = rednet.receive("home",5)
- if message == nil then
- print("Timeout")
- else
- print(message)
- end
Advertisement
Add Comment
Please, Sign In to add comment