Advertisement
babulm

Untitled

Dec 13th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. atmid = 13209
  2.  
  3.  
  4. rednet.open("back")
  5. function empfangen()
  6. id,uebertragung3 = rednet.receive()
  7. if id == atmid then
  8. data = textutils.unserialize(uebertragung3)
  9. status = data.status
  10. end
  11. end
  12.  
  13. while true do
  14. empfangen()
  15.  
  16. if status == "auf" then
  17. rs.setOutput("right", false)
  18. end
  19. if status == "zu" then
  20. rs.setOutput("right", true)
  21. end
  22.  
  23.  
  24.  
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement