Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = ""
- local valasz = true
- local szamol = 1
- rednet.close()
- rednet.open("back")
- print("rec")
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- while true do
- senderId, message = rednet.receive(1)
- clear()
- print("proba: ", szamol, "Message: ", message, "ID: ", senderId)
- szamol = szamol + 1
- if senderId ~= nil then
- rednet.send(senderId, message)
- rs.setOutput("left", false)
- rs.setOutput("top", true)
- print("sikeres fogadas") sleep(.5)
- rs.setOutput("top", false) sleep(.5)
- else
- print("nincs bejovo adat")
- rs.setOutput("left", true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement