modem message (event)
From ComputerCraft Wiki
Example | |
Prints details of the message received. | |
Code |
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 |
Output | Will print out all details of the message received on the modem. |