Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- print("ENTER MESSAGE")
- local function receive ()
- sleep(0.5)
- local a = read()
- print("END WITH CTRL+T")
- while true do
- sleep(1)
- rednet.broadcast(a)
- end
- end
- local function send ()
- sleep(5)
- rednet.broadcast("TRANSMISSION END")
- end
- parallel.waitForAll(receive ,send)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement