Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap('left')
- modem.open(1)
- local _, side, freq, rfreq, message = os.pullEvent('modem_message')
- print('The message came on the '..side..' modem.')
- print('It was on frequency '..freq..' and wants a reply on '..rfreq)
- print('The message was: '..message)
Add Comment
Please, Sign In to add comment