Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local state
- while 1 do
- local door_handle = http.get("http://62.147.156.15/1/door.php")
- if door_handle then
- state = door_handle.readAll()
- if state == "0" then
- rs.setOutput("back",false)
- else
- rs.setOutput("back",true)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement