Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- even, senderId, message, distance = os.pullEvent("rednet_message")
- if sendId == then
- if message == "open" then
- print("Demande recus:")
- --envoie--
- print( "=>Computer: "..senderId.." " )
- rs.setOutput("back", true)
- rs.setOutput("front", true)
- end
- end
- if sendId == then
- if message == "close" then
- print("Demande recus:")
- --envoie--
- print( "=>Computer: "..senderId.." " )
- rs.setOutput("back", false)
- sleep(7)
- rs.setOutput("front", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement