Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function receiveLoop()
- local modem = peripheral.wrap("right")
- modem.open(2)
- local m = ""
- while m ~= "close" do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- m = message .. "\n"
- io.write(m)
- end
- end
- receiveLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement