Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendLoop()
- local modem = peripheral.wrap("right")
- local message = ""
- while message ~= "close" do
- local input = io.read("*l")
- local message = input
- modem.transmit(2,1,message)
- end
- end
- sendLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement