Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("top")
- local modem = peripheral.wrap("right")
- while true do
- mon.clear()
- modem.open(5)
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- -- if senderChannel==chanrec then
- mon.write("on recoit le message suivant : "..message)
- -- end
- modem.close(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement