Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- local modem = peripheral.find("modem") or error("No modem attached", 0)
- modem.open(43)
- local event, side channel replyChannel, message, distance
- repeat
- event, side, channel, replyChannel, message, distange = os.pullEvent("modem_message")
- until channel == 43
- tFirst = tostring(message[1])
- tSecond = tostring(message[2])
- dofile("display.lua", tFirst, tSecond)
- modem.transmit(15, 43, "Message received.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement