Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("back")
- local function stat()
- rednet.open("back")
- print("here")
- local senderId, message, protocol = rednet.receive("reactor_status_142", 20)
- print(message)
- rednet.close("back")
- coroutine.yield()
- stat()
- end
- local co = coroutine.create(stat)
- coroutine.resume(co)
- while (true) do
- if (coroutine.status(co) == "suspended") then coroutine.resume(co) end
- coroutine.resume(co)
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement