Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ap = peripheral.wrap("top")
- rednet.open("bottom")
- function getState()
- local data = ap.getQueen()
- if data == nil then
- return "Terminated"
- else
- return "In progress.."
- end
- end
- while true do
- local state = getState()
- rednet.send(68, state)
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement