Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- transChan = 11
- receiveChan = 101
- modem.open(receiveChan)
- local event, side, channel, replyChannel, message, distance = ""
- print("starting loop...")
- while 1 == 1
- do
- repeat
- event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- until channel == receiveChan
- print(tostring(channel) .. ": " .. tostring(message))
- end
Advertisement
Add Comment
Please, Sign In to add comment