Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- print("Peripherique serveur numero : 1 ")
- print("Fonction ouverture de la porte centrale ")
- while true do
- sleep(0.2)
- id, msg = rednet.receive
- if id == 20 then
- print("Indentification ok")
- if msg == "door1" then
- rednet.broadcast("op1")
- print("Ouverture de la porte")
- sleep(2)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement