Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mod = peripheral.find("modem")
- mod.open(1)
- while true do
- event, side, frequency, replyFrequency, message, distance = os.pullEvent("modem_message")
- print("Message received from the open modem on the "..side.." side of this computer.")
- print("Frequency: "..frequency..")
- print("Requested reply frequency: "..replyFrequency..")
- print("Distance: "..distance..")
- print("Message is as follows: "..message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement