Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem") or error("Modem not Found", 0)
- modem.open(1)
- modem.transmit(2, 1, "Ping")
- local event, side, channel, replyChannel, message, distance
- repeat
- event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- until channel == 1
- print("Receieved Reply: " .. tostring(message))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement