Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("bottom")
- rednet.open("left")
- local str2num = function(x)
- r = {}
- for i in string.gmatch(x, "%S+") do
- r[#r + 1] = tonumber(i)
- end
- return r
- end
- while true do
- local sid, msg, dis = rednet.receive()
- time = os.time()
- time = textutils.formatTime(time)
- mon.clear()
- mon.setCursorPos(1, 1)
- mon.write(time)
- mon.setCursorPos(1, 2)
- -- mon.write(sid..":"..msg)
- mon.write(sid..":"..table.concat(str2num(msg), ", "))
- end
Advertisement
Add Comment
Please, Sign In to add comment