Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Receiver Program
- local monitorSide = "top"
- local modemSide = "right"
- local mon = peripheral.wrap(monitorSide)
- rednet.open(modemSide)
- while true
- do
- local id, message = rednet.listen()
- mon.clear()
- mon.setCursorPos(0,1)
- mon.write(textutils.formatTime(os.Clock(), false))
- mon.setCursorPos(0,2)
- mon.write("From: "..id)
- mon.setCursorPos(0,3)
- mon.write("Message: "..message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement